Hello everybody.
The TB project I'm working on today requires to open a Windows explorer by the script on certains conditions.
The need has two cases :- Open explorer window and continue the script regarless of what is done in this window by the user.
- Open explorer window and wait until user closes the window
In the first case, the window may be closed by the user without interferring with TB script or stay active after the end of the creating script.
Script and explorer window are completely independent.
I used
Pid = OS_Shell( command_exec_path & command_opt & file_to_work_on , %OS_WNDSTYLE_NORMAL, %OS_SHELL_ASYNC)
to call a program (in this case :Acrobat_reader ) and continue execution of script.
The script uses
to stop the program, sometimes it is unuseful as the users already closed the window.
I also used
if waiting was necessary.
NOTE:
I noticed with 'Sysinternals-Process-explorer' that EXPLORER.EXE has only ONE instance, regardless of the number of explorer windows open.
And when I bundle a script, at the end of succesful bundling, a popup message invites to browse the executable directory.
If I click on 'YES' , a new process'EXPLORER.EXE' is created, independent of the explorer lauched at booting.
Closing the window makes process die, and killing the process closes the window and nothing is done to other explorer windows
The creator of BUNDLE could help.
Many thanks for help.
Justin
Bookmarks