Jump to content
Sign in to follow this  

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)

Share this post

Link to post
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
Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.