![Smile :)](./images/smilies/icon_smile.gif)
• I'm not a patient guy really… Just UV-Pro >> Search %S >> Search Next button ++++ down to the last found…
![Razz :P](./images/smilies/icon_razz.gif)
![Mr. Green :mrgreen:](./images/smilies/icon_mrgreen.gif)
Claude
Clo
Moderators: white, Hacker, petermad, Stefan2
Code: Select all
@echo off
:Sets owner to the current loged in User
:FOR %%F IN (%*) DO ECHO Y| icacls %%F /t /c /grant "%username%":f
:Set proper attributes for directories
FOR %%F IN (%*) DO attrib -h -s -r -a %%F /S /D
:Set proper attributes for files
FOR %%F IN (%*) DO attrib -h -s -r -a %%F\*.* /S /D
:3-Pass Deletion
FOR %%F IN (%*) DO "C:\Program Files\totalcmd\Tools\Eraser\sdelete.exe" -p 3 -s %%F
PAUSE
EXIT /b 0
This suggests that either of the following reasons applied:sdelete.exe wasn't found is the error message
This seems to suggest that the script itself is all right and is suitable to its job.when I launch the CMD and go into C:\Program Files\totalcmd\Tools\Eraser and start the wipe.cmd with "wipe.cmd C:\test.log" it works,
Does this mean that even the pause command inside the script does not display its notorious "Press any key to continue ..."? If even this message is not displayed and if you do not have to press a key, then the script does not get launched at all.When this .cmd is in the TC Folder or TC\Tools\Eraser, it won't work and quits with no message.
To 1: Path was given full like int he other Scripted I used, I used the "" everywhere I should.karlchen wrote:Hello, trininja.
This suggests that either of the following reasons applied:sdelete.exe wasn't found is the error message
- sdelete.exe was launched without prefixing the fully qualified foldername, yet sdelete.exe could not be found searching the folders listed in the %PATH% variable.
- sdelete.exe was launched like this C:\Path\to\sdelete.exe. The path specification enclosed a space character, but was not enclosed in double quotes.
- sdelete.exe was launched like this C:\Path\to\sdelete.exe. But the given path specification was simply incorrect.
Right, thats what is happening.About the other wipe script which you switched to:This seems to suggest that the script itself is all right and is suitable to its job.when I launch the CMD and go into C:\Program Files\totalcmd\Tools\Eraser and start the wipe.cmd with "wipe.cmd C:\test.log" it works,
Does this mean that even the pause command inside the script does not display its notorious "Press any key to continue ..."? If even this message is not displayed and if you do not have to press a key, then the script does not get launched at all.When this .cmd is in the TC Folder or TC\Tools\Eraser, it won't work and quits with no message.
The Registry values are all given and work, when I use the command line from TC button in CMD, it gives me the Press any key..., when I start the wipe.cmd with a doubleclick, the Press any key... pops up.This in turn suggests thatKind regards,
- Something may be wrong with the button configuration which you use to launch wipe.cmd.
One way of finding out has been explained here: 4th idea. The important thing is to copy and paste the button commandline into a cmd.exe window and find out whether wipe.cmd will be launched.- If the above test proves that the commandline to launch wipe.cmd is correct, then it might be that *.cmd is no longer associated with cmd.exe on your Windows system.
The regkey HKCR\.cmd should specify a default value of "cmdfile".
The regkey HKCR\cmdfile should have the following subkey: HKCR\cmdfile\shell\open\command. The default value should be "%1" %*.- You may also locate wipe.cmd and double click it. It should not do more than display the notorious pause message "Press any key to continue ..." (You migh comment out any destructive commands before double clicking wipe.cmd, just to be sure it will not wipe anything.)
Karl