WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Miscellaneous

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

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
File Created: 1999:04:15:16:54:04
Last Updated: 1999:04:15:16:54:04