Jump to content

Need help with Variables


Recommended Posts

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:

Administrator

Default Users

All Users

and my second install also go to C:\Document & Settings\ and now i also get this users:

Administrator.MachineName

Default User.NT

All Users.Nt

Fine . . .

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 SchoolEnglish

Best Regards

Edited by Christine_ts
Link to comment
Share on other sites


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:B5170BC9B1B83DA3AC16831DE1FE451A

Once u know the actual dir, then u can start using your own script the next round.

Code use:

$Default=@UserProfileDir

MsgBox(0, "Current Default Profile", $Default,6)

Hope this help...

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...