Tom,
Well since that's my only option, then I have another problem... please
bear with me.
I didn't say it was your only option. You asked what replaced batch files,
not what other options you besides batch files.
The following directory exists on my C:\ drive... (believe me... this
path is correct, I checked it countless times in XP Explore)
C:\Program Files\Microsoft Office\Office\XPExpress
In the DOS environment, this directory string fails on the Office
portion...
CD C:\Progra~1\Micros~1 -- works fine
CD C:\Progra~1\Micros~1\Office -- Fails with "invalid
directory"!!
Are you sure that is the correct short name? Open a command prompt and
navigate to the Program Files directory. To see the short names for the
long names, issue the following command:
dir /x mic*
This will output the shortname and the long name. Verify that Micros~1 is
the 8.3 alias for the Microsoft Office folder.
Also, when I do a DIR in DOS from the C:\Progra~1\Micros~1 directory, I
don't see the "Office" directory at all...but XP Explore sees it.
This adds weight to the theory that Micros~1 is not the Microsoft Office
directory but some other Microsoft directory.
What in the heck could be the problem? I don't have any weirdo
"shared/not shared"
There is an "Office11" directory along with "Office" in the Microsoft
Office directory, but that shouldn't be causing a problem.
Why can't DOS see that directory???
It's not DOS, it's a command prompt window. Batch files by default will
run under cmd.exe, not command.com. You don't need to worry about what the
8.3 alias is for a directory, the CD command supports LFN's and spaces.
Just do:
CD /D C:\Program Files\Microsoft Office\Office
Or you can also use quotes to indicate that the entire param is a
directory:
CD /D "C:\Program Files\Microsoft Office\Office"
--
Tom Porterfield
MS-MVP Windows
http://support.telop.org
Please post all follow-ups to the newsgroup only.