New User - Compiled exe and ini

General Macro Scheduler discussion

Moderators: JRL, Dorian (MJT support)

Post Reply
scottf
Newbie
Posts: 2
Joined: Mon Sep 22, 2003 3:52 pm

New User - Compiled exe and ini

Post by scottf » Tue Sep 23, 2003 8:27 pm

First post, new user. Can anyone tell me if there's a way to change the default location the comiled exe is placed on pro. A pain to navigate to installed program location every time. Changed the group properties but that didn't work on the exe. Also can anyone point me to some information on the format of using ini files?

Thanks, ps great product

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Tue Sep 23, 2003 10:01 pm

Hello scottf..............

Try this link for INI explanation:
http://my.execpc.com/~iniman/what_is.html

Some suggestions re compiled scripts in Macro Scheduler.
1. Make a folder just for compiled files.
2. Make a version variable in your script: LET>Version=1a
3. Name the compiled file as *.exe with the version ID, like FileName_1a.exe
4. Immediately copy the *.scp file to the same folder.
5. Rename the *.scp to the same name as the *.exe with a Version ID, like FileName_1a.scp
6. Change the properties of the *.scp in the compiled folder to Read Only.
7. This will also allow you to keep a working copy in your normal folder, Immediately change to the next Version in your variable setting and save. Now you can modify as desired, and will not have to remember what your last compiled version was. You may also want to include History as comments in the script which might include problems resolved, and date last version is compiled.

As you upgrade, troubleshoot, etc. you will be happy to have these references.
============================

I have also found that once you define the folder location for the Compiled file, that location will come up automatically during the current Macro Scheduler session. That might be coincidental and just going to MRU folder whether or not it is a compiled file that is saved.
============================
Some notes re INI file creation.
You cannot write to INI if it does not exits. A new INI file will not be created. So I would suggest that your steps include:
1. Check for INI.
2. If the INI file does not exist then WriteLn> to create the INI file. Perhaps write the name of a top [Section]. Skip to EditIniFile>
3. If the INI file does exist then Skip to EditIniFile>

=========================
Hope this is helpful.................good luck,
Bob

User avatar
support
Automation Wizard
Posts: 1450
Joined: Sat Oct 19, 2002 4:38 pm
Location: London
Contact:

Post by support » Wed Sep 24, 2003 6:38 am

Hi,

Regarding compiling a script to an .EXE if you compile from the editor (Tools/Create EXE or the toolbar button or CTRL-F9) you can specify the location when you compile.

In the main Macro Scheduler control panel the script is compiled to the same location as the script file with the same name. Obviously therefore if you organise your macros into groups and change the group path you can set the default for macros you compile.
MJT Net Support
[email protected]

scottf
Newbie
Posts: 2
Joined: Mon Sep 22, 2003 3:52 pm

Compiled exe

Post by scottf » Wed Sep 24, 2003 1:04 pm

Thank-you both for your quick reply. My group properties for the macro is set to c:\my documents. The macro for sure resides in that directory, but when I compile, it gets created in the program directory. Also I don't get prompted for a compile location when using Tools/create exe.

Thanks again, Scott :D

User avatar
support
Automation Wizard
Posts: 1450
Joined: Sat Oct 19, 2002 4:38 pm
Location: London
Contact:

Post by support » Wed Sep 24, 2003 1:08 pm

Hi,

You will get prompted for a location when compiling from the EDITOR.

Tools/Compile from the Editor menu.
MJT Net Support
[email protected]

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts