Posted by 20080424 on April 24, 2008 at 19:30:30:
In Reply to: Deleting specific Files from a %UserProfile% through DOS .bat file posted by Rodney McClary on April 24, 2008 at 14:31:02:
: I have been trying to create a .bat file to erase certain files on users profiles. There are multiple users on each machine but all the users have the same file. I thoought I could use the %UserProfile% to start at the currently logged on user, but I keep getting a file path not found. Any help would be appreciated.
##
Does the %userprofile% environment exist? Type:
set
to see.
You could also use the command:
echo %userprofile%
which should display a valid path such as "C:\Documents and Settings\{username}"