Qbasicnews.com

Full Version: WindowsXP and QuickBASIC 4.5
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
1. Is it possible to add qb.exe to the Windows "Add or Delete a Program" list under the Control Panel?

2. Is it possible to double click on a .bas file and have qb.exe start up and run or load the .bas program, much as double clicking on an .xls file starts Excel.exe and loads that file?

If the answer to any of the above two questions is "Yes", please explain what I have to do to obtain that result, if it is not extremely difficult.

Thanks for you trouble.
Quote:1. Is it possible to add qb.exe to the Windows "Add or Delete a Program" list under the Control Panel?
It is possible... but very difficult.
http://msdn.microsoft.com/library/en-us/...frame=true

Quote:2. Is it possible to double click on a .bas file and have qb.exe start up and run or load the .bas program, much as double clicking on an .xls file starts Excel.exe and loads that file?

Yes. You can use Windows Explorer to associate any file extention with any executable. Click on "Tools" on the menu bar, and select "Folder Options". Then select the "File Types" tab. You'll get a dialog box with a list of file types. COnfiguring Windows to simply load a .bas file with qb.exe is as simple as clicking on the "New" button. With the options under the advanced button you can set up multiple option on the context menu associated with a file type. Alternative, you can use regedit or an .inf file to add the appropriate keys to the windows registry. Use regedit to look at the HK_CLASSES branch and you should be able to figure out what you need to do.[/url]
Quote:1. Is it possible to add qb.exe to the Windows "Add or Delete a Program" list under the Control Panel?

QB does not create any registry entries, nor does it make any start menu entries or desktop shorcuts, so it doesnt require being in the control panel. Im sure you could create an uninstall program or script and add it via the registry, but there wouldnt be much point, as you could just delete the QB folder yourself with no hitches.

Quote:2. Is it possible to double click on a .bas file and have qb.exe start up and run or load the .bas program, much as double clicking on an .xls file starts Excel.exe and loads that file?

Yes, open an explorer window, click on tools->folder options
select the "file types" tab
click new
enter the relevant stuff.

Or an easier way to do it would be to right click on a bas file, "open with"->"choose program"
then click "browse", find qb.exe, make sure the "always use this program" checkbox is ticked and then press OK.
RyanKelly and KIZ:

Thank you both for your replies to my post. Unfortunately, doing the Explorer thing shows me available programs, none of which is qb.exe. Doing the "new" part shows me a list, with no "qb.exe". Doing the "browse", ditto.
And, doing the right click gets me to the same as above.

I tried the regedit thing, and got to where the extension BAS is shown, and the description "Visual Basic module". I messed around with this for a while, but. no luck. Maybe, in my Window XP, I just don't know what to do in regedit?


Any further help will be appreciated.
Ralph:
To associate BAS files with QB, just right-click on a bas file, select "Open with>Select Program" in the popup and if QB does not appear in the selection dialog, click the "Other" button and add it.

This is how it's done with W2000, I guess XP will work the same...
To all:

I've been told:
Quote:To associate BAS files with QB, just right-click on a bas file, select "Open with>Select Program" in the popup and if QB does not appear in the selection dialog, click the "Other" button and add it.
I have done just that, various times, and, it seems that, since QuickBASIC was not "installed" a la Windows, I can't find a way to "add" it to the ones already available there. Is there some way to change this? So far, I have not been able to.
Click "browse", change to your QB directory, and select QB.EXE.
Quote:Click "browse", change to your QB directory, and select QB.EXE.
That's exactly what I have tried to do, time after time, to no avail. I get to the browse part, search for qb.exe, click on it, or double click on it, and...it doesn't appear with the rest of the available programs. And, if I double click on that .bas file, I get an error message, saying that that file is not a valid win32 application.
Hrmm, that's really weird. You should be able to use the first method kiz suggested though, if you use the advanced options:

Windows Explorer -> Tools -> Folder Options -> File Types -> New -> "BAS" -> ok (don't choose advanced here)

Then select the BAS extension from the list and choose Advanced. Click "New.." Type "open" for the action, without quotes. Type the full path and filename of QB.EXE for the application, followed by a space and "%1". For example, "D:\QB\QB45\QB.EXE %1". Again, no quotes. Click ok. You can change the icon if you want. Then ok and close.

Anonymous

typing "D:\QB\QB45\QB.EXE %1" should be valid. if you have problems when not using quotes, i think that you MUST enclose the path in quotes if any folders have "long" filenames, and/ o r spaces
Pages: 1 2