A VB script to read the first line of a file into system clipboard
A VB script to read the first line of a file into system clipboard
Sub Main() Dim objFile, File, line Dim objClip 'Read File Set objFile = CreateObject("Scripting.FileSystemObject") Set File = objFile.OpenTextFile("\your_path\your_file.vbs", 1) line = File.Readline File.Close 'Save ClipBoard set objClip = CreateObject("htmlfile") objClip.parentWindow.clipboardData.SetData "text", line xsh.dialog.msgbox("'"&line&"' copied to the system clipboard") End Sub
, multiple selections available,
Related content
Sending clipboard data line by line using a script file
Sending clipboard data line by line using a script file
More like this
VBS sample: Clear the scrollback buffer and write the result of serial commands to a file
VBS sample: Clear the scrollback buffer and write the result of serial commands to a file
Read with this
Can't call MsgBox in Script file [4]
Can't call MsgBox in Script file [4]
More like this
Script help [5]
Script help [5]
More like this
screen scraping (geting text data) from X Window application [8]
screen scraping (geting text data) from X Window application [8]
More like this
Copying and pasting
Copying and pasting
More like this