Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - sparjolly

Pages: [1]
1
QB64 Discussion / Re: Batch process pauses in between every qb64 exe
« on: October 31, 2020, 08:58:36 pm »
Yes, this solved the problem. Never realized till now the difference between "END" and "SYSTEM" statements which I have been using interchangeably all these years. Thank you for the quick response.

2
QB64 Discussion / Batch process pauses in between every qb64 exe
« on: October 31, 2020, 08:25:44 pm »
I have created the following batch file to execute two QB64 exes in succession. It works, except that the process pauses in between the two programs with "Press any key to continue" message. Is there some way to suppress this pause so that both the programs are run without any key press required?

C:\Windows\SysWOW64\cmd.exe /c PROGA
C:\Windows\SysWOW64\cmd.exe /c PROGB

3
QB64 Discussion / Re: DIR$ function is missing
« on: October 26, 2020, 07:57:01 pm »
I am back again. While the "pipecom.h" library provides a solution, it captures all the file names in the folder meeting the specified criterion. Having a folder with hundreds of files will require creating a huge string array to store all the file names in the program.

The original code using DIR$ function of BASIC fetches only one name at a time, which is a more elegant solution.

I wonder if the "while (!feof(stream))" statement be pulled out of the library so that it provides only one file name at a time and returns a nul when all the files are covered.

Thanks


F$=DIR$("*.LL1")

DO WHILE F$ <> ""

    CNT$ = LEFT$(F$, 4)

    OPEN CNT$ + ".LL1" FOR INPUT AS #1
    OPEN CNT$ + ".LL" FOR OUTPUT AS #2

    F$ = DIR$

LOOP

4
QB64 Discussion / Re: DIR$ function is missing
« on: October 26, 2020, 12:17:57 pm »
Thanks for your suggestion. The issue is resolved.

5
QB64 Discussion / DIR$ function is missing
« on: October 26, 2020, 10:06:32 am »
My old BASIC code that was working with 32-bit QBASIC compiler now shows error in QB64 on the following line with DIR$ function. Is there any way to walk around this issue?

F$=DIR$("*.LL1")

Pages: [1]