Command Line Compile


Closed Thread
Results 1 to 19 of 19

Hybrid View

  1. #1
    Join Date
    Oct 2004
    Posts
    440


    Did you find this post helpful? Yes | No

    Default

    Do you have C:\Program Files\Microchip\MPASM Suite; in your PATH?
    Path set as:
    I:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\;I:\P rogram Files\Borland\BDS\4.0\Bin;%SystemRoot%\system32;%S ystemRoot%;%SystemRoot%\System32\Wbem;I:\Program Files\Microchip\MPASM Suite

    cd /home/shop/MAC/PIC\ LINUX/SweepBot
    Windows run doesn't take a "cd" no quotes.

    Also trying in a Delphi program ShellExecute(Handle, 'open', PChar(Edit1.TEXT), nil, nil, SW_SHOWNORMAL);

    My conversion, not working from windows run(brief DOS flash) or Delphi shell(nothing):
    wine c:/pbp/pbpw -e -s -ac:/Program\ Files/Microchip/MPASM\ Suite/MPASMWIN -p16f676 z:/home/shop/MAC/PIC\ LINUX/SweepBot/SB1.bas
    e:\1PicBasicPro\PBP\PBPL -e -s -ai:\Program Files\Microchip\MPASM Suite\MPASMWIN -p18f4520 e:\1PBP\Headings\test.pbp
    e:\1PicBasicPro\PBP\PBPL -e -s -ampasmwin -p18f4520 e:\1PBP\Headings\test.pbp

    Norm
    Last edited by Normnet; - 21st July 2009 at 03:53.

  2. #2
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    You are writing an editor correct?
    That was my point of showing you the guts of a windows *.bat file.
    Have your editor create the BAT then have the editor run it. Or you can put the shebang
    line in a window DOS prompt window. And yes you will have to CD into it.
    Windows RUN is not quite the same as a DOS prompt.
    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Oct 2004
    Posts
    440


    Did you find this post helpful? Yes | No

    Default

    Success!
    Thanks all.

    Norm

  4. #4
    Join Date
    Oct 2004
    Posts
    440


    Did you find this post helpful? Yes | No

    Default

    How to make bat file terminate on last command instead of waiting
    until the program (programmer) it opened is closed.

    Sorry, started computers in 1995 (AD after DOS).

    Norm

  5. #5
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Not sure I follow.
    The examples I gave will start MPASMWIN. When that GUI is finished and OK is clicked the DOS window should terminate.
    Dave
    Always wear safety glasses while programming.

  6. #6
    Join Date
    Oct 2004
    Posts
    440


    Did you find this post helpful? Yes | No

    Default

    MPASMWIN is OK.

    My programmer (Easy PIC 3) doesn't close after completed and keeps the DOS file open.
    Is their a DOS way to terminate itself once the programmer is launched?
    The next line in DOS doesn't run until programmer is closed.

    Norm

  7. #7
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Is this what you are needing?
    http://www.computerhope.com/issues/ch000320.htm
    Dave
    Always wear safety glasses while programming.

Similar Threads

  1. Unable to pass a variable to LCDOUT without getting compile errors
    By Ferroto Baggins in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 28th February 2010, 16:43
  2. Compile and Program help using PICKit2
    By ozarkshermit in forum mel PIC BASIC Pro
    Replies: 15
    Last Post: - 10th March 2009, 14:51
  3. USB PBPL Compile errors
    By Rob in forum USB
    Replies: 11
    Last Post: - 7th April 2008, 08:18
  4. Cannot compile for 40MHz 4 x pll
    By passion1 in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 21st October 2007, 17:50
  5. Replies: 2
    Last Post: - 9th February 2006, 22:03

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts