I always kinda figured that %COMSPEC% and the dos console were kinda the same thing. But this does seems to work though ... been playing a bit ...

SHELL '%COMSPEC% /C ""%USERPROFILE%\DESKTOP\NOTEPAD.EXE" "%USERPROFILE%\TEXT.TXT" '

Both those paths (on xp) are long filenames with spaces. Notice the double quotes - is this crazy ?

-Shawn

[ 08. July 2003, 02:27: Message edited by: Shawn ]