viewtopic.php?f=20&t=10159
Here's a question I put in the general section of the forum on how I tried to run cmd as admin in the current folder.
The cmd command that I posted here doesn't still work when I uncheck the run as and then the new option right-click run as.
It still starts in the C:\Windows\system32 folder.
----
If I go to create my own batch file to open in the current folder this happens when I'm navigated to this directory:
W:\SS_CAD
When I check the Enclose each selected item with " it closes the cmd window if run as admin which I think would fix the problem
See this simple batch file code:
Code: Select all
%~d1
cd "%~1"
SET var="%cd%"
ECHO %var%
pause
Code: Select all
"W:\SS_CAD"
Press any key to continue . . .
Code: Select all
The system cannot find the path specified.
"W:\"
Press any key to continue . . .