Link to home
Create AccountLog in
Avatar of mxgong
mxgongFlag for Australia

asked on

VBScript to redirect folder

Hi All Experts

There are 60 users in our company including desktop & laptop.

Each user saves all work data in c:\workdata, and we are doing daily backup for c:\workdata of each users via robocopy.

Now, I want use network share to redirect c:\workdata.
Ex: user: abc,  
after abc login to his machine, one vbscript will be run to redirect his c:\abc to \\server\share\abc\workdata. (the vbscript will be set in logon of GPO)

****When use modify any data in his c:\workdata, the modification also will be saved in \\server\share\abc\workdata.

****and only owner of folder "workdata" can access own "workdata"

Any one can tell me how to write this vbscript? thanks


Avatar of purplepomegranite
purplepomegranite
Flag of United Kingdom of Great Britain and Northern Ireland image

It would be much simpler to redirect My Documents to a central location and direct users to save all their work in My Documents.  You can set the redirect policy up using GPO, and grant each user exclusive rights to their folder.  The folder can also be made available offline.  A VB Script can then be written to copy all the data from the current location to the user's My Documents folder.
Redirecting in the way you are asking is going to be both complex and difficult to manage - there isn't any built in way that I am aware of to redirect random folders, whereas My Documents and other user folders have this facility built-in to the OS.
Avatar of mxgong

ASKER

All users' data are required to save in c:\workdata, so I need to do redirect c:\workdata
ASKER CERTIFIED SOLUTION
Avatar of purplepomegranite
purplepomegranite
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer