Sage 100

 View Only
  • 1.  I have a vbscript, compiled as an exe, that I am t

    Posted 08-25-2016 11:55
    I have a vbscript, compiled as an exe, that I am trying to run from the ""My Tasks"" menu in Sage 100 2015 Std. It runs fine if I execute it outside Sage 100. It runs fine if I put a batch (.bat) file in ""My Tasks"" and CALL it from the batch file. Unfortunately, I get the DOS command window also. If I run the EXE file directly from ""My Tasks"" as a program, when I execute it, I get ""Progname.exe has stopped working"". Where Progname is the name of my exe file. Does anyone know of anything I can do make this work without a batch file? I've also looked at DEP settings and Compatibility related to the EXE file , but that doesn't seem to make a difference.


  • 2.  RE: I have a vbscript, compiled as an exe, that I am t

    Posted 08-25-2016 12:25
    How did you compile it to EXE? If you launch a BAT file and use the START command, i think the DOS Box will go away after execution.


  • 3.  RE: I have a vbscript, compiled as an exe, that I am t

    Posted 08-25-2016 12:29
    I compiled it using PrimalScript's packager that included their Wscript 32-bit engine. I'll give the START command a try.


  • 4.  RE: I have a vbscript, compiled as an exe, that I am t

    Posted 08-25-2016 12:34
    That worked well enough Steve. The command box flashes briefly, but then goes away. Much better than just hanging there the whole time. Thank you.


  • 5.  RE: I have a vbscript, compiled as an exe, that I am t

    Posted 08-25-2016 17:05
    Just for anyone's future use, I was able to get this working without a batch file. I found in my notes that you can make a shortcut (or .lnk) to your EXE file, and set the Run value in the shortcut properties to ""Minimized"". **The trick** then is to drag the shortcut from its folder to the ""My Tasks"" menu area where you want the program to appear. If you add through the normal menu setup in ""My Tasks"", it often does not work.