in reply to Program Not Found when run from browser page
For example, the following perl program line will launch Microsoft Word on my PC:
system("C:\\Program Files\\Microsoft Office\\OFFICE11\\WINWORD.EXE");
When I try the same in JSScript, an interesting thing happens... Hmmm..
// This doesn't work for some reason:
// new ActiveXObject("WScript.Shell").Run("C:\\Program Files\\Microsoft Office\\OFFICE11\\WINWORD.EXE");
// This one works.
new ActiveXObject("WScript.Shell").Run("C:\\PROGRA~1\\MICROS~2\\OFFICE11\\WINWORD.EXE");
Well, this is quite lame. It appears that if your folder or program name has spaces in it or is longer than 8+3 characters that is standard in DOS, then the program must be referred to by its 8+3 name. This is beyond stupid, but this could be the reason why you can't launch the program from JS.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Program Not Found when run from browser page
by SankoR (Prior) on Nov 13, 2024 at 21:31 UTC | |
by LanX (Saint) on Nov 13, 2024 at 21:45 UTC | |
by choroba (Cardinal) on Nov 13, 2024 at 21:51 UTC | |
by LanX (Saint) on Nov 13, 2024 at 22:07 UTC | |
by harangzsolt33 (Deacon) on Nov 14, 2024 at 02:12 UTC | |
by soonix (Chancellor) on Nov 14, 2024 at 09:00 UTC |