Fund Manager
PORTFOLIO MANAGEMENT SOFTWARE
Contact Us

Run FM with command lines?

General questions about using Fund Manager that do not fit into any other forum.

Postby james6pak » Wed Aug 03, 2011 3:22 pm

Can you please explain how to run FM with command line arguments in Windows 7? Batch file or what?
Is there a way to enter command lines using the Windows 7 Start Menu?
If a batch file is used, where on the hard disk do you place it to get the path right?
Please give an example with everything in the right place to run a batch file from the Windows 7 "Run" command.
This is basic stuff but not everyone (especially me) knows how to do it.
james6pak
 
Posts: 6
Joined: Thu Jul 28, 2011 9:57 am

Postby Mark » Wed Aug 03, 2011 5:39 pm

Hi james6pak,

You can run a command line from a command window (the old DOS looking window), from a batch file, or directly in Windows Task Scheduler. The more common usage for Fund Manager is probably the batch file or Windows Task Scheduler.

Command Prompt:
Select "Start / Run..." and type in "cmd" and press enter. This should open a command prompt window, where you can type in the commands, with any command line arguments you want. This can be useful for testing in the process of creating a batch file. You can also get to this command prompt with "Start / All Programs / Accessories / Command Prompt".

Batch File:
Create a text file with the extension of .bat. You can create this in any text editor, like Notepad. Enter in your commands into this file. You can now "run" this batch file, like you would any other program. For example, double click on it in Windows Explorer. You can also assign it to run on a schedule, using Windows Task Scheduler.

Windows Task Scheduler:
When you set up a task, you can choose a program to run, plus add optional command line arguments. For basic automatic price updating using Fund Manager command line arguments, this is probably the easiest method to use.

For reference, here are the available command line arguments for Fund Manager, plus some samples:

http://www.fundmanagersoftware.com/help/ui_comline.html
Thanks,
Mark
Fund Manager - Portfolio Management Software
Mark
Site Admin
 
Posts: 11708
Joined: Thu Oct 25, 2007 2:24 pm
Location: Chandler, AZ

Postby james6pak » Wed Aug 03, 2011 7:20 pm

Thank you for the detailed reply.

Trying to use a batch file in Windows 7, my command is as follows:

C:\Program Files (x86)\Fund manager\Fm.exe "C:\Users\Roy\My Documents\Fund Manager\master.mm4"

The batch file is located in: C:\Users\Roy. The program does not run; the message returned indicates that the program file cannot be found. The path names given are verified to be correct. This is why I asked you initially where the batch file should be placed on the hard disk.

Thank you.
james6pak
 
Posts: 6
Joined: Thu Jul 28, 2011 9:57 am

Postby Mark » Thu Aug 04, 2011 9:10 am

Hi james6pak,

Please put double quotes around the command. Since it has spaces in the path, you need the double quotes. Like this:

"C:\Program Files (x86)\Fund manager\Fm.exe" "C:\Users\Roy\My Documents\Fund Manager\master.mm4"

The location of the batch file itself doesn't matter, as long as you have read/write access to it.
Thanks,
Mark
Fund Manager - Portfolio Management Software
Mark
Site Admin
 
Posts: 11708
Joined: Thu Oct 25, 2007 2:24 pm
Location: Chandler, AZ

Postby james6pak » Thu Aug 04, 2011 2:20 pm

Thank you very much.
The batch file works fine now.
james6pak
 
Posts: 6
Joined: Thu Jul 28, 2011 9:57 am


Return to General

Who is online

Users browsing this forum: No registered users and 46 guests

FundManagerSoftware.com | Search | Site Map | About Us | Privacy Policy
Copyright © 1993-2025 Beiley Software, Inc. All rights reserved.
cron