TRoswall Posted July 9, 2010 Share Posted July 9, 2010 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 More sharing options...
Marc Posted July 9, 2010 Share Posted July 9, 2010 Are you looking for something like that? DriveMapAdd("t:", "\\servername\daten\" & @UserName & "\Desktop") Any of my own codes posted on the forum are free for use by others without any restriction of any kind. (WTFPL) Link to comment Share on other sites More sharing options...
TRoswall Posted July 9, 2010 Author Share Posted July 9, 2010 hehe, nice gonna try that :-) thx Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now