Christine_ts Posted November 27, 2008 Share Posted November 27, 2008 (edited) I have installed an unattended Xp on my hardisk, C:\Windows.I testing installing the same unattended Cd, but now, when i get a choise, i say C:\NT.My first install go to C:\Document & Settings\ and i get this users:AdministratorDefault UsersAll Usersand my second install also go to C:\Document & Settings\ and now i also get this users:Administrator.MachineNameDefault User.NTAll Users.NtFine . . .When i install Xp i want to, at T-12, deleting some files and adding other files to the Current Default User directory.But - i can't delete/adding files using my script without know the Current Defaul User directory name.Need to pick up the value of the Current Defaul User directory name for safe Deleting/Adding files - to the right folder.Is there any Variable like "%Default User%" or something i can use, testing a lot but so far . . .Sorry about my Badly SchoolEnglishBest Regards Edited November 27, 2008 by Christine_ts Link to comment Share on other sites More sharing options...
Geej Posted December 2, 2008 Share Posted December 2, 2008 U can try reading what is the default profile using script. Try running this script at T13 (Just an autoit script to display current profile directory. Will timeout 6 sec after the display)MD5:B5170BC9B1B83DA3AC16831DE1FE451AOnce u know the actual dir, then u can start using your own script the next round.Code use: $Default=@UserProfileDirMsgBox(0, "Current Default Profile", $Default,6)Hope this help... Link to comment Share on other sites More sharing options...
ricktendo Posted December 2, 2008 Share Posted December 2, 2008 (edited) Try:"%UserProfile%\..\Default User"Or"%AllUsersProfile%\..\Default User"Either one should do the trick Edited December 2, 2008 by ricktendo64 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