Solved

Writing a subst function in a program???

Posted on 1999-01-14
9
169 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use while-loops in the C programming language.
The goal of this video is to provide viewers with basic examples to understand opening and reading files in the C programming language.

728 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