Hi everyone, i'm trying to execute a .bat file through a c# console application using code from here:
Kevin's solution kinda works, but some commands in my .bat file get ignored for some reason, but when i manually execute the .bat file all commands work just fine. e.g. xcopy command doesn't work while executing .bat from console app.
Any idea why this happens?
All 2 Replies
Be a part of the DaniWeb community
We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.