Results 1 to 4 of 4

Thread: Closing a Program With BASIC/Batch

  1. #1
    Join Date
    Dec 2008
    Posts
    52

    Closing a Program With BASIC/Batch

    Hello Freaks,
    I am eager to know how I can close a program using either BASIC or a batch file. I know it is possible to open with SHELL in BASIC, I'm basically searching contrary to that.Does any one how to do that?

    thanks for any brilliant ideas ..!!

  2. #2
    Join Date
    May 2008
    Posts
    2,680

    Re: Closing a Program With BASIC/Batch

    I used "exit" and "cls" as the last line of the file, but neither not going to work out.
    Here is what my .bat file looks like:@echo off
    "C:\Program Files\Sony Handheld\HOTSYNC.exe"
    now i will try to do some thing like this
    start "C:\Program Files\Sony Handheld\HOTSYNC.exe"
    I know I don't even have to put this in a batch file,will make a shortcut that points to the above and it should work.thinks it should work

  3. #3
    Join Date
    Apr 2008
    Posts
    3,522

    Re: Closing a Program With BASIC/Batch

    I will just do it by this method..using the rampage
    Unmark the 4 options/boxes in rampage.now close rampage, or exit it.
    Create a batch file, put it in the c:\Program Files\Rampage dir. Make a shortcut to the batch file and put it on your desktop, or somewhere easy to click it when you need to free some ram.The 200 is the amount of ram to free up (in MB's), edit to what ever you want to free.

    The batch file.
    Copy these lines into notepad, save it, then rename to ramfree.bat

    rampageh M=200 O
    cls
    @exit

  4. #4
    Join Date
    May 2008
    Posts
    4,085

    Re: Closing a Program With BASIC/Batch

    It is not possible until a program is designed for it, there is no meaningful method of closing it. BASIC and batch files are essentially single threaded. Once begun it expects to come to an end at predefined points under control of the program. At best you can cease the program (Ctrl-Alt_Delete) but the point where the application is running is unaware fact.

Similar Threads

  1. Windows batch file: set output of program to a variable?
    By supernoob in forum Windows Software
    Replies: 5
    Last Post: 17-10-2010, 05:58 AM
  2. Need a nice way of closing uTorrent from my program
    By Wajeeha in forum Windows Software
    Replies: 6
    Last Post: 24-06-2010, 05:12 AM
  3. Closing out a form in Visual Basic
    By Adel123 in forum Software Development
    Replies: 3
    Last Post: 31-08-2009, 04:56 PM
  4. Running a program/batch as a service
    By jean-paul martell in forum Operating Systems
    Replies: 4
    Last Post: 08-04-2009, 10:58 AM
  5. Ftp Batch program
    By Ryder in forum Networking & Security
    Replies: 4
    Last Post: 25-03-2009, 05:29 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,568,960.24352 seconds with 16 queries