Jump to content
Sign in to follow this  
TRoswall

username in filecopy process

Recommended Posts

TRoswall

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
Marc

Are you looking for something like that?

DriveMapAdd("t:", "\\servername\daten\" & @UserName & "\Desktop")

It's my job to comfort the disturbed and to disturb the comfortable.
My Projects: Profiler, MakeSFX, UserInfo

Share this post


Link to post
Share on other sites
TRoswall

hehe, nice

gonna try that :-)

thx

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  

×