0

If I use this syntax:

sdelete64.exe -p 3 -c 1% C

...where:

-p 3 sets number of overwrite passes to 3
-c 1% sets amount of space to leave free to 1%
C Specifies drive letter C:

... I get the error message:

SDelete is set for 3 passes
Cleaning disk C:
Error opening disk C:
The system cannot find the file specified

What am I doing wrong?

David.P
  • 683

1 Answers1

1

1. First solution (failed)

You were mislead by a weak Microsoft documentation:

https://docs.microsoft.com/en-us/sysinternals/downloads/sdelete

Microsoft does not explain or gives an example how to state a drive letter.

Sdelete tried to delete a file named c on your current drive.

Try out adding : as requested by DavidPostill.

2. Second solution proposal

Hint: Free space is a property of a file system. A physical disk with no partion or volume on it has only space but no distinction between used and unused (free) space.

Remove all partitions from your target disk and read out the physical disk number in disk management. Run sdelete(64) using the physical disk number instead of the volume label.

r2d3
  • 4,050