Solved

Writing a subst function in a program???

Posted on 1999-01-14
9
166 Views
Last Modified: 2010-04-15
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
0
Comment
Question by:matttyb
9 Comments
 

Author Comment

by:matttyb
ID: 1255861
Edited text of question
0
 
LVL 10

Expert Comment

by:rbr
ID: 1255862
Use
system ("subst z: c:\\mydir");

0
 

Author Comment

by:matttyb
ID: 1255863
Please, no 'system' calls
0
Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

 

Author Comment

by:matttyb
ID: 1255864
I would like help to write a function to make drives myself.
0
 
LVL 10

Expert Comment

by:viktornet
ID: 1255865
Drives or directories?
0
 
LVL 10

Expert Comment

by:rbr
ID: 1255866
For which OS?
0
 

Author Comment

by:matttyb
ID: 1255867
Drives for directories, you know like mapping a computer on a network.



AND.....



Windows 95

0
 
LVL 8

Accepted Solution

by:
jhurst earned 50 total points
ID: 1255868
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
 

Author Comment

by:matttyb
ID: 1255869
jhurst:

What regstry entries
0

Featured Post

MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

An Outlet in Cocoa is a persistent reference to a GUI control; it connects a property (a variable) to a control.  For example, it is common to create an Outlet for the text field GUI control and change the text that appears in this field via that Ou…
Preface I don't like visual development tools that are supposed to write a program for me. Even if it is Xcode and I can use Interface Builder. Yes, it is a perfect tool and has helped me a lot, mainly, in the beginning, when my programs were small…
The goal of this video is to provide viewers with basic examples to understand how to use strings and some functions related to them in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use conditional statements in the C programming language.

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question