Solved IS this possible without setting up a network..

CriticalError

New member
Member
VIP
Local time
2:41 PM
Messages
118
Hey guys,

OK so I want to do this, instead of giving users disk quota (which is a pain) can I partition a drive give them around 3GB but keep same letters for all drives like U:<USERNAME> like this I do not need assign a different letter to each drive...

Thanks
 

My Computer

OS
Windows 7 Ultimate 32
CPU
AMD Athlon 64 X2 4400+ Brisbane 65nm Technology
Motherboard
ASUSTek Computer INC. NARRA3 (Socket AM2 )
Memory
Size 3072 MBytes
Graphics Card(s)
ATI Radeon HD 3450
Sound Card
Realtek High Definition Audio
Monitor(s) Displays
Name Generic PnP Monitor on ATI Radeon HD 3450 Current Resol
Screen Resolution
1440x900
Hard Drives
Manufacturer Seagate
Form Factor 3.5"
Interface ATA
Capacity 352GB
Real size 360,080,695,296 bytes
RAID Type None
S.M.A.R.T
S.M.A.R.T not supported
Partition 0
Partition ID Disk #0, Partition #0
Disk Letter C:
File System NTFS
Hey guys,

OK so I want to do this, instead of giving users disk quota (which is a pain) can I partition a drive give them around 3GB but keep same letters for all drives like U:<USERNAME> like this I do not need assign a different letter to each drive...

Thanks

One thing you might take a look at is the subst command. When each user logs on, they can execute a batch file that will give them a U: drive. a command like this will do it.

subst U: d:\user1

you can have directories on the D drive called user1 user2 user3
and when that user logs in, their U drive will really be their own directory
on your D drive.

Is that what your asking?

Rich
 

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
Toshiba Laptop Qosimo X870
OS
Windows 7 Pro x64 SP1
CPU
Intel Core I7
Motherboard
Toshiba Qosmio
Memory
16 Gigs
Graphics Card(s)
NVIDIA GeForce GTX 670M
Monitor(s) Displays
17.7" laptop
Screen Resolution
1600 x 900
Hard Drives
256 Gig SanDisk SSD for C
256 Gig Intel SSD for D
Internet Speed
50/25 FIOS
Antivirus
Vipre (all you can eat for 10 machines)
Browser
IE and FF
Other Info
I have dos 6.22, wfwg 3.11, win98, 2000 and xp VHD's available for testing. MS's Virtual PC works great.
Hey guys,

OK so I want to do this, instead of giving users disk quota (which is a pain) can I partition a drive give them around 3GB but keep same letters for all drives like U:<USERNAME> like this I do not need assign a different letter to each drive...

Thanks

One thing you might take a look at is the subst command. When each user logs on, they can execute a batch file that will give them a U: drive. a command like this will do it.

subst U: d:\user1

you can have directories on the D drive called user1 user2 user3
and when that user logs in, their U drive will really be their own directory
on your D drive.

Is that what your asking?

Rich

OK, but if I partition a drive by 20GB then do that how can users get 3GB from there? and how would it be possible to execute that command...

So if I made a drive U: of 20GB, then the users folders where in there, I just run that command, and it changes the directory?
 

My Computer

OS
Windows 7 Ultimate 32
CPU
AMD Athlon 64 X2 4400+ Brisbane 65nm Technology
Motherboard
ASUSTek Computer INC. NARRA3 (Socket AM2 )
Memory
Size 3072 MBytes
Graphics Card(s)
ATI Radeon HD 3450
Sound Card
Realtek High Definition Audio
Monitor(s) Displays
Name Generic PnP Monitor on ATI Radeon HD 3450 Current Resol
Screen Resolution
1440x900
Hard Drives
Manufacturer Seagate
Form Factor 3.5"
Interface ATA
Capacity 352GB
Real size 360,080,695,296 bytes
RAID Type None
S.M.A.R.T
S.M.A.R.T not supported
Partition 0
Partition ID Disk #0, Partition #0
Disk Letter C:
File System NTFS
I think I get it, if I make a partition of 20GB name it U, and have several users folder in there, and use that command to do this

subst \U:user1

then use task scheduler to execute that command on user login...
 

My Computer

OS
Windows 7 Ultimate 32
CPU
AMD Athlon 64 X2 4400+ Brisbane 65nm Technology
Motherboard
ASUSTek Computer INC. NARRA3 (Socket AM2 )
Memory
Size 3072 MBytes
Graphics Card(s)
ATI Radeon HD 3450
Sound Card
Realtek High Definition Audio
Monitor(s) Displays
Name Generic PnP Monitor on ATI Radeon HD 3450 Current Resol
Screen Resolution
1440x900
Hard Drives
Manufacturer Seagate
Form Factor 3.5"
Interface ATA
Capacity 352GB
Real size 360,080,695,296 bytes
RAID Type None
S.M.A.R.T
S.M.A.R.T not supported
Partition 0
Partition ID Disk #0, Partition #0
Disk Letter C:
File System NTFS
I think I get it, if I make a partition of 20GB name it U, and have several users folder in there, and use that command to do this

subst \U:user1

then use task scheduler to execute that command on user login...


By gosh, you got it. :):)

That should work but the subst command syntax is

subst u: d:\user1

I would not give the 20gig partition the same letter as your subst command.

my example of having several directories on my D drive called user1 user2 etc..
and then the
subst command requires a drive letter and a target location.

Rich
 

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
Toshiba Laptop Qosimo X870
OS
Windows 7 Pro x64 SP1
CPU
Intel Core I7
Motherboard
Toshiba Qosmio
Memory
16 Gigs
Graphics Card(s)
NVIDIA GeForce GTX 670M
Monitor(s) Displays
17.7" laptop
Screen Resolution
1600 x 900
Hard Drives
256 Gig SanDisk SSD for C
256 Gig Intel SSD for D
Internet Speed
50/25 FIOS
Antivirus
Vipre (all you can eat for 10 machines)
Browser
IE and FF
Other Info
I have dos 6.22, wfwg 3.11, win98, 2000 and xp VHD's available for testing. MS's Virtual PC works great.
I think I get it, if I make a partition of 20GB name it U, and have several users folder in there, and use that command to do this

subst \U:user1

then use task scheduler to execute that command on user login...


By gosh, you got it. :):)

That should work but the subst command syntax is

subst u: d:\user1

I would not give the 20gig partition the same letter as your subst command.

my example of having several directories on my D drive called user1 user2 etc..
and then the
subst command requires a drive letter and a target location.

Rich

Yup, there are a few questions (I did try this it worked so I am please with that) When I run the command, do I have to run it every time? and if I run it from my admin account it will show for each user right?

Third is I guess I will need to put disk quota on...? so users get 3GB and not that 20GB
 

My Computer

OS
Windows 7 Ultimate 32
CPU
AMD Athlon 64 X2 4400+ Brisbane 65nm Technology
Motherboard
ASUSTek Computer INC. NARRA3 (Socket AM2 )
Memory
Size 3072 MBytes
Graphics Card(s)
ATI Radeon HD 3450
Sound Card
Realtek High Definition Audio
Monitor(s) Displays
Name Generic PnP Monitor on ATI Radeon HD 3450 Current Resol
Screen Resolution
1440x900
Hard Drives
Manufacturer Seagate
Form Factor 3.5"
Interface ATA
Capacity 352GB
Real size 360,080,695,296 bytes
RAID Type None
S.M.A.R.T
S.M.A.R.T not supported
Partition 0
Partition ID Disk #0, Partition #0
Disk Letter C:
File System NTFS
Yup, there are a few questions (I did try this it worked so I am please with that) When I run the command, do I have to run it every time? and if I run it from my admin account it will show for each user right?

Third is I guess I will need to put disk quota on...? so users get 3GB and not that 20GB

I don't believe that you can put a quota on the directories that you subst for.

Re how to map the drives.
you can put it in their startup folder the batch job for each user.
Or you can create one batch file that goes to different sections based on who the
user is.

rem %USERNAME% is the key to branching out in a batch file.

rem batch file to subst a sub directory to a drive letter with subst command
if %USERNAME% = "greg" goto greg
if %USERNAME% = "mary" goto mary
:greg
subst u: d:\greg
goto exit
:mary
subst u: d:\mary
goto exit


this is a shell of a batch file, but there are others that probably will
make it much better..
BTW, subst commands die when the system is rebooted.


:exit


Rich
 

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
Toshiba Laptop Qosimo X870
OS
Windows 7 Pro x64 SP1
CPU
Intel Core I7
Motherboard
Toshiba Qosmio
Memory
16 Gigs
Graphics Card(s)
NVIDIA GeForce GTX 670M
Monitor(s) Displays
17.7" laptop
Screen Resolution
1600 x 900
Hard Drives
256 Gig SanDisk SSD for C
256 Gig Intel SSD for D
Internet Speed
50/25 FIOS
Antivirus
Vipre (all you can eat for 10 machines)
Browser
IE and FF
Other Info
I have dos 6.22, wfwg 3.11, win98, 2000 and xp VHD's available for testing. MS's Virtual PC works great.
I just left the folder in the U:\users (where it was previously with quota) and then hid that drive & used subst command...

Thanks for your help!
 

My Computer

OS
Windows 7 Ultimate 32
CPU
AMD Athlon 64 X2 4400+ Brisbane 65nm Technology
Motherboard
ASUSTek Computer INC. NARRA3 (Socket AM2 )
Memory
Size 3072 MBytes
Graphics Card(s)
ATI Radeon HD 3450
Sound Card
Realtek High Definition Audio
Monitor(s) Displays
Name Generic PnP Monitor on ATI Radeon HD 3450 Current Resol
Screen Resolution
1440x900
Hard Drives
Manufacturer Seagate
Form Factor 3.5"
Interface ATA
Capacity 352GB
Real size 360,080,695,296 bytes
RAID Type None
S.M.A.R.T
S.M.A.R.T not supported
Partition 0
Partition ID Disk #0, Partition #0
Disk Letter C:
File System NTFS
Back
Top