Solved

Writing a subst function in a program???

Posted on 1999-01-14
9
163 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
 

Author Comment

by:matttyb
ID: 1255864
I would like help to write a function to make drives myself.
0
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 
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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Have you thought about creating an iPhone application (app), but didn't even know where to get started? Here's how: ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ Important pre-programming comments: I’ve never tri…
This tutorial is posted by Aaron Wojnowski, administrator at SDKExpert.net.  To view more iPhone tutorials, visit www.sdkexpert.net. This is a very simple tutorial on finding the user's current location easily. In this tutorial, you will learn ho…
The goal of this video is to provide viewers with basic examples to understand and use structures in the C programming language.
The goal of this video is to provide viewers with basic examples to understand opening and writing to files in the C programming language.

760 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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now