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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.