Wilson WindowWare Tech Support

WinBatch WinBatch+Compiler WebBatch
Home | Tech Database | Tech BBS | White Papers | Purchase


Deleting a File or Directory that Contains a Percent Sign

Keywords:     %% % percent sign

Question:

I have a directory named, "%user profile%", which I want to delete. How do I do that, so that WinBatch doesn't think this is a variable?

Answer:

Use two percent signs to do it, as in:
	DirRemove("%%user profile%%")

Article ID:   W13442
Filename:   Deleting File or Directory that Contains a Percent Sign.txt