Re: Win32Lib & system_exec : how can it run NotePad or WordPad?

new topic     » goto parent     » topic index » view thread      » older message » newer message

If you're using win32lib, why use system_exec() at all,
...when you could be using shellExecute() ?
Anyways, system_exec() will handle long file/path names, *if* you are using
exw.exe, and "quote" the file/path name properly.

Example-- that opens itself :
--show_it.exw--
atom result
sequence thefullPath  -- in quotes
thefullPath
= "\"C:\\Program Files\\Accessories\\Wordpad.exe show_it.exw\""
result
= system_exec(thefullPath,2)
--end--

Notepad doesn't even need a path, as shown here:

--show_it2.exw--
atom result
sequence theprogram
theprogram
= "notepad.exe show_it2.exw"
result
= system_exec(theprogram,2)
--end--

Wolf

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu