Mapping a drive to a folder?

AgaBoogaBoo

Lifer
Feb 16, 2003
26,108
5
81
I want to create a folder in my C drive labeled "backup."

Then, I want to create a drive on my computer "Z" that is the same as the backup folder. I tried doing this the same way as mapping a network drive, but that didn't work. It said it couldn't connect to the network drive.

Any ideas?
 

Crusty

Lifer
Sep 30, 2001
12,684
2
81
I don't know if you have it be a partition like Z: and be mapped at the same time, but when you go to format the empty space into a partition, if you use NTFS you get the option to mount the partition in a folder. Is that what you are looking for?
 

ActuaryTm

Diamond Member
Mar 30, 2003
6,858
12
81
Originally posted by: AgaBoogaBoo
I want to create a folder in my C drive labeled "backup."

Then, I want to create a drive on my computer "Z" that is the same as the backup folder. I tried doing this the same way as mapping a network drive, but that didn't work. It said it couldn't connect to the network drive.

Any ideas?
Version of operating system?
 

Zugzwang152

Lifer
Oct 30, 2001
12,134
1
0
create C:\backup on computer 1.
share C:\backup on network.
ensure 2 computers are on same workgroup.
map a network drive on computer 2 to "\\computer1name" or "\\computerIP"
check reconnect to network drive on bootup.


voila?
 

Confused

Elite Member
Nov 13, 2000
14,166
0
0
You can use the command-line utility subst to do this.

Open up a command prompt, and type:

subst z: c:\backup


Confused
 

Confused

Elite Member
Nov 13, 2000
14,166
0
0
Zugzwang, that won't work because he's trying to do it on the same machine, not across a network.


Confused
 

Zugzwang152

Lifer
Oct 30, 2001
12,134
1
0
Originally posted by: Confused
Zugzwang, that won't work because he's trying to do it on the same machine, not across a network.


Confused

Apparently I have forgotten the English language.
 

Confused

Elite Member
Nov 13, 2000
14,166
0
0
Originally posted by: Zugzwang152
Originally posted by: Confused
Zugzwang, that won't work because he's trying to do it on the same machine, not across a network.


Confused

Apparently I have forgotten the English language.

Heh :) No worries :beer:
 

AgaBoogaBoo

Lifer
Feb 16, 2003
26,108
5
81
Originally posted by: Confused
You can use the command-line utility subst to do this.

Open up a command prompt, and type:

subst z: c:\backup


Confused

Thank you very much! :)

One more question, heh :p

Is there a way to set a max size for this folder?
 

hopejr

Senior member
Nov 8, 2004
841
0
0
Using windows 2k or higher, it may be easier just to use disk management in the computer management administrative tool. Format a partition and mount it to both z: and c:\backup.
Setting the max size of the folder is easy - just make the partition to the size you want.
 

Confused

Elite Member
Nov 13, 2000
14,166
0
0
If you're running 2k/XP and using NTFS, you should be able to use Quotas on the folder to stop it from growing past a set size.


Confused
 

AgaBoogaBoo

Lifer
Feb 16, 2003
26,108
5
81
When I reboot, the drive created using subst doesn't show up anymore.

I'd like to avoid partitions :)
 

hopejr

Senior member
Nov 8, 2004
841
0
0
Use the Drive Management section in the Computer Management Administrative Tool. The settings in there will be permanent (unless changed later).
Simply right-click on the partition/drive you want to map to the folder, click "Change Drive Letter and Paths...", click "Add...", and browse for the folder.

Edit: got mixed up what subst does. just checked. maybe a batch file will do it.
 

kamper

Diamond Member
Mar 18, 2003
5,513
0
0
Originally posted by: AgaBoogaBoo
Originally posted by: Confused
Put it in a batch file to execute on startup?

Do I have any other simple options?

Sorry for the bump, but I forgot about this thread :p

It's really simple, it's just putting a text file in the startup folder. I used to use it at work and it worked beautifully.
 

Klixxer

Diamond Member
Apr 7, 2004
6,149
0
0
Originally posted by: kamper
Originally posted by: AgaBoogaBoo
Originally posted by: Confused
Put it in a batch file to execute on startup?

Do I have any other simple options?

Sorry for the bump, but I forgot about this thread :p

It's really simple, it's just putting a text file in the startup folder. I used to use it at work and it worked beautifully.

Yup, just type the exact command in notepad and save the file as .bat, put a shortcut to it in your autostart directory and the command will start at boot.

In the old dos-win days i always had a directory called "bat" where i put all my batch files.