where are you trying that command from?Huidong wrote:TSKILL defraggler in cmd worked!
But again,does not work!run "cmd /c TSKILL defraggler"
address bar?
PS: are you using :: in front of run?
where are you trying that command from?Huidong wrote:TSKILL defraggler in cmd worked!
But again,does not work!run "cmd /c TSKILL defraggler"
Code: Select all
"Defrag selected (Recursive)"
run "cmd /c tskill defraggler";
open '"D:\Portable\Defraggler\df.exe" <selitems> /S';Code: Select all
run "cmd /c tskill defraggler", , 1;Sorry, no idea. Except make sure that before "run" and "open" you have atleast one space.Huidong wrote:Things go weird. I run the command from Scripting - Run Script... on the menu.
I rebooted by machine and once again I can kill notepad with that command. then I run the following:Defraggler did not get killed, and df.exe wasn't run either; then I tried the same command to kill notepad, this time, it failed!Code: Select all
"Defrag selected (Recursive)" run "cmd /c tskill defraggler"; open '"D:\Portable\Defraggler\df.exe" <selitems> /S';
Then I rebooted my machine again, and tried to kill notepad, still it failed!
Any clue?
I can't get it to work either; Sysinternals pskill (as described above) however does work for me on Windows 7 x64 SP1.Huidong wrote:TSKILL defraggler in cmd worked!
But again,does not work!run "cmd /c TSKILL defraggler"
Code: Select all
run "pskill -t defraggler"Should have asked earlier, how about:Huidong wrote:Yes I have two spaces. I mean this is not a particular problem for defraggler, it's all about running cmd /c tskill thru XY, It worked twice, for both notepad and defraggler! Then the same command stops working! But running cmd.exe alone always work. I guess that's the problem of XY?
OK so that's the culprit. when you run:Huidong wrote:Holy sh*t!!! I finally figured out what was the problem!!! Not about using either cmd or pskill, the nasty, mysterious "bug" is that when the current tab is a folder in a sandbox (using Sandboxie), then neither run "cmd ..." nor run "pskill" works, however, when the current tab is not in a sandboxed folder, as far as I know, any place except in the sandbox, both cmd and pskill work!!! This is mysterious, since I thought running a command from Scripting - Run Script... should not have anything to do with the current tab location! Any clue what's going on?? Ghost!
Code: Select all
"Run regedit as SYSTEM"
run "cmd /k cd /d C:\Windows\System32\ & PsExec -s -i regedit"It's a parameter of the cd (change directory) command that makes cd traverse drive boundaries; without itHuidong wrote:Can you explain what /d is for? THanks
Code: Select all
cd c:\windows\system32