Wow...thanks for the replies.
Let's take them apart:
1) The WSH option is a decent one, but I was looking for a KIX-only solution.
2) The use of double "" does not properly work for profgen. My command is "{path}profgen.exe {path}newprof.exe -P {path}my.prf {switches} -T {path}TempDir" If any of the second or more pathes have spaces, the command chokes. Quotes in a variety of ways have been tried...doesn't work. Short name pathing does work. However, as described, you can't reliably figure out MS's method for determining a short name, just by knowing the long name.
3) Dir/x works okay, execept when trying to get the short name for a directory itself. It will return the contents of the directory.
4) If a short name is not available because it has been disabled - that's a problem.
Basicly, we need KIX to query the file system/OS to return a short name (if available) for a long name provided. That's what WSH is doing in the provided example.
Great conversation!
Ed
[ 27. November 2002, 15:30: Message edited by: Crazy Eddie ]
_________________________
{Insert your favorite Witty Tag Line here}