|
-
Jan 1st, 2021, 04:00 PM
#8
Re: shellexecute versus opening from explorer
@elroy, no compatibility shims at all, just compile and run
i get the same issue running from shell, .bat, .cmd, wscript.run
when the calling program closes then the called program runs, it is already running as a process, but is not active while the caller is still running
i tried a very simple test program and the problem did not occur, so i would believe there must be something in the code to cause this issue
i now have a workaround, unloading the caller and restarting, i would probably prefer a better solution, but as it is only for my own use and can go for many days between needing to shell the program, i guess it will do
i only found there was an issue when i was posting some answer for a thread in the forum, but it did explain some problems i had noticed when using
until i deploy the workaround, i know just to restart the program from the exe or shortcut, which in itself might have been enough to solve the issue
i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next
dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part
come back and mark your original post as resolved if your problem is fixed
pete
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|