There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
bios black screen blue screen blue screen of death boot computer connection crash css dell display driver drivers email error firefox firefox 3 hard drive internet internet explorer itunes laptop lcd linux malware monitor network networking outlook outlook 2003 outlook express password printer problem problems ram router security slow software sound sprtcmd.exe trojan usb video virus vista windows windows xp wireless
Software Development
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Software & Hardware > Software Development >
Solved: Run Program!!


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

Closed Thread
 
Thread Tools
Nerds's Avatar
Member with 41 posts.
 
Join Date: Apr 2005
Location: Merced, Ca
Experience: Beginner
25-Oct-2005, 12:19 PM #1
Solved: Run Program!!
Can anyone help me write a batch file to run a program.

It needs to run qbasic first..

I run it in the cmd prompt like this

c:\ats\qbasic.exe /run c:\ats\radar.bas

tsunam's Avatar
Senior Member with 1,246 posts.
 
Join Date: Sep 2003
Experience: Linux~su
25-Oct-2005, 01:43 PM #2
Code:
@echo off
cls
c:\ats\qbasic.exe /run c:\ats\radar.bas
that should I believe do it. Assuming that the /run is part of the qbasic excutable options.

it will also clear the screen before running the actual app, so in case it reports things in the console, you'll only have that appear.
Mikrondel's Avatar
Member with 49 posts.
 
Join Date: Jun 2005
Location: Australia
Experience: Budding Genius
27-Oct-2005, 05:26 AM #3
By the way, QBASIC's SYSTEM command is helpful here.

When you launch a program with the /run argument, the SYSTEM command will quit the QBASIC editor as well as the program. (The END command stops the program but leaves you in the QBASIC editor)

If you're releasing this program to other people (and it looks like you are) then you probably don't want them to see the QBasic editor. So end with SYSTEM.

You can also create .EXE files from your .BAS files if you acquire QuickBasic 4.5 or QuickBasic 7.1 (a.k.a. Professional Development System or PDS)

It is possible but not legal to download QB 4.5 and 7.1.
Nerds's Avatar
Member with 41 posts.
 
Join Date: Apr 2005
Location: Merced, Ca
Experience: Beginner
28-Oct-2005, 12:05 PM #4
Wow.. that was odd, I didnt recieve any notifications of replies.. Thanks guys.. i was just gonna post that i figured it out.. i was having such a brainwashed day... lol... I used this...


c:\ats\qbasic.exe /run c:\ats\radar.bas

Thanks!!! Solved..
Closed Thread

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who help people like you solve computer problems. See our Welcome Guide to get started.



Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 09:01 PM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.