how to run cmd out of sandbox
Posted: 21 May 2011 21:04
In the previous topic, the main issue is no longer relevant, so I restate it here:
When the current tab is a folder within sandbox, say D:\Sandbox\...\...\Folder1, then I run the following command (from the menu Scripting - Run Script)
Yes the cmd will start with C:\>, however, it is trapped in that sandbox, so it cannot fuction properly, e.g. it can't kill processes.
So I wonder if there's a way to run cmd outside sandbox while the current tab is in sandbox?
I found a way to escape myself, but rather ugly:
I wonder if there's a more beautiful way, i.e. using some options of cmd or cd.
Thanks.
When the current tab is a folder within sandbox, say D:\Sandbox\...\...\Folder1, then I run the following command (from the menu Scripting - Run Script)
Code: Select all
run "cmd /k cd /d C:\"So I wonder if there's a way to run cmd outside sandbox while the current tab is in sandbox?
I found a way to escape myself, but rather ugly:
Code: Select all
goto "%computer%", 1;
run "cmd /c cd /d C:\ & tskill defraggler";
#520; //Go back
Thanks.