Jump to content

username in filecopy process


Recommended Posts

I have made a script to copy userdata from the old server to the new server the first time a user logs on

to get the userdata folder I use $usr=@UserName

but it only works for me if I seperate the variable and the fixed entries, like

FileChangeDir ("O:")

FileChangeDir ($usr)

FileChangeDir ("Desktop")

that means that I can get to the source folder as a working directory, but then I cant copy to the destination folder as the variable also should be used there

are the any way to combine the @usr variable (or prefeable include it in the DriveMapAdd ("O:", "\\x.x.x.x\das") command)

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
 Share

  • Recently Browsing   0 members

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