[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/driver/mysqli.php on line 264: mysqli_fetch_assoc(): Couldn't fetch mysqli_result
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/driver/mysqli.php on line 326: mysqli_free_result(): Couldn't fetch mysqli_result
Pete's QBASIC Site Discuss QBasic, Freebasic, QB64 and more 2010-05-11T00:01:40-05:00 http://petesqbsite.com/phpBB3/app.php/feed/topic/3254 2010-05-11T00:01:40-05:00 2010-05-11T00:01:40-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=20629#p20629 <![CDATA[Problem passing variable to FB file in Win7]]> Statistics: Posted by dbish — Tue May 11, 2010 12:01 am


]]>
2010-05-10T23:58:06-05:00 2010-05-10T23:58:06-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=20628#p20628 <![CDATA[Problem passing variable to FB file in Win7]]>
I use a batch file to get user input (a file date), decompress a zipped data file for that date and then call a freebasic executable to do the processing. I am trying to pass the input 20100507 to both the process in the batch file as well as the FB program.

Batch file snippet:
set /p FILEDATE=Enter IndexDate of manual file (YYYYMMDD):
rem to test what is input - works correctly echo ___%FILEDATE%
rem to test what is input - works correctly Pause
pkzipc -extract c:\OptData\Daily\%FILEDATE%.zip
c:\OptData\Develop\Option~1.exe %FILEDATE%

Now the FB code:
CLS
CL$=COMMAND$
PRINT "CL$=";CL$
FILENAMECURRENT$ = "c:\OptData\Daily\"+CL$+".csv"
PRINT "___";FILENAMECURRENT$

For some reason the FB program is now adding an extra space. My two Print lines are to debug. The first line (Print CL$) returns a null variable (output is CL$=)
The FILENAMECURRENT$ variable returns:
c:\OptData\Daily\ 20100507.csv

Note the odd space right before the passed variable is joined into the file location variable.

Questions:
1. Has anybody else experienced this sort of odd behavior in Win7. The programs worked fine in XP.
2. Any ideas on why or if the program is likely to be consistently bad in this area (if so I can find some micky mouse way around it).

Thanks

Statistics: Posted by dbish — Mon May 10, 2010 11:58 pm


]]>