Results 1 to 4 of 4

Thread: Easy .bas to .qb renaming possible?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Apr 2003
    Location
    Georgetown, Texas
    Posts
    114

    Easy .bas to .qb renaming possible?

    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

  2. #2
    Fanatic Member jian2587's Avatar
    Join Date
    Aug 2000
    Location
    I bet u need a fusion powered shuttle to reach my place...
    Posts
    963
    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
    ASM,C,C++,BASIC,VB,JAVA,VBS,HTML,ASP,PHP,mySQL,VB.NET,MATLAB
    Programming is fun, but only if you're not on a tight deadline
    So I consider all those working engineers sad people

    VB FTP class
    3 page PHP crash course
    Crash Course on DX9 Managed with VB.NET covering basics till terrain creation

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Apr 2003
    Location
    Georgetown, Texas
    Posts
    114
    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

  4. #4
    Fanatic Member jian2587's Avatar
    Join Date
    Aug 2000
    Location
    I bet u need a fusion powered shuttle to reach my place...
    Posts
    963
    Thx
    that's how this forum works
    ASM,C,C++,BASIC,VB,JAVA,VBS,HTML,ASP,PHP,mySQL,VB.NET,MATLAB
    Programming is fun, but only if you're not on a tight deadline
    So I consider all those working engineers sad people

    VB FTP class
    3 page PHP crash course
    Crash Course on DX9 Managed with VB.NET covering basics till terrain creation

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width