• C

Writing a subst function in a program???

Ive been making a login security program and want to know if it possible to write a function that will create a drive out of a directory (like subst).  Is it possible??

If so, please help, send some links or something

Oh, Im programmin in C
matttybAsked:
Who is Participating?
 
jhurstConnect With a Mentor Commented:
As I understand it the subst command and method shoiuld no longer be used and is supported only for compatibilty with legacy applications.  The correct method to use is to make regisrty entries to do this.  The problem with this is that as with the microsoft utilities this will then require a re-boot that I do not belive that you will want.
0
 
matttybAuthor Commented:
Edited text of question
0
 
rbrCommented:
Use
system ("subst z: c:\\mydir");

0
Simplify Active Directory Administration

Administration of Active Directory does not have to be hard.  Too often what should be a simple task is made more difficult than it needs to be.The solution?  Hyena from SystemTools Software.  With ease-of-use as well as powerful importing and bulk updating capabilities.

 
matttybAuthor Commented:
Please, no 'system' calls
0
 
matttybAuthor Commented:
I would like help to write a function to make drives myself.
0
 
viktornetCommented:
Drives or directories?
0
 
rbrCommented:
For which OS?
0
 
matttybAuthor Commented:
Drives for directories, you know like mapping a computer on a network.



AND.....



Windows 95

0
 
matttybAuthor Commented:
jhurst:

What regstry entries
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.