Minor observation.

Your path to NOTEPAD.EXE is wrong, but I think it does illustrate the intent of this thread.

An executable or associated program should be able to support the parameters discussed if properly '"quoted"'.

code:
 SHELL '%COMSPEC% /C ""%systemroot%\SYSTEM32\NOTEPAD.EXE" "%USERPROFILE%\TEXT.TXT"" ' 



[ 08. July 2003, 04:30: Message edited by: NTDOC ]