Discussion Locked

command line drive sharing - Win 98

0 helpful
7 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I need to set up a batch file or similar to share encrypted virtual drives at logging on at the start of the day under Win 98 SE.

The virtual drives are treated the same as physical drives in explorer, and can be shared as standard drives by right click etc.

Does anyone know of a command line parameter that can share a drive across a network (with full access)?

My intent is to write a batch file or set up a few shortcuts to stop doing this repetitive task daily.

Thanks in advance toanyone who can help.

Regards,.. Craig

7 replies

by microsloth

---Option 1:

net use g: \\computer\share /persistent yes|no

where persistant is to reconnect at start-up

this is to connect to remote drives

---Option 2:

net share sharename=drive:path

this will share a folder with the default share

if you want more help go to a command line and type "net help"

by info

Thanks for the comments MicroSloth. I am looking for a script which is to be run on the machine on which the drive is to be shared, with the aim of making that drive available for use across the network (TCP/IP).

To clarify - machine #1 has a number of encrypted/virtual drives which are to be shared across the network at the start of the work day. To share the drives is currently a monotonous number of right clicking and clicking, and I am trying to avoid this, which will also allow mymore technophobic staff to share the drives reliably.

Thanks for the effort though,.. if you have any other way that I might set this up, PLEASE let me know! Thank you heaps in advance.

Cheers,.. Craig B

by dheupel

Rather than writing a batch file, you might want to consider using a logon script which can map the drives for you when you logon the network. This could save you a mouse click or two every morning. Talk to the network admin about setting this up for you, if you are not (s)he.

You can find some useful info in the following MS knowledge base articles for creating and connecting to network shares, and building logon scripts:

Q100843, Q102907, Q137979, Q139449

Good luck!

by info

CC from reponse to answer 1 from MicroSloth

Thanks for the comments David. I am looking for a script which is to be run on the machine on which the drive is to be shared, with the aim of making that drive available for use across the network (TCP/IP).

To clarify - machine #1 has a number of encrypted/virtual drives which are to be shared across the network at the start of the work day. To share the drives is currently a monotonous number of right clicking and clicking, and I am trying to avoid this, which will also allow my more technophobic staff to share the drives reliably.

Thanks for the effort though,.. if you have any other way that I might set this up, PLEASE let me know! Thank you heaps in advance.

Cheers,.. Craig B

by sergey kovzik

Win9x, so we need to use NetShareAdd function from SVRAPI.DLL. Small command-line utility sent by e-mail. Usage:
ShareAdd E:\ E_DISK
Ok? Hope you'll write batch file yourself :) It is possible to enumerate drives but this involves little more programming.

Sincerely, Sergey
Brainbench MVP for Win98 Administration

This discussion is closed to new replies.