Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: environment search drive mappings path
Many of my users have most if not all of the drive letters mapped to suit themselves and I need to launch an application that needs temporary use of several drive letters. And to make it worse, some networks are Novell 3.x and others are 4.x; most desktops are Windows 3.1, but some are Win95 and some are Windows for Workgroups, with a few NT systems thrown in for flavor.
I looked at the extender DLL's and netware help files. But I didn't see anything that would tell me if a drive is mapped as root and/or search. Just knowing which drives are mapped doesn't help if I need 5 letters and there are only 3 left unmapped. Since there does not seem to be a way for WinBatch to map a drive as a search drive, I need to avoid "stealing" those letters, because I can't put them back. The users would kill me slowly and painfully if I mess up their search paths. I got this problem dumped in my lap along with a copy of WinBatch, so I need all the help I can find.
Basically this is an environment change. Changing the environment can get sticky, as follows:
We've solved this problem for you via the "Environment Manager" extender. It can change the environment in 16 bit Windows. No sweat.
There are documented ways to change the environment in Windows NT in the database. Some sweat, but it works. You modify the registry and send out a WININICHG message. You can search for WININICHG in this tech support database for the relevent article.
Run for the hills. Environment handling is iffy at best in Windows 95. In certain select cases it can work very well, but outside of that...dead meat.
If you just want to change the path for a single application -- launched either by Explorer or WinBatch -- you can use the RegApp function. It works great.
If you want to change it for the entire system, or if the app you launched want to launch another app....too bad.
If you want to determine if a specific drive is a search drive, try the following script:
a=Environment("PATH") b=strindex(a,"P:",0,@fwdscan) if b==@true Message("Apparently P:","is a search drive") else Message("Apparently P:","is NOT a search drive") endif
What do you think about this. Will WinBatch behave in the same fashion?
Article ID: W12914
Filename: Detecting Search Drive Mappings.txt
File Created: 1999:04:15:16:50:30
Last Updated: 1999:04:15:16:50:30