The leading \ refers the command to the root directory of your disk. If you want to do a sub directory, the second syntax is correct. If you want to see the \ put a single dot in front of it to indicate "this directory".

eg. You have a directory with pdf files in it:
 C:\MyDatabase\CertstoEmail\Certfiles.pdf
IF your system is in C:\MyDatabase,
ERASE \CertsToEmail\*.*
looks for C:\CertsToEmail\*.*
and there is no such directory.
ERASE .\CertsToEmail\*.*
substitutes C:\MyDatabase for the .

Clear as mud?

Albert

On 15/01/2013 1:01 PM, jan johansen wrote:
Figured it out
ERASE \CertsToEmail\*.* does not work.
ERASE CertsToEmail\*.* does.
ERASE doesn't seem to like the leading \.
Either that or I have a setting wrong somewhere.



Reply via email to