RESOLVED - .bat file issue with Process.Start

MattP

Well-known member
Joined
Feb 29, 2008
Messages
1,206
Location
WY, USA
Programming Experience
5-10
I have a .bat file that performs the following steps

  • Rename File
  • Backup File
  • Encrypt File (gpg command line)
  • Delete Unencrypted File
  • Ftp Encrypted File

This fille runs perfectly when I run it from windows explorer. When I call it with Process.Start the encryption line is skipped completely.

I'm not passing any parameters to the .bat file when it's run.

Anyone have an answer as to why this would happen? Thanks in advance.
 
Last edited:
Configure ProcessStartInfo and set WorkingDirectory.
 
Back
Top