Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to run a Windows .cmd file

Status
Not open for further replies.

graemephillips

Programmer
Mar 8, 2004
8
GB
I have found that if I type ''exec "C:/Documents and Settings/grphilli/Desktop/wish.exe" a:/Programm.tcl'' for instance, I can run a file with Tcl/Tk. However, the problem is that I want to do this with a .cmd file.

Can one run a .cmd file in this way? If so, what do I have to type between "exec" and the filename or rather, which application does one have to use to run a .cmd file using this syntax?

Also, is there any other way to start up a Windows .cmd file from Tcl/Tk?

Given that I am fairly new to programming, please tell me what the necessary syntax is if you answer, as just saying that this is something that can be done with the exec command is of little help. Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top