Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Rename a file to users login name

Status
Not open for further replies.

gcarte

Technical User
May 31, 2007
3
GB

I am in the process of setting up a new server for 1 of the departments were I work there are approximately 300 users that all have some specific files on the home drives they are in u:\ustn\ then they are the users name e.g. grc.ucf and grc.upf.

The problem I have is that we are not having initials as the username we are using surname 1st initial. So it should be carterg.ucf & carterg.upf

Done anybody know of a vbscript that can be run at logon to rename the files to the user’s logon name.



 
Are all users files in the same folder? Or does each user have their own folder?

I hope you find this post helpful.

Regards,

Mark

Check out my scripting solutions at
Work SMARTER not HARDER. The Spider's Parlor's Admin Script Pack is a collection of Administrative scripts designed to make IT Administration easier! Save time, get more work done, get the Admin Script Pack.
 
All users have there home drive's mapped to U:\ this is were the files are that need changing.

it would also be usful if the user does not have these files for it to create them for the user
 
And how are the files originally being created? What is the name of the folder containing the files? Does it match the username?

I hope you find this post helpful.

Regards,

Mark

Check out my scripting solutions at
Work SMARTER not HARDER. The Spider's Parlor's Admin Script Pack is a collection of Administrative scripts designed to make IT Administration easier! Save time, get more work done, get the Admin Script Pack.
 
the folder is called ustn that was created amnually when we installed the software that uses thes files it is the 2 files in the folder that need changing to the user name.

thay are:

***.ucf & ***.upf

hope this helps.

Regards

Greg.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top