Paste Batch Command?

July 8, 2010 at 10:41:06
Specs: Windows XP
Hi all,

I am afraid that I am very new to batch files and programming in general, and may be missing the obvious here, but anyway, here's my problem:

I have created a webpage which copies a DOS command to the clipboard. Is there any way to paste and run this command in a batch file?



See More: Paste Batch Command?

Report •

July 9, 2010 at 08:23:49
Not in a Batch script because it does not have access to the Windows API to get stuff off of the clip board. You will either need to to use VB or a higher level programming language. What is it that you are trying to accomplish? Why nut just execute the command from your web-server instead of putting it on the clip board?

Report •

July 9, 2010 at 13:48:05
Thank you for answering,
I am using the webpage from my local directory just to
generate a command which will add an internet video to my
tversity server, this is done using forms, and so, in order to
add the video, I need to create the command inside the
webpage using the output of the forms. Previously I thought i
could do this by copying the command to the clipboard and
then running a batch file which, as well as accessing tversity,
would execute the command pasted on the clipboard. How
would it be possible to execute this command from the page?
And how would I use VB to execute the command?

Report •

Report •

Related Solutions

July 9, 2010 at 18:29:37
here's a program based on a more elaborate program i wrote to help with the clipboard:

Attribute VB_Name = "clip"

Sub main()
'write clipboard into a file: \clip
X = Clipboard.GetText
open "\clip" for output as #1
print #1,x
End Sub
'--------- end program
the compile executable is about 6.5K. If you want the compiled exe and trust me, i can email it, but i understand if you don't. In order to compile the program you will need visbasic (written on vb3.2) Too bad vbscript doesn't have access to the clipboard!

Report •

Ask Question