OK, I "bodged" it... i created a .bat file with the command, and ran that with SW_HIDE, and it works as expected now. (some odd interaction when the options passed to the command in ShellExecute contains a "quoted" or even \"quoted\" option... dont ask... i have no idea...)

Half the fun of coding is learning why things do not work the way you think it should do, and finding out why... or working around them :)

Steve


for example, i get a return code of 42 (which is OK apparently :)

Win32::GUI::ShellExecute(0,"open","d:\\mycommand.exe",">d:\\text.txt","d:\\",SW_HIDE);

but the output file doesn't get written.


Reply via email to