T
Tim Brown
I have written the following batch file but it does not work. If I run it
as a batch file it does not error but it does not delete the file either.
if exist "c:\documents and settings\%userprofile%\local settings\application
data\microsoft\outlook\test.txt" del "c:\documents and
settings\%userprofile%\local settings\application
data\microsoft\outlook\test.txt"
When I run it from a DOS prompt it produces this message:
The filename, directory name, or volume label syntax is incorrect.
I know that it is the %userprofile% which causes the error but is there a
way around it?
Any ideas?
as a batch file it does not error but it does not delete the file either.
if exist "c:\documents and settings\%userprofile%\local settings\application
data\microsoft\outlook\test.txt" del "c:\documents and
settings\%userprofile%\local settings\application
data\microsoft\outlook\test.txt"
When I run it from a DOS prompt it produces this message:
The filename, directory name, or volume label syntax is incorrect.
I know that it is the %userprofile% which causes the error but is there a
way around it?
Any ideas?