Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SUBST Command

Status
Not open for further replies.

JCDugas

MIS
Dec 26, 2001
270
US
Is it possible to use the SUBST command and maintain the drive mapping on a server without having to lock the server?

I'd like to be able to logoff and schedule reboots.

Thanks,

Jeremy
 
What is you're actually wanting to do? Are you wanting to logoff the server, have it reboot at a scheduled time and start up and reconnect to a shared drive?

The subst command only associates a (nice short) drive letter with a (horribly long) path. It doesn't map a drive to another server.

You can use a scheduled task to map the drive at startup: "net use x: \\server\share". You have to use an appropriate user account to get access to the share. I would give the local admin account rights to the share, or a domain account used just for that purpose. If you use a domain account, make sure you give it rights to "log on as batch job" or "service" or any of those other things on the server you're working from.

You can do exactly the same thing using a batch file and an AT command, if you want to just specify a time.

If this isn't what you're intending to do, could you clarify it?
 
I need to use the SUBST command because of an SQL database application that needs to reference the I: drive that's mapped to a folder located on the server.

If I use "net use" it only works for myself, or whomever is currently logged on.

So I need to use SUBST.

Thanks,

Jeremy
 
What about a startup script for the server, containing the subst command? Or a run for machine job with same?
 
I used a group policy startup script and that didn't work.

Any other ideas??

Jeremy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top