Question about Operating Systems

1 Answer

MS-Dos running I am trying to run an MS-Dos.bat File but every time i does it shuts down is there any way to convert it so it will work on my system?

Posted by on

  • 3 more comments 
  • kammy86 Jan 31, 2008

    Or find a way to get it running.. and to stay up..

  • kammy86 Jan 31, 2008

    The file i'm using is to connect to second-life and permit outside sl client control.. but there seems to be some issues that i can't seem to solve on my own..



    http://www.mediafire.com/download.php?6a...

  • kammy86 Jan 31, 2008

    its suppose to run another file and remain open..

  • kammy86 Jan 31, 2008

    the bat file only has. .



    cmd start TestClient.exe --first Jerry --last Republic --pass lar --contact "email@gmail.com" --masterkey "d6bdd01d-f171-4cc1-b297-1f2e6ee98bba"



    which is the base code which is edited upon using it to login..

  • Edmund Lorenzen
    Edmund Lorenzen May 11, 2010

    Depends on the bat file and what it's supposed to do... usually when a bat finishes it script it just turns off... I can help more if I know what the bat is for or if you post the file somewhere so I can download it or view it.

×

1 Answer

  • Level 1:

    An expert who has achieved level 1.

    MVP:

    An expert that got 5 achievements.

    Governor:

    An expert whose answer got voted for 20 times.

    Hot-Shot:

    An expert who has answered 20 questions.

  • Contributor
  • 58 Answers

Give this a run...
put the file in your base drive (in C:/)
Start>Run> "c:">*insertfilename WITH ".BAT" at the end*

It will either work or just fail and leave the window open with whatever was displayed on the screen(hopefully, unless the bat has a "close window" command in the end of the file)

Posted on Jan 31, 2008

  • Edmund Lorenzen
    Edmund Lorenzen Jan 31, 2008

    whoops missed something in what I typed before... "start>run> _CMD_>"c:">*insertfilename WITH ".BAT" at the end*"

    Sorry, But that bat you posted up there should only just runa program with a few parameters... I never seen any parameters to be run using a double - before.. You said it was for second life? I'll give it a run in a little bti when I install the game then.

×

Add Your Answer

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

Related Questions:

3 Answers

How to create simple batch files


Creating a batch file
MS-DOS users
Microsoft Windows and other users

MS-DOS users
To create a basic batch file in MS-DOS, follow the below steps that give you an example of how to create a basic batch file.

  1. Open an MS-DOS command window or get to MS-DOS. Additional information about doing this can be found on document CHDOS.
  2. At the MS-DOS prompt, type: edit test.bat and press enter.
  3. If typed properly, you should now be in a blue screen. Within the screen, type:

    pause
    dir c:\windows
    dir c:\windows\system

  4. Once the above three lines have been typed in, click File and choose exit; when prompted to save, click "Yes." Users who do not have a mouse cursor can accomplish this same task by pressing ALT+F to access the file menu, then pressing "X" to exit, and pressing enter to save changes.
  5. Once you are back at the MS-DOS prompt, type: test and press enter. This will execute the test.bat file and begin running the file. Because the first line is pause, you will first be prompted to press a key. Once you press a key the batch file will run line-by-line; in this case, listing the files in the windows and windows\system directories.
If you wish to add more lines to this batch file you would simply type "edit test.bat" to edit the file again.
Additional information about the MS-DOS edit command can be found on our edit command page. Some versions of MS-DOS and bootable diskettes may not have the edit command; if this is the case, you would either need to obtain the edit.com file to access this file or use the copy con command.




Microsoft Windows and other users
A Windows user can still use the above MS-DOS steps if they wish to create a batch file. If, however, you're more comfortable using Microsoft Windows or your operating system, you can use any text editor, such as Notepad or Wordpad, to create your batch files, as long as the file extension ends with .bat. In the below example we use the Windows notepad to create a batch file.
  1. Click Start
  2. Click Run
  3. Type: notepad and press enter.
  4. Once notepad is open, type the below lines in the file or copy and paste the below lines into notepad.

    @echo off
    echo Hello this is a test batch file
    pause
    dir c:\windows

  5. Click File and click Save; browse to where you want to save the file. For the file name, type "test.bat", and if your version of Windows has a "Save as type" option, choose "All files", otherwise it will save as a text file. Once all of this has been done click the Save button and exit notepad.
  6. Now, to run the batch file, simply double-click or run the file like any other program. Once the batch file has completed running it will close the window automatically.

Jan 04, 2011 | Operating Systems

1 Answer

What is the mean auto exe c bat in dos files??


An AUTOEXEC.BAT file contains MS-DOS commands which are executed automatically when a Personal Computer boots. This file is usually located in the root directory of the hard drive or floppy from which the computer boots (or starts) up. The AUTOEXEC.BAT file is used to set various default settings and to run programs that should be executed upon startup. Below you will find a list of executable statements (commands) that typically go into an AUTOEXEC.BAT file, along with explanations their.


The AUTOEXEC.BAT file is one form of a batch file, and it is used to automate functions in MS-DOS. In their simplest form, batch files contain MS-DOS commands (batch file language) which includes commands for such things as loops and execution branches and the like.
ECHO
Example: @ECHO OFF
This optional command will suppress the display of subsequent commands while the AUTOEXEC.BAT file is being executed

Dec 09, 2010 | Operating Systems

1 Answer

What is best website to show me dos programming examples.. want to creat an exe file to pick up text files from a directory and send them to a printer whenever a new file appears .(without pc...


you mean a .bat file that can be run when a new file is added. let me see if i can find a good site for you.
http://www.chebucto.ns.ca/~ak621/DOS/BatBasic.html
My advice is get a good book! One that stands out in my mind is "The Waite Group's MS-DOS Bible" (1991?) This will take you through using the command shell and batch files through how the DOS filesystem is structured, memory managment under DOS, an explaination of how the OS loads a program up to wrting little progams of you own using machine language and debug.
Another great book is Dan Gookin's "Advanced MS-DOS Batch File Programming" that will also teach you something about operating systems in general in a nice, unformal tone.
DOS also comes with a BASIC interpreter called QBASIC, that can teach you the funamentals of programming while augmenting your shell scripts and doing things that plain batch files just can't do.
www.animatedsoftware.com/faqs/learndos.htm

Aug 03, 2010 | Microsoft Windows XP Professional

2 Answers

I M GETTING A RUN TIME ERROR....... WAT D HELL IT IS???????ND WATS D SOLUTION........


System Configuration Utility ( Msconfig ) is the Solution

click start and in the run box type msconfig go to the tab that says services and down on the left side there is an option that says hide all microsoft services do a check on it and then click on disable all

Nov 05, 2009 | Microsoft Windows Vista Ultimate Edition

1 Answer

Windows automatic shutdown


1. create a new text file by opening notepad. 2. paste the following in the text file:
echo off shutdown.exe -r -t 00
3. save the text file but change the .txt file extention to .bat. 4. under control panel, open task scheduler. 5. schedule a new task to run your new .bat file, whenevr the pc should be shut down.
good luck.

Aug 26, 2009 | Operating Systems

1 Answer

MS-Dos running a file.. that keeps shutting down..


Use Notepad and open up the login.BAT file. There are a number of things in the bat file which you need to change and replace with your own information!

Jan 31, 2008 | Operating Systems

2 Answers

MS-Dos running a file..


Right click on the file and select edit. This should load it in a text editor.
Now, simply read what it does.

You don't say what the batch file is for, so it's hard to say what you should look for in the file.

Jan 31, 2008 | Operating Systems

2 Answers

Unable to load


How to get to a MS-DOS prompt.
Reason: If Windows or the computer is not operating properly, it may be necessary to get to a MS-DOS prompt to diagnose and to perform additional troubleshooting on the computer.
Solution: MS-DOS users
Windows 3.x users
Windows 95, 98 and ME users
Windows NT, 2000 and XP users
Windows Vista users
Other PC Operating System users

MS-DOS users If you are running MS-DOS with no other operating systems, the computer should be booting into a MS-DOS prompt automatically unless you have a shell or other program loading automatically. If the computer is not getting you to a MS-DOS prompt, reboot the computer and as the computer is booting, press the F5 key when you see the message "Starting MS-DOS" or the MS-DOS version. This will load the default standard MS-DOS. If you successfully get to a MS-DOS prompt and would like to prevent the computer from loading the program that is preventing you from getting to a MS-DOS prompt, or if you would like to fix possible error messages you may be receiving when booting the computer, edit the autoexec.bat and/or the config.sys files.

Windows 95, 98, and ME users If you are able to get into Windows 95, 98 or ME, you can get to a MS-DOS prompt by following the below steps.
  1. Click Start
  2. Click Run
  3. Type "command" and press enter.
This will open a MS-DOS shell. However, if you are attempting to troubleshoot an issue with the computer and are using Microsoft Windows 95 or Windows 98we suggest you restart the computer into MS-DOS. To do this follow the below steps.
  1. Click Start
  2. Click Shutdown
  3. Choose the option to restart the computer into a MS-DOS prompt.
If you are unable to get into Windows 95 or Windows 98 to get into a MS-DOS prompt, follow the below instructions (Windows ME does not have this option).
  1. Reboot the computer
  2. As the computer is booting, press the F8 key when you hear a beep or when you see "Starting Windows 95" or "Starting Windows 98". Windows 98 users sometimes may find it easier to press and hold the left CTRL key as the computer is booting.
  3. If done properly the user should get to a screen similar to the below screen.
Microsoft Windows 95 Startup Menu
============================= 1. Normal
2. Logged (\BOOTLOG.TXT)
3. Safe mode
4. Step-by-step confirmation
5. Command prompt only
6. Safe mode command prompt only
Enter a choice: 1
F5=Safe Mode Shift+F5=Command prompt Shift+F8= Step-by-step confirmation [N]

4. Select the option for Safe mode command prompt only.
Windows NT, 2000, XP, and Vista users If you're running Windows NT, 2000, or Windows XP and need to get to MS-DOS prompt follow the below steps.
  1. Click Start
  2. Click Run or click in the "Start Search" field if you're running Vista
  3. Type "cmd" or "command" and press enter.
Additional information about the difference between "cmd" and "command" can be found on document CH000395. If you're attempting to get into a MS-DOS prompt to troubleshoot the computer boot the computer into safe mode. Additional information about how to get into safe mode can be found on document CHSAFE. Windows 2000, XP, and Vista users who are unable to boot the computer into Normal Windows mode or Safe mode can also enter the recovery console to manage their computer from a prompt. Additional information about how to do this can be found on document CH000627. Finally, if you are experiencing issues getting into Windows NT, 2000, or XP, it may be necessary to run troubleshooting steps from a MS-DOS prompt. It is recommended that the Network Administrator get into the MS-DOS prompt by using either a standard MS-DOS boot diskette (note: will not be able to access data using a standard MS-DOS bootable diskette) or the ERD diskettes created after the installation of Windows NT, or boot from the Windows XP CD.

dot.gif
Index
question.gif dot.gif
Category:

MS-DOS Q&A

Companies:

Microsoft

Related Pages:
MS-DOS
Safe Mode

Resolved
question.gif
Were you able to locate the answer to your questions?
dot.gif dot.gif

Dec 06, 2007 | Microsoft Windows XP Home Edition

1 Answer

Running a dos batch file in background in windows


Batch file for what?

I once ran across a software called Dosbox that I used to run a customers dos based notes program in XP. It worked well, not sure about batch files, but worth a shot I suppose.

You can find info on it here - http://dosbox.sourceforge.net/

 

Oct 17, 2007 | Microsoft Windows XP Professional for PC

2 Answers

How to edit registry


1) to edit registry go to start / select run and type regedit. from there you are able to edit registry values. BEWARE because editing registry values may make your windows stop working. you should know what you are doing and you are responsible of the cosnequenses 2) a bat file is a batch file. Batch files are files that allow MS-DOS and Microsoft Windows users to create a lists of commands and/or programs to run once the batch file has been executed. 3) create a file called autorun.inf and type inside [autorun] open=file.exe save your file and write it in the cd you want to autorun the file.exe part must be replaced with the executable you want to load when your CD autoruns

Oct 08, 2007 | Microsoft Windows XP Professional With...

Not finding what you are looking for?
Operating Systems Logo

Related Topics:

57 people viewed this question

Ask a Question

Usually answered in minutes!

Top Operating Systems Experts

Les Dickinson
Les Dickinson

Level 3 Expert

18299 Answers

Brian Sullivan
Brian Sullivan

Level 3 Expert

27725 Answers

Prashant  Sharma
Prashant Sharma

Level 3 Expert

1127 Answers

Are you an Operating System Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...