masterj Posted June 3, 2005 Share Posted June 3, 2005 Hello! I have one really anoying folder %AppData% in my c drive. I'm using runoonceex method in my unattended win xp cd during t-13 setup stage (with "rundll32.exe iernonce.dll,RunOnceExProcess"). After computer reboots, on my c drive there's **** folder %appdata%. I can't delete it with batch, because %appdata% is variable, and my batch deletes whole "C:\Documents and Settings\Admin\Application Data" folder.Please help anyone. Link to comment Share on other sites More sharing options...
TheeBeets Posted June 3, 2005 Share Posted June 3, 2005 Ive never heard of anything like this before but it may have something to do with the distributions folders located at $Oem$, $1, $$ etc look at the folder and see which ones you have and then again it could be a folder created through an application!! Link to comment Share on other sites More sharing options...
MHz Posted June 3, 2005 Share Posted June 3, 2005 %AppData% is where programs store your settings etc. Why would you try to delete something, that is as important as this? Link to comment Share on other sites More sharing options...
hazard_abio Posted June 3, 2005 Share Posted June 3, 2005 from the sounds of it there is a folder on his HDD entitled %appdata%(eg. c:\%appdata%\)MasterJ you may wanna confirm this. you may have to hard code the path into the batch to get it deleted thoughegrmdir c:\%appdir%\try it out see if it works (i don't recommend doing this on a live machine though, use a test machine) Link to comment Share on other sites More sharing options...
Yzöwl Posted June 3, 2005 Share Posted June 3, 2005 What aboutRD /S/Q C:\^%APPDATA^%Also if you have a folder by that name, it is due to an error on your part. You would be better off trying to find the cause of the folder creation rather than the fix. Link to comment Share on other sites More sharing options...
masterj Posted June 5, 2005 Author Share Posted June 5, 2005 Windows creates that folder because I install soft during t-13 windows installation stage (during setup, not on the first boot). Link to comment Share on other sites More sharing options...
Yzöwl Posted June 5, 2005 Share Posted June 5, 2005 (edited) Windows creates the environment variables such as %APPDATA% before T13, therefore there must still be an error either with something you are doing or with the application which is creating the invalid folder.Explanation:APPDATA=C:\Documents and Settings\%USERNAME%\Application DataHOMEDRIVE=C:Therefore the folder is incorrectly being created as %HOMEDRIVE%%APPDATA% i.e C:\C:\Documents and Settings\%USERNAME%\Application DataAnyhow, did you try the code I gave you to remove it?<Edit>It is tested and working on my XP and 2K machines</Edit> Edited June 5, 2005 by Yzöwl Link to comment Share on other sites More sharing options...
war59312 Posted June 6, 2005 Share Posted June 6, 2005 Sounds like an application is trying to install before the environment variable and physical folder is created. Therefore it simply makes its own and it badly assumes that it should be on your C hard disk. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now