Announcement

Collapse
No announcement yet.

vista n powertree batch file problem

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • vista n powertree batch file problem

    this is the first time I try using powertree in my vista computer.

    problem:
    can run the pbcc sample program fine but not the dll .
    the make32.bat keeps saying path not found.
    here the edited make32.bat file for use with pb9
    can anyone tell me whats missing??

    ---------------------------------------------------------------------
    Code:
    @echo off
    echo Compiling sample programs with PB/DLL 6.00
    echo.
    
    set pbpath=c:\PBWin90
    
    if not exist %pbpath%\bin\PBEDIT.EXE.exe goto :Error
    
    echo Building CREATE.EXE
    %pbpath%\bin\pbedit /q /l create
    
    echo Building FIND.EXE
    %pbpath%\bin\pbedit /q /l find
    
    echo Building BROWSE.EXE
    if #%pbmake32%#==#X# goto :AlreadySet
    
    set include=%pbpath%\winapi;%include%
    set pbmake32=X
    
    :AlreadySet
    %pbpath%\bin\rc browse
    %pbpath%\bin\pbres browse
    del browse.res
    %pbpath%\bin\pbedit /q /l /i%pbpath%\winapi browse
    
    set pbpath=
    
    echo Done!
    
    goto :Done
    
    :Error
    echo PowerBASIC was not found in the expected location.
    echo You will need to edit the SET PBPATH= line of this batch file
    echo (using a text editor, such as NOTEPAD) to set the correct path.
    
    :Done
    Robert

  • #2
    ==>%pbpath%\bin\pbedit /q /l create
    ==> %pbpath%\bin\pbedit /q /l find
    ==> %pbpath%\bin\pbedit /q /l /i%pbpath%\winapi browse

    Don't you want 'pbwin' instead of 'pbedit' here? the /q, /l, and /i options are for pbwin.exe; the only options for pbedit are:
    Code:
    PBEDIT.EXE [/G:row,col:] [/P:MainFile] [Filename]
    MCM
    Michael Mattias
    Tal Systems (retired)
    Port Washington WI USA
    [email protected]
    http://www.talsystems.com

    Comment


    • #3
      MM

      change the pbedit to pbwin still get error message.
      ------------------
      PowerBASIC was not found in the expected location.
      You will need to edit the SET PBPATH= line of this batch file
      (using a text editor, such as NOTEPAD) to set the correct path.
      -------------------
      I was never good this batch files. If I made one, it was very simple.
      change batched file below.


      Code:
      @echo off
      echo Compiling sample programs with PB/DLL 6.00
      echo.
      
      set pbpath=c:\PBWin90
      
      if not exist %pbpath%\bin\PBWIN.EXE.exe goto :Error
      
      echo Building CREATE.EXE
      %pbpath%\bin\pbwin /q /l create
      
      echo Building FIND.EXE
      %pbpath%\bin\pbwin /q /l find
      
      echo Building BROWSE.EXE
      if #%pbmake32%#==#X# goto :AlreadySet
      
      set include=%pbpath%\winapi;%include%
      set pbmake32=X
      
      :AlreadySet
      %pbpath%\bin\rc browse
      %pbpath%\bin\pbres browse
      del browse.res
      %pbpath%\bin\pbwin /q /l /i%pbpath%\winapi browse
      
      set pbpath=
      
      echo Done!
      
      goto :Done
      
      :Error
      echo PowerBASIC was not found in the expected location.
      echo You will need to edit the SET PBPATH= line of this batch file
      echo (using a text editor, such as NOTEPAD) to set the correct path.
      
      :Done
      Robert

      Comment


      • #4
        Your line:-

        if not exist %pbpath%\bin\PBWIN.EXE.exe goto :Error

        would be better with only one '.exe'.

        Iain Johnstone
        “None but those who have experienced them can conceive of the enticements of science” - Mary Shelley

        Comment


        • #5
          I don't think this is an issue here (yet?) but....

          >echo Compiling sample programs with PB/DLL 6.00

          The 6x compiler is a 16-bit application and will not run on Vista/64. For that matter, I think the resource compiler (rc.exe) is also a 16-bit application.
          Michael Mattias
          Tal Systems (retired)
          Port Washington WI USA
          [email protected]
          http://www.talsystems.com

          Comment


          • #6
            Originally posted by Michael Mattias View Post
            For that matter, I think the resource compiler (rc.exe) is also a 16-bit application.
            No problem with that, it's a 32 bit one.

            Bye!
            -- The universe tends toward maximum irony. Don't push it.

            File Extension Seeker - Metasearch engine for file extensions / file types
            Online TrID file identifier | TrIDLib - Identify thousands of file formats

            Comment


            • #7
              removing the extra .exe fixed it. thanks everyone for you help.
              Robert

              Comment

              Working...
              X