Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do you cange directoy?

Status
Not open for further replies.

Brimestone

IS-IT--Management
Oct 31, 2002
80
CA
Hey, I have this one program that I need to make it save files in a default directory in our sever. There is no way to tell the program where to go and our staff is not computer savvy to do it themselves. In Windoz 98 I could edit win.ini and system.ini to set the default paths but I can't seem to do that with Windoz 2000, any ideas on what I should do??

Thanks

Computers are like a bag of hammers, they won't do a damn thing until you pick it up and SMASH something with it!!
 
Well in Windows2000 (NT, XP etc) you can change environment variables within the GUI.

Right click "My Computer" and select "Properties". Located in here will be "Environment Variables". I don't have access to a 2000 box to check what tab, but it's hidden under "Advanced" for XP. Just look at each tab for the button. :)

We might be able to give you better help if we knew what program was being run, where it was located and where the output is currently going.

Nathan aka: zaz (zaznet)
zaz@zaz.net
 
Thanks zaznet,

I looked there but I'm not sure what to do, the program I'm using is Nikon's image downloader for our digital camera. Right now the default will only save files to the My Docutment\My Pictures folder on the local drive, but because the drive is too small to for all the images we take, I need to have it to automatically save the files to the server.

There is nothing in the program options to set the default path, you can of course manually save the file location, but our staff, for what ever reason, can’t figure it out and there is never enough time in my day to do it for them.

Thanks

Computers are like a bag of hammers, they won't do a damn thing until you pick it up and SMASH something with it!!
 
If you have an AD environment look at setting up folder redirection. This way the "My Documents" would be on the server. You can also do the same thing with some registry hacks, but you would have to edit the registry for each user savnig the files. The idea is to make "My Documents" a location on another computer or drive. It's not too hard actually and Windows 2000 is designed to allow it. Microsoft makes it easy for those who use their other products though. :)

Nathan aka: zaz (zaznet)
zaz@zaz.net
 

SubstAssociates a path with a drive letter. Used without parameters, subst displays the names of the virtual drives in effect.

Syntax
subst [drive1: [drive2:]Path]

subst drive1: /d

Parameters
drive1:
Specifies the virtual drive to which you want to assign a path.
drive2:
Specifies the physical drive that contains the specified path (if different from the current drive).
Path
Specifies the path that you want to assign to a virtual drive.
/d
Deletes a virtual drive.
/?
Displays help at the command prompt.
Remarks
The following commands do not work, or should not be used, on drives used in the subst command:
chkdsk
diskcomp
diskcopy
format
label
recover
The drive1 parameter must be within the range specified by the lastdrive command. If not, subst displays the following error message:
Invalid parameter - drive1:

Examples
To create a virtual drive Z for the path B:\User\Betty\Forms, type:

subst z: b:\user\betty\forms

Now, instead of typing the full path, you can reach this directory by typing the letter of the virtual drive, followed by a colon, as follows:

z:
 
Bill,

They removed subst a long time ago, I never knew it found it's way back into NT/2K/XP.

They need to do more than subst can accomplish though and replace the current users "My Documents" path with a network location.

If they could use subst to map a path (\\server\share\someplace\) to another path (c:\My Documents\) then they would be in business. You can do that easily in Unix now that I think of it :)

Nathan aka: zaz (zaznet)
zaz@zaz.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top