Jump to content

Copy files to user profile


Recommended Posts

Hey there, how can I copy some folders to a user profile folder (C:\Users\Orsi\AppData\Roaming)?

Some softwares records its settings in this place, but if I try to use $OEM$\$1\C:\Users\Orsi\AppData\Roaming\folder it is replaced by the software setup.

Is there a variable like $1 for the user profile or something?

Tks!

Link to comment
Share on other sites


User is not created till after login or after OOBE pass. You can do that with <FirstLogonCommands>

  $1     <<- Drive Root
Drivers <<- where some OEM place driver files
Install <<- where I place most things and call from there. EX: %SystemRoot%\Install\Firstlog.cmd

Link to comment
Share on other sites

something like this?

<FirstLogonCommands>
<SynchronousCommand wcm:action="add">
<CommandLine>xcopy %systemdrive%\Software\Config\uTorrent %appdata% /S /R /K /Y</CommandLine>
<Order>170</Order>
<RequiresUserInput>false</RequiresUserInput>
</SynchronousCommand>
</FirstLogonCommands>

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...