pr01n
08-08-2006, 06:36 AM
Hi all !
i'm trying to execute a .exe file with argument.
the argument is "> out.txt" to redirect output to a simple textfile
i've tried both .exe and .bat file (executed manually works fine !)
my code is
result = File.Run("AutoPlay\\pci32\\PCI32.bat", "",_DesktopFolder, SW_SHOWNORMAL, true);
result = File.Run("AutoPlay\\pci32\\PCI32.exe", "-s > out.txt",_DesktopFolder, SW_SHOWNORMAL, true);
it always return an empty out.txt file ! :huh
also tried with Shell.Execute function with same problem...
thx anyway !
bye
i'm trying to execute a .exe file with argument.
the argument is "> out.txt" to redirect output to a simple textfile
i've tried both .exe and .bat file (executed manually works fine !)
my code is
result = File.Run("AutoPlay\\pci32\\PCI32.bat", "",_DesktopFolder, SW_SHOWNORMAL, true);
result = File.Run("AutoPlay\\pci32\\PCI32.exe", "-s > out.txt",_DesktopFolder, SW_SHOWNORMAL, true);
it always return an empty out.txt file ! :huh
also tried with Shell.Execute function with same problem...
thx anyway !
bye