Why ShellExecute in this code work perfect:
Code: Select all
ShellExecute_(0,"open","cmd.exe","/c c:\test.exe > output.txt","c:\",#SW_HIDE)
But PB RunProgram:
Code: Select all
RunProgram("cmd.exe","/c " + "c:\test.exe" + " > output.txt" ,"c:\" ,#PB_Program_Hide)
Its bug or something is missing? i know about ReadProgramString but i want know why this doesn't work !