MS-Dos running a file.. that keeps shutting down..
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?
Comment by kammy86, posted on Jan 31, 2008
Or find a way to get it running.. and to stay up..
Comment by kammy86, posted on 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..
The batch file is suppose to open and load, and allow you to type in a username password, to connect w/o a client to second life.. and permit 'master' control, the console basically being a slave to whatever you set it for. and performing the command given.. etc.. i have a screenshot available of what it is suppose to do on the net, but some of my friends are having trouble and it keeps shutting down for them...
well what it is suppose to do is suppose to start the program and remain open.. the file i have is up for download at
a 6ya Technician can help you resolve that issue over the phone in a minute or two.
Best thing about this new service is that you are never placed on hold and get to talk to real repair professionals here in the US. click here to Talk to a Technician (only for users in the US for now) and get all the help you need. Goodluck!
- If you need clarification, ask it in the comment box above.
- Better answers use proper spelling and grammar.
- Provide details, support with references or personal experience.
Tell us some more! Your answer needs to include more details to help people.You can't post answers that contain an email address.Please enter a valid email address.The email address entered is already associated to an account.Login to postPlease use English characters only.
Tip: The max point reward for answering a question is 15.
Hello. batt files or batch files are used by your operating system to run a list of commands created by ms-dos or by you. A good example of a batch file is the autoexec.bat which is loaded each time the computer boots to MS-DOS. Batch files are like shortcuts on your desktop, when they are run they pass information through the command line and these sets of instructions run commands or programs on your computer. Did that help?
Open an MS-DOS command window or get to MS-DOS. Additional information about doing this can be found on document CHDOS.
At the MS-DOS prompt, type: edit test.bat and press enter.
If typed properly, you should now be in a blue screen. Within the screen, type:
pause dir c:\windows dir c:\windows\system
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.
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.
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
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.
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.
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.
Example: @ECHO OFF
This optional command will suppress the display of subsequent commands while the AUTOEXEC.BAT file is being executed
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.
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.
If you are using MS-DOS 6.0 or later, you can use multiple configuration menus or the CHOICE.COM program to configure your system. For more information on using these options under MS-DOS 6.0 or later, type HELP MULTI-CONFIG or HELP CHOICE at the MS-DOS command prompt and then press ENTER.
To create the files to automatically restart your computer with the appropriate configuration, do the following:
Create a directory on your hard drive called C:\CONFIGS. Create the CONFIG.SYS and AUTOEXEC.BAT files you need to boot your system for HIMEM.SYS and applications that require it, with the following names: c:\configs\config.dos
Create the CONFIG.SYS and AUTOEXEC.BAT files you need to start your system for the program that conflicts with HIMEM.SYS. Any unique file extension can be used. The following example uses 386: c:\configs\config.386
The following DEBUG script can be used to create a small executable file called REBOOT.COM. This file, when executed, will cause your system to restart. To create the file, change to the DOS directory, and type the following:
debug reboot.comEnter the following information, pressing ENTER key after each line: A 100 ; Debug instruction for assemble
MOV AH,0D ; Disk Reset
INT 21h ; causes SmartDrv 4.x to write cache
MOV AX, 40 ; set up segment addressing
OR BYTE PTR ,0C ; equivalent of pressing CTRL+ALT
MOV AX,4F53 ; Issue a "DEL" (53h = DEL scan code)
INT 15h ; EMM386 sees this & shuts down.
MOV WORD PTR ,1234 ; Set REBOOT flag to Warm-Boot (0=cold)
JMP F000:FFF0 ; Execute the internal restart routine
<CR> ; This line must be blank (just hit ENTER)
20 ; File size to be written to disk (in hex)
N REBOOT.COM ; Filename
W ; Write the file to disk
Q ; Quit Debug
NOTE: The REBOOT.COM file created with this debug script is compatible with SMARTDrive and its write-behind cache feature. The instructions in REBOOT.COM cause SMARTDrive to write (flush) its write-behind cache to disk before the computer is rebooted.
The following commands can be used to copy and rename the configuration files to the root directory of the C drive and restart the computer. To simplify the process, you can put these commands into batch files.
To start your machine for Windows, use the following commands: copy c:\configs\autoexec.dos c:\autoexec.bat
copy c:\configs\config.dos c:\config.sys
To start your machine for the 386 application, use the following commands: copy c:\configs\autoexec.386 c:\autoexec.bat
copy c:\configs\config.386 c:\config.sys
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
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