Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: NT
Expertise: Beginner
Dec 16, 1998

How to create NT user home drive

Question:
I set the usri3_home_dir and home_dir_drive when I create an NT account using VB code. I also need to create the home directory on a specified NT server. Any ideas?

Answer:
Assuming you have rights to do so on the server in question, you can simply:


   MkDir "\\lj_server\c$\users\"
   MkDir "\\lj_server\c$\users\abc"

This will create a directory "abc" under the C:\users directory on the server.  After successfully creating the directory, then you can set the usri3_home_dir to this directory you just created.
DevX Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date