sraghunandan
New Member
Dear All,
I'm unable to run any bat file with "Run As Administrator" when the bat file is present in a folder which has ( in its name.
For example: I have main.bat which is in d:\test(_8july)\main.bat.
The contents of main.bat is like this.
c:\windows\system32\cmd.exe /C "e:\test.bat"
The contents of test.bat is like this:
echo "testing" >> %temp%/test.txt
pause
If I just double click on main.bat, i can see the file text.txt being created and "testing" written into it.
If i right click on main.bat and select "Run as Administrator", the bat file cannot be run and I get the error "d:\test" is not a recognized command.
How to handle these situations?
Thanks in advance
Raghu
I'm unable to run any bat file with "Run As Administrator" when the bat file is present in a folder which has ( in its name.
For example: I have main.bat which is in d:\test(_8july)\main.bat.
The contents of main.bat is like this.
c:\windows\system32\cmd.exe /C "e:\test.bat"
The contents of test.bat is like this:
echo "testing" >> %temp%/test.txt
pause
If I just double click on main.bat, i can see the file text.txt being created and "testing" written into it.
If i right click on main.bat and select "Run as Administrator", the bat file cannot be run and I get the error "d:\test" is not a recognized command.
How to handle these situations?
Thanks in advance
Raghu