Hi,
I am trying to run a batch file during my installation. the batch file should run silently (i don't care if the user sees the screen but shouldn't be able to do anything) recieve "Y", and redirect output to a log file.
this is what i wrote in my code:
File.Run("cmd","echo y | "..InstallPath.."Setup.bat > log.txt", "", SW_SHOWNORMAL, false);
it is not working :(
how should it be done???
thanks,
Dana
I am trying to run a batch file during my installation. the batch file should run silently (i don't care if the user sees the screen but shouldn't be able to do anything) recieve "Y", and redirect output to a log file.
this is what i wrote in my code:
File.Run("cmd","echo y | "..InstallPath.."Setup.bat > log.txt", "", SW_SHOWNORMAL, false);
it is not working :(
how should it be done???
thanks,
Dana
Comment