Compiled Script fails but runs fine under Winbatch Studio.

Started by pguild, June 15, 2019, 09:17:02 PM

Previous topic - Next topic

pguild

The following code runs correctly from Winbatch Studio, but
when compiled it fails to activate the default browser.

==> After rebooting computer and walking Magic Momo Superdog, the compiled script works again.
I guess, when in doubt, try the old reboot the computer trick.
Comments?

;grr.wbt
   url = "https://forum.winbatch.com/" ;@@ DEBUG
   beep
   shellexecute(url, "", "", @ZOOMED,"")

RETURN
www.DogTrainingPsychology.com -- "Don't wish it were easier, wish you were better."  as aphorism by Jim Rohn as quoted in the Kindle Book, GEMS OF WISDOM by Philip Seyer

td

Generally, when a script works in WBS but not compiled it is either the result of UAC settings of the compiled script or because of an assumption made about the start location of the compiled script.  Assuming you have not left out some important detail, neither of these conditions would be affected by rebooting.  So you have to ask our friends in Redmond.
beep.   
"No one who sees a peregrine falcon fly can ever forget the beauty and thrill of that flight."
  - Dr. Tom Cade