graemephillips
Programmer
To cut a long story short, does anyone know the exact syntax one should use when using Tcl/Tk to run Windows commands i.e. the content of a .cmd file? I know how to do this using applications, for which a shortcut exists, but since I don't know of any application as such for .cmd files that is linked to by a shortcut, I don't know how this can be done.
Here is my earlier posting that no-one bothered to reply to:-
{
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.
}
Here is my earlier posting that no-one bothered to reply to:-
{
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.
}