Mount physical drove via Command Line Script in Windows XP Pro

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
 
G

Guest

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
 
P

Pegasus \(MVP\)

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top