Quantcast
Channel: THWACK: All Content - Serv-U FTP Server & MFT Server
Viewing all articles
Browse latest Browse all 659

Copy users home location after a upload

$
0
0

Please can anyone help.

 

I am trying to get either a batch file orpowershell script to run, which copies what a user uploads to their home directory onserv-u to another server. But I would like it too, even copy their home folder so that when it get to the other server, they will see a folder called their login name

 

My idea was to create a batch file which used $loginID from serv-u to input the last part of the location e.g

robocopy d:\serv-u\%1\ \\new\server\%1

%1 would equal the $loginID from serv-u but this doesn't work.

 

Any help on creating a script which would copy a user's home directory fromserv-u to another server when they have uploaded a file would be much appreciated

 

Cheers


Viewing all articles
Browse latest Browse all 659

Trending Articles