ShellExecute - cmd problem
Posted 15 May 2010 - 09:00 PM
It is suppose to work with and without spaces in the pathname.
So far i can only have one or the other. Below is the one i thought should work regardless.
ShellExecute,open,"cmd.exe","/k #$q%ProjectDir%\Read.exe#$q > #$q%ProjectDir%\parameters.txt#$q"
Same result. Nothing is written to parameters.txt.
Posted 15 May 2010 - 09:14 PM
Allow me to check tomorrow. Now it's late enough (and I'm viewing TV about Bayern / Werder etc. ...)
Posted 16 May 2010 - 08:53 AM
Execute manually the command ShellExecute processes (use your paths):
cmd /k "V:\wb\wb debug !\Projects\nativeEx_barebone\Read.exe" > "V:\wb\wb debug !\Projects\nativeEx_barebone\parameters.txt"
Billy the Door has some concerns when the path contains a space.
Posted 16 May 2010 - 09:30 AM
StrFormat,LEFT,%ProjectDir%,2,%Drive% Set,%cmd%,%Drive% &CD #$q%ProjectDir%#$q &Read.exe > parameters.txt ShellExecute,open,cmd.exe,/k %cmd%"in 080 you have to use quotes where necessary.
Posted 16 May 2010 - 11:06 AM
Any idea, why the command works regardless of space / no space, when run from a bat file?
Posted 16 May 2010 - 02:39 PM
The code I gave above, works for BOTH cases!
No way to have one command covering both?
Posted 16 May 2010 - 05:14 PM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users