forked from aria2/aria2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run batch file with cmd.exe. Quoted user command.
It seems that we have to specify the full path to cmd.exe in the first argument of CreateProcess() to run batch file in proper manner. We first determine the full path to cmd.exe. To do this, we get windir environment variable and concatenate it with "\system32\cmd.exe".
- Loading branch information
1 parent
286991e
commit ed589ab
Showing
1 changed file
with
23 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters