I recently had to replace my aging XP machine with a Win7 64 bit box. Freebasic still works fine but I discovered a strange error.
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
Now the FB code:
FILENAMECURRENT$ = "c:\OptData\Daily\"+CL$+".csv"
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:
Note the odd space right before the passed variable is joined into the file location variable.
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).