I'm trying to run a program in command prompt on windows, and it is giving me the error message "The syntax of the command is incorrect." The syntax looks correct. Anyone have any suggestions on how to fix this?
2007-01-22
08:28:46
·
9 answers
·
asked by
mmwreal
2
in
Computers & Internet
➔ Programming & Design
SDelete Usage
SDelete is a command line utility that takes a number of options. In any given use, it allows you to delete one or more files and/or directories, or to cleanse the free space on a logical disk. SDelete accepts wild card characters as part of the directory or file specifier.
Usage: sdelete [-p passes] [-s] [-q]
sdelete [-p passes] -z [drive letter]
-p passes
Specifies number of overwrite passes
-s
Recurse subdirectories
-q
Don't print errors (quiet)
-z
Cleanse free space
2007-01-22
08:34:13 ·
update #1
So I'm in the directory where the .exe file is located and I type "sdelete " exactly of course without the "" and it gives me that error message.
2007-01-22
08:37:45 ·
update #2
I guess what I'm wondering is do I have to inclue the brackets like the [ ] or the < >, and since this is a stand alone program and is not included in the dos system, do I just run it from its directory, or do I need to put it in a special place first?
2007-01-22
08:44:28 ·
update #3
I tried the command "sdelete C:\Temp -p 10" and now I got the message after it looks like the program ran "Delete is set for 10 passes. No files that match 10". What could this mean, and it looks like it didn't delete any files in my temp folder.
2007-01-22
08:53:52 ·
update #4
I finally got it to work. Thanks Bamba for the suggestion. I didn't know I had to use " " around the file if there was spaces in the file name. Thanks everyone for the suggestions.
2007-01-22
09:03:03 ·
update #5