Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QB64-PE v4.2.0 is now available
#7
I am happy to see we did not loose Fellippe as a provider.
"- #627 - Fix IDE error when loading large source file - @FellippeHeitor"

I am re-posting a little up-grader program from long ago I made (version qb64pe 3.x something).  To assist in times like now, when a new version arrives.
This a multi-file drop program.  Collect all your EXE's and drop into the program window.  Then open a command prompt window run the doit.cmd script.

I only assume your source files are in a qb64pe directory sub folder.  In my case it's qb64pe\my programs.  If not it's an easy tweak, start with lines 13, 20 and 21.
I hope you find this useful, it saves me from individual compiling of dozens of programs.
P.S. don't recompile qb64pe and qb64pe bas upgrader  and if you get a "hit any key to continue" just doit.  Not sure why but it happens, really shouldn't.

Code: (Select All)
_Title "QB64pe Bas Upgrader v1.0"
Width 80, 10
_ScreenMove 10, 10

Cls
'
' I always use q$ to use quotes, just how I am
Q$ = Chr$(34)
'
' define where sources are  <<< change variable to your directory >>>
' remember to slap a "\" to your source path end
'
source$ = "My Programs\"

'
' get home path
' noramlly this would be in the root of qb64pe
' screwy things could happen if it isn't
'
hp$ = Command$(0)
hp$ = Left$(hp$, _InStrRev(hp$, "\"))

' assume homepath + source is one path from here on out.

ChDir hp$

_AcceptFileDrop 'enables drag/drop functionality
Print "Drag the EXE file(s) and drop in this window... or x to exit"

Do
    _Limit 3
    x$ = InKey$
    If UCase$(x$) = "X" Then
        Cls
        Print "I don't plan to open a command prompt"
        Print "for you.  doit.cmd script is in " + hp$
        Print "folder. You can examime / execute / observe."
        hitenter
        System
    End If
Loop Until _TotalDroppedFiles <> 0

Open "doit.cmd" For Output As #1

Do
    Print
    f$ = _DroppedFile
    If f$ = "" Then Exit Do
    '
    ' take out all path info and test for source available.
    ' also scrap off extention
    '
    f$ = Right$(f$, Len(f$) - _InStrRev(f$, "\"))
    f$ = Left$(f$, Len(f$) - 4)
    Print "Using "; f$
    '
    ' ok do we have source bas ?
    '
    If _FileExists(hp$ + source$ + f$ + ".bas") = 0 Then
        Print "Sorry I can not compile the above file. The source does not"
        Print "exist in paths provided. Suggest exclude the file(s)"
        Print "next time in selection and drop again."
        hitenter
    End If
    '
    ' if you got this far a doit.cmd line can be generated
    '
    Print #1, hp$ + "qb64pe.exe -c " + Q$ + hp$ + source$ + f$ + ".bas" + Q$

Loop

Close
'
' another chance to do over or exit
'
Print "doit.cmd created and closed"
Print "Hit enter, followed by x"
Print "to exit or drop files again"
hitenter
Run

Sub hitenter
    Input "Hit <enter> to continue "; bad
End Sub
Reply


Messages In This Thread
QB64-PE v4.2.0 is now available - by RhoSigma - 06-28-2025, 04:37 PM
RE: QB64-PE v4.2.0 is now available - by NakedApe - 06-28-2025, 05:04 PM
RE: QB64-PE v4.2.0 is now available - by zaadstra - 06-28-2025, 05:16 PM
RE: QB64-PE v4.2.0 is now available - by a740g - 06-28-2025, 06:18 PM
RE: QB64-PE v4.2.0 is now available - by NakedApe - 06-28-2025, 07:06 PM
RE: QB64-PE v4.2.0 is now available - by RhoSigma - 06-28-2025, 07:41 PM
RE: QB64-PE v4.2.0 is now available - by doppler - 06-28-2025, 07:59 PM
RE: QB64-PE v4.2.0 is now available - by madscijr - 07-11-2025, 01:37 PM
RE: QB64-PE v4.2.0 is now available - by Elzaimer - 07-07-2025, 09:35 AM
RE: QB64-PE v4.2.0 is now available - by a740g - 07-07-2025, 10:03 AM
RE: QB64-PE v4.2.0 is now available - by madscijr - 07-11-2025, 10:40 PM
RE: QB64-PE v4.2.0 is now available - by doppler - 07-14-2025, 05:44 PM
RE: QB64-PE v4.2.0 is now available - by madscijr - 07-14-2025, 08:14 PM
RE: QB64-PE v4.2.0 is now available - by RhoSigma - 07-14-2025, 08:16 PM
RE: QB64-PE v4.2.0 is now available - by SMcNeill - 07-14-2025, 09:28 PM
RE: QB64-PE v4.2.0 is now available - by SMcNeill - 09-30-2025, 07:00 PM
RE: QB64-PE v4.2.0 is now available - by RhoSigma - 09-30-2025, 08:14 PM
RE: QB64-PE v4.2.0 is now available - by Dav - 11-06-2025, 01:18 PM
RE: QB64-PE v4.2.0 is now available - by Dav - 11-06-2025, 07:41 PM
RE: QB64-PE v4.2.0 is now available - by RhoSigma - 11-06-2025, 08:23 PM
RE: QB64-PE v4.2.0 is now available - by Dav - 11-06-2025, 08:38 PM
RE: QB64-PE v4.2.0 is now available - by SMcNeill - 11-06-2025, 08:36 PM
RE: QB64-PE v4.2.0 is now available - by Dav - 11-14-2025, 01:36 PM
RE: QB64-PE v4.2.0 is now available - by a740g - 11-22-2025, 11:02 AM
RE: QB64-PE v4.2.0 is now available - by Dav - 11-22-2025, 01:00 PM
RE: QB64-PE v4.2.0 is now available - by Fifi - 01-15-2026, 12:58 AM
RE: QB64-PE v4.2.0 is now available - by SMcNeill - 01-15-2026, 01:10 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)