12-13-2022, 03:40 PM
(12-13-2022, 12:57 AM)Pete Wrote:Code: (Select All)IF _FILEEXISTS("D:\Program Files\Notepad++\notepad++.exe") THEN
SHELL "D:\" + CHR$(34) + "Program Files" + CHR$(34) + "\Notepad++\notepad++.exe tmp.three"
ELSE
PRINT "Cannot find notepad++"
END IF
Thank's for the Tipps! It even works with "Program Files" now, thanks Pete. The IP number is displayed and Notepad opens with the specified file. There are two peculiarities:
1. The command line is also opened; is probably due to "Shell".
2. Without "_DontWait" the output window can/will not be closed until Notepad is closed.
It shows, however, that it is also possible with Basic, even with "Program Files". Upgradable! I will try if I can pack the call to external programs in a function.