October 5, 200421 yr MHzBoth commands are the same."\..\" - moves one level up in folder structure.Sorry. did not realize the 2 dot reference was intended for what you quoted. Thought that you may have been doing a shorthand skip.
October 9, 200421 yr in my cleanup.cmd have %userprofile% and noticed that it did clear stuff from the default user profile and %allusersprolfe% cleared from the rest.In case anybody wanted to know.
February 14, 200521 yr or a little cleaner if you want to user the var for other things@echo offcd /d "%userprofile%\..\default user"set DefaultUser=%CD%echo %defaultuser%and here is one for %profiledir%@echo offcd /d "%userprofile%\.."set profiledir=%CD%echo %profiledir%
February 14, 200521 yr All u need is HEREps: however i have problems with %tmp% %temp% under my cleanup.cmd. DEL /S /Q "%TMP%\*" is NOT working
Create an account or sign in to comment