RESOLVED: Option to run the cmd with the current folderpath as admin
Posted: 20.01.2020, 20:52
There was a new addition to the lasted FC to allow running tools as.
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:
It returns this:
But if I navigate to the next folder which has spaces (W:\SS_CAD\AutoCAD Blocks Library) I get this output:
My settings for the toolbar item:
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 . . .