Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Writing a subst function in a program???

Posted on 1999-01-14
9
Medium Priority
?
171 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 

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 100 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

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!

Question has a verified solution.

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

Windows programmers of the C/C++ variety, how many of you realise that since Window 9x Microsoft has been lying to you about what constitutes Unicode (http://en.wikipedia.org/wiki/Unicode)? They will have you believe that Unicode requires you to use…
This is a short and sweet, but (hopefully) to the point article. There seems to be some fundamental misunderstanding about the function prototype for the "main" function in C and C++, more specifically what type this function should return. I see so…
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.
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use nested-loops in the C programming language.
Suggested Courses

618 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