Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Copy Data from Notepad
#1
Solved: 11 Years, 4 Months ago
In my java application we are copy & paste date from notepad to java table.
I want to know how to copy all the data from notepad.
Reply
#2
Solved: 11 Years, 4 Months ago
Try this code

Code:
Set fso = CreateObject("Scripting.FileSystemObject")
Set ObjFile = fso.OpenTextFile ("D:\NotePad.txt",1,TRUE)
StrChar = ObjFile.ReadAll
msgbox StrChar
Reply
#3
Solved: 11 Years, 4 Months ago
Hi ssvali,
Your code is not working for me.

My Functionality is below and see attachment for reference.
1) Need to copy all the data from notepad.
2) Select the first row in java table.
3) Paste the data by press "CTLR+V".

Note: Simply want to say means i want to copy & paste data in java table
I don't have excel.


Attached Files Image(s)
   
Reply
#4
Solved: 11 Years, 4 Months ago
Please try below code -

Code:
Create objFSO = CreateObject("Scripting.FileSystemObject")

Systemutil.Run "Path of the notepad where its stored"

Window("Notepad").WinEditor("Edit").Type micCtrlDwn + "a" + micCtrlUp

Window("Notepad").WinEditor("Edit").Type micCtrlDwn + "C" + micCtrlUp
then go to the pane where you want to paste and do
("Object where you want to paste.")Type micCtrlDwn + "V" + micCtrlUp
Make sure that all the other notepads are closed when you execue this ..As if more notepads are open it will not be able to recognize the object.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Fifth word from every thousand line in notepad files. sallu.iet@gmail.com 0 946 01-17-2020, 09:58 AM
Last Post: sallu.iet@gmail.com
  Copy file to network shared location sams001 0 3,165 04-03-2013, 02:10 AM
Last Post: sams001
  How To Copy a text in a .txt file adelitza 0 2,386 09-03-2012, 07:29 PM
Last Post: adelitza
  How to copy .tsr and .qfl file and everything to QC? chong67 4 4,371 06-08-2012, 10:06 AM
Last Post: sshukla12
Exclamation Want to copy object from 1 repository to another Amol 3 11,105 06-01-2012, 04:47 PM
Last Post: falvi

Forum Jump:


Users browsing this thread: 2 Guest(s)