PDA

View Full Version : Mount physical drove via Command Line Script in Windows XP Pro


Alex
September 28th 05, 04:01 PM
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

Daniel
September 28th 05, 06:25 PM
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" wrote:

> 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
>
>

Pegasus \(MVP\)
September 29th 05, 09:35 AM
"Alex" > wrote in message
oups.com...
> 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.

Google