Mount physical drove via Command Line Script in Windows XP Pro

  • Thread starter Thread starter Alex
  • Start date Start date
A

Alex

Hi all,

I'm running a backup program that syncs my documents (D:\) to a second
HD (E:\) but when not backing up I don't want E:\ mounted. This way if
a virus does hit my backup drive won't be effected since it's not
mounted.

I know in Linux and Unix this is a very simple command that could be
setup in a cron, but in Windowd XP Pro how do I do this? I just want
to mount E:\, run backup, then unmount E:\. When it's not mounted I
don't want it accessible from the OS.

Any simple way to do this without having to write a ton of crazy VB
script?

Thanks --

Sam
 
I know that through a command prompt you can mount a directory on another
machine by using the following command:

net use e: \\<Machine Name>\<Directory Name>

Once you are done with the mounted drive you can drop it with the following
command:

net use e: /delete

HTH
 
Alex said:
Hi all,

I'm running a backup program that syncs my documents (D:\) to a second
HD (E:\) but when not backing up I don't want E:\ mounted. This way if
a virus does hit my backup drive won't be effected since it's not
mounted.

I know in Linux and Unix this is a very simple command that could be
setup in a cron, but in Windowd XP Pro how do I do this? I just want
to mount E:\, run backup, then unmount E:\. When it's not mounted I
don't want it accessible from the OS.

Any simple way to do this without having to write a ton of crazy VB
script?

Thanks --

Sam

mountvol.exe is the command you're after.
 
Back
Top