PDA

Click to See Complete Forum and Search --> : Easy .bas to .qb renaming possible?


RAEsquivelC
Aug 8th, 2003, 09:36 AM
I have many programs still in their original, QuickBASIC 4.5 (QB) binary format, with the terminarion .bas.

This year, I started learning VB, started with Version 2, and now am using the Version 6.0 "working model".

I keep two, separate folders, QuickBASIC and VB.

Today, I used the Windows Explorer (WE) to go into my QB files to look for one of my oldies. I found that all the old QB *.bas files now have the VB icon, instead of the QB icon, and, the File Type now reads, "Visual Basic Module".

Going to the WE, Tools, Folder Options, tag File Types, I find the program QB.exe (correct) opens files with the extension QB (I didn't do the change, I suspect VB did it when I loaded it), and Visual Basic Module opens files with the extension BAS. And, if I double click on any of these filename.bas files, VB opens and gives an error report, " '(complete path)\filename.bas' is in binary form and cannot be loaded into VB"

I have renamed one QB file, "Colors.bas" to "Colors.qb", and it opens fine in QB by doing a double click on it. I do have some 60 or so QB files, still with extension .bas (and the VB icon).

MY QUESTION: Since the QB files with extension .bas are all in one folder, in various subfolders, and I know that they ARE qb binary files, is there a global way that I can change all the QB .bas files present .bas extension to the .qb extension?

Any help or comments on this topic will be appreciated.
Other than opening the old binary files with the .bas extension from within QB

jian2587
Aug 8th, 2003, 10:22 AM
in msdos,
rename c:\qb45\*.bas c:\qb45\*.qb

then goto Folder Options->File Types
associate *.qb with qb.exe
oh...how about qb.exe /L /AH
this will load the qb library and allow dynamic array

if you want to preserve .bas with both QB and VB, how about
making another File Action to associate with QB?
So if you decided to open that file with QB, juz right click it then
click on the newly created File Action

RAEsquivelC
Aug 8th, 2003, 11:03 AM
Thanks a lot, Jian, for both your quick response and for the DOS solution. A very logical solution, I must admit. It works fine, one folder at a time. It fits one of my sayings,

"If you don't know how, 'It's impossible!' Once you are shown how, 'It's obvious!

Thanks again,

Ralph

jian2587
Aug 9th, 2003, 07:23 AM
Thx;)
that's how this forum works:D