WinBatch® Technical Support Forum

All Things WinBatch => WinBatch => Topic started by: pguild on June 15, 2019, 09:17:02 PM

Title: Compiled Script fails but runs fine under Winbatch Studio.
Post by: pguild on June 15, 2019, 09:17:02 PM
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
Title: Re: Compiled Script fails but runs fine under Winbatch Studio.
Post by: td on June 15, 2019, 11:23:00 PM
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.