|
Answer» I use BAT files to manage and/or delete cache FOLDER(s) on computers which I use.
Example:
To remove folder "Test" from the following full path on my HARD drive:
C:\Documents and Settings\>\Application Data\Test
I would use the BAT file syntax as follows:
rd "%appdata%\Test\" /s /q
But, what syntax I could use to remove folder Test if it is locatet at the following location on my hard drive:
C:\Documents and Settings\>\LOCAL SETTINGS\application data\test ?
Does anyone know the coorrect syntax for this (for BAT files for WinXP)
Thanks in ADVANCE for your suggestions
__________________ Edit: Just found it; the syntax would be:
rd "%UserProfile%\Local Settings\Application Data\Test\" /s /q
Sorry for this trouble! BEST REGARDS! If you know what the path is why aren't you just hard coding the path?The full path is different depending on the user name on different computers But you also have 2 other Environmental variables you can use that have the users name in it.
|