MS-DOS batch file (* .bat) ceased to run completely

Recently, I met a problem with an old, old MS-DOS batch file.  All of a sudden, while trying to run in that the file has been opened by Notepad edit mode.  (???)  Investigation revealed that the default program for the *.bat files Notepad!  So, I changed the default to "Windows shell".  This has solved the problem of the notebook, but now presented another problem.  The batch file will not run completely.   The steps in the command file are: cd\ cd\dBASE chrmenu dBase III.  He runs the two cd\ but does not program dbase RL.  This program was written when way back and worked very well under Windows, Windows 95, Windows 98, Windows XP and even Windows 7 (32-bit Home Premium).  Now, all of a sudden, it's a failure.  I touched base with MS Tech twice with no luck.  Any ideas?

You must restore your file associations for .bat files.

Try the solution for files .bat on this page:

«Difficulties of Association files for Windows 7»

<>http://www.Winhelponline.com/blog/file-Asso-fixes-for-Windows-7/ >

HTH,

JW

Tags: Windows

Similar Questions

  • How to plan a batch file (* .bat) to run when I'm not present?

    Task Scheduler menu does not show me anything about it.

    I have a batch file that saves my directories and important files on an external drive. It has been debugged and works if I run everything in present.

    What I would do now, is that it is every night when I'm not at the computer, say at 23:00.

    How he handles a situation where it need an answer? for example, XCOPY sometimes ask you if you want to replace the files.
    Bill

    To program on Windows XP, you would use Panel initially scheduled tasks | All programs | Accessories | System Tools.

  • Run a Task Scheduler batch file not working

    I have I have a batch copy file and rename it to a file.  It works fine when double click on it.  I set up to run on Task Scheduler using the wizard of Basic Actions.  To test the method, I did a simple batch file that displays the date and time and stored in the same folder as my desired batch file.  The Scheduler runs the simple bat very well.  When I try to launch the bat copy/rename file, it doesn't do anything, but I do not see the flash blue and see that the planner lists the task completed successfully.

    Per a suggestion on this site tried to change the setting to "use if the user is logged in or not."  When I click on the box, I get a few indecipherable message on restrictions and password empty.  It is a single-user computer (w7 64-bit), and as far as I know, is free of passwords and restrictions...  Any help much appreciated, I have no hair left to tear.

    Hello

    The question you posted would be better suited in the MSDN Forums. I would recommend posting your query in the MSDN Forums.

    http://social.msdn.Microsoft.com/forums/en-us/category/iedevelopment

     

    It will be useful.

  • Why not be able to run MRT.exe using the batch file?

    When I run the following script using the batch file, MRT cannot be run.

    Does anyone have any suggestions?

    Thanks in advance for your suggestions

    off @echo
    C:\WINDOWS\system32\Mrt.exe/q/f

    Hello

    ·         The computer is connected to a domain network?

    ·         What is the error you get when trying to execute the batch file?

    If the computer is connected to a domain network, I suggest you to report this issue in Windows XP IT Pro Forums: http://social.technet.microsoft.com/Forums/en-US/category/windowsxpitpro

    Thank you.

  • How to reset the default program to open the batch files?

    Original title: I have a batch file and I've changed the default opener of the batch file, HOW to reset it so my batch file work properly again?

    I have a batch file that I use allows me to select a list of websites that I frequent. I accidentally changed the default opener of the batch file, HOW to reset it so my batch file work properly once again, now when I run it it opens for editing.

    Hello

    Control Panel - default programs - associate a Type of file or Protocol with a program.

    Here's what it should be:

    description = current Application of the Windows Batch file .bat = unknown application

    You can use the methods here for re - associate the file type:

    Restore the Type Associations by default Windows 7 file Extension
    http://www.SevenForums.com/tutorials/19449-default-file-type-associations-restore.html

    If necessary, this can be used to not associated with the file type.

    How Unassociate a Type of Extension file in Vista and a utility to help (Windows 7 too)
    http://www.Vistax64.com/tutorials/91920-unassociate-file-extention-type.html

    I hope this helps.

    Rob Brown - MS MVP - Windows Desktop Experience: Bike - Mark Twain said it right.

  • How to create the batch file for configuring windowos?

    Like how to add running exe/service turn on DEP Windows batch file (.bat).
    My computer > etiquette > advance setting > setting > prevention of execution of data (DEP) > add > ok.

    Hello

    The question you posted would be better suited to the MSDN Community. Please visit the link below to find a community that will support what ask you

    http://social.msdn.Microsoft.com/forums/en-us/categories

  • Flashing batch file returns the control too fast

    Hi I have a frustrating problem with a simple batch file that I am running on a W2003 server. For simplicity, it did something like this:

    copy a b
    call runprog.exe
    If errorlevel 0 goto done
    echo "error".
    output
    : fact
    echo 'ok '.

    This has been working for a long time, suddenly and only on 1 times out of 10, while it just started running runprog.exe, control is returned in the batch file and it goes to the error condition. On the other 9 times of 10, she does not return control until runprog.exe has finished (as expected).
    I reloaded runprog and tried a new copy of c:\windows\system32\cmd.exe. I also tried runprog.exe without the call - the same results.

    My conclusion is that something underlying in windows is damaged and he needs fixing with SFC or a recharge, but grateful for any ideas who would not so much here

    Thank you very much

    Hello

    The question you posted would be better suited to the TechNet community. Please visit the link below to find a community that will provide the support you want.

    http://TechNet.Microsoft.com/en-us/WindowsServer/bb512919.aspx

    Hope this information is useful.

  • batch file window flashing?

    I created a batch file for Truecrypt that runs automatically at startup.
    My password start Truecrypt window opens on the desktop so that I can enter the password to decrypt a hidden partition.
    It works great except for one annoying habit.  When I boot Windows 7 (64 bit) of the password window Truecrypt opens and starts to blink (blinking).  There is no priority, so that I may be able to stop the blinking and enter the password in the password field, I first of all at the click of the mouse within the window to stop the blinking then click to highlight so that I can put the password in the password field.
    On my machine XP, when window open on the desktop batch file, she was ready for me to start to enter the password. I didn't take the steps above I did with Win 7.
    Any ideas how to stop flashing and the input field highlighted so that I can just begin typing the password?
    Is there a switch I should add in the batch file so that it can work properly?

    Hello

    The question you posted would be better suited in the Technet Forums. I would recommend posting your query in the Technet Forums.

    http://social.technet.Microsoft.com/forums/en-us/iTCG/threads 

    It will be useful.

  • I, stupid, changed the program by default to a BAT file to the cmd prompt, well, now I can't run the batch files now, please help!

    I, stupid, changed the program by default to a BAT file to the cmd prompt, well, now I can't run the batch files now, please help!

    Hi William,.

    Welcome to the Microsoft community.

    Batch file is a type of script file, a text file, containing a series of commands to be executed by the command prompt. When you run a batch file, it opens the command prompt to run the scripts.

    It would be great if you can answer the following questions:

    1. what happens when you try to run a batch file?

    2 are. what batch file you referring?

    3. the problem occurs for a particular batch file?

    First of all, I suggest you to check the commands written in a batch file. To do the same thing, just right-click on the batch file, and then click change. It will open Notepad with the list of orders scripted for this particular batch file.

    If you have additional questions on the computer, please ask your question about Windows and we will be happy to help you.

  • Batch file cannot run more

    Hello

    My BAT (the old DOS commands files) file do not run directly. I always create a shortcut and add "cmd/c" before the file name "file.bat".

    How to retrieve file executable BAT again?

    When I open directly windows writes something on devices that cannot be found. It seems that the extension is not more...

    Thanks for your help

    concerning
    Xavier

    Have one ID reader (for lack of a better term) at the top of the actual batch file allows it to race?  See my poorly written example of a batch file that works on Vista.

    C:
    CD folder
    DEL *.tmp
    DEL *.od
    DEL *.cvr
    DEL *.log
    pause

  • HOW to run a batch file in BACK 6.22?

    I wrote a batch file that works fine in the Windows command prompt, but I would like to be able to run after POST in the BACK. I copied my code AUTOEXEC. BAT file that runs automatically; However sometimes with syntax errors when it reaches the call control and the rest.

    echo. This script is counting the # of POSTs.
    echo. The POST # value is saved in TEST.txt.
    echo.
    
    call:myPOSTTest
    
    for /f "tokens=* delims=" %%x in (A:\TEST.txt)  do echo POST# %%x
    
    echo. &pause&goto:eof
    ::--------------------------------------------------------
    ::-- Function section starts below here
    ::--------------------------------------------------------
    
    :myPOSTTest    - here starts my function identified by its label 
    
    set var=0
    
    if EXIST A:\TEST.txt (
         for /f %%x in (A:\TEST.txt) do (set /a var=%%x+1)
    )
    
    echo %var% >> A:\TEST.txt
    
    goto END
    
    :END
    
    

    Thank you

    Hello

    Many of us being volunteers do not have the expertise to help.  Refer the question to the TechNet Script Center.

    Script Center

  • For Dell, HP, et al.: Batch file. Copy and paste in Notepad as netfix.bat

    Hello

    NETFIX.bat an 'L' of the command file

    Not important, but most of what follows is true. It's just a HOW2 simplified for initial review. It is not a definitive guide, don't forget...

    Never believe anything, everything you hear, and only about half of what you see; in particular within this document.

    DISCLAIMER: This is my own personal scribbles used to create a batch file to reduce the typing needed to use some of the commands in my network A2Z nonsense & applying a low degree of automation. Now, I'm not able to ensure the effectiveness of the controls on my system, because it isn't really broken. So use you it at your own risk, your levels of configuration & special access is certain to be different to mine.

    It was written using Notepad and is the plain text that can be scrutinized, edition, amended and implemented by almost everyone.

    @ECHO  THIS MIGHT HELP TO REPAIR/RECTIFY
    @ECHO  SOME SIMPLE NETWORK DIFFICULTIES.
    @ECHO         based on work by
    @ECHO  Kevin Arrows, Jim Eshelman et al.
    @ECHO ....................................
    @ECHO.
    @ECHO   THE RESULTS MAY VARY ACCORDING TO
    @ECHO   YOUR CONFIGURATION AND USER LEVEL
    @ECHO    A RESTART SHOULD BE MADE AFTER
    @ECHO    THE RUNNING OF THE ABOVE TESTS
    @ECHO ....................................
    :MENU
    @ECHO.
    @ECHO ....................................
    @ECHO.
    @ECHO   TYPE IN THE RELEVANT MENU NUMBER
    @ECHO.
    @ECHO ....................................
    @ECHO.
    @ECHO  0 - GET_MAC Obtain MAC address(es)
    @ECHO  1 - GET_IPs Lists all IP addresses
    @ECHO  2 - ADDRESS Force/Renew IP address
    @ECHO  3 - DNS_FIX Flush and Register DNS
    @ECHO  4 - WINSOCK Reset to remove errors
    @ECHO  5 - IPV4_V6 Reset to remove errors
    @ECHO  6 - PING_LO Ping tests to Loopback
    @ECHO  7 - NETSTAT All Network Statistics
    @ECHO  8 - SYS_SUM System Summary Windows
    @ECHO  9 - EXITNOW Close this Command Box
    @ECHO.
    @ECHO ....................................
    @ECHO OFF
    SET /P M= Choose from 0 - 9, then press ENTER:
    IF %M%==0 GOTO GET_MAC
    IF %M%==1 GOTO GET_IPs
    IF %M%==2 GOTO ADDRESS
    IF %M%==3 GOTO DNS_FIX
    IF %M%==4 GOTO WINSOCK
    IF %M%==5 GOTO IPV4_V6
    IF %M%==6 GOTO PING_LO
    IF %M%==7 GOTO NETSTAT
    IF %M%==8 GOTO SYS_SUM
    IF %M%==9 GOTO EXITNOW
    ::
    :GET_MAC
    GETMAC
    GOTO MENU
    ::
    :GET_IPs
    ipconfig
    GOTO MENU
    ::
    :ADDRESS
    ipconfig /release
    ipconfig /renew
    ::
    :DNS_FIX
    ipconfig /flushdns
    
    Ipconfig /registerdns
    
    GOTO MENU
    ::
    :WINSOCK
    netsh winsock reset catalog
    
    GOTO MENU
    ::
    :IPV4_V6
    netsh int ipv4 reset reset.log
    netsh int ipv6 reset reset.log
    GOTO MENU
    ::
    :PING_LO
    ping 127.0.0.1
    GOTO MENU
    ::
    :NETSTAT
    netstat -e -s
    GOTO MENU
    ::
    :SYS_SUM
    msinfo32
    GOTO MENU
    ::
    :EXITNOW
    EXIT
    

    Hello

    HOW?

    Well make HP machines, I'm a.  I wrote the code on mine, I ran and tweaked.  Since it is part of the operating system provided with my camera, it must be relevant.

    So when someone asks what is/where or how to find MAC address, he covered (0 GETMAC).

    If someone reports their Wi - Fi dropping out after a short time a possible solution in the list (4 WINSOCK

    You want to know your IP... (1 GET IPs)

    Trial material basis, ping your loopback (6 PING_LO).

    etc etc.

    Then as a sticky it could potentially help solve quite a few queries.  In the same way as The Great Deku Tree posted a sticky on the "Common corrects problems of wireless connectivity", to get ahead of the game by offering something that the OP can try for themselves.

  • MS-DOS (script) to execute in WindowsXP - batch file 'trap' the errorlevel

    I am writing a Batch MS-DOS (script) file to run in Windows XP.  It run 3 programs: PKZIP for z/OS by PKWARE, FTP (BACK) and an MS-DOS Application with us.  How I 'trap' the errorlevel to each of these programs to ensure that they completed successfully?

    Hello

    Because the problem is related to the batch file, I recommend that you post this question in the MSDN forum.
    http://social.msdn.Microsoft.com/forums/en-us/categories/

  • In bulk to rename files in a folder by using the DOS command line or a batch file.

    Can someone help with this problem, please?  I remember seeing the DOS command line to do a mass renaming of files in a folder or a batch file. for example, vacation photos are all in the format DSC00001.jpg to DSC001234 and I want to change it to something like, say, Rome0001.jpg to Rome1234.jpg.

    How about this:
    Go to the folder of your files in that.  Create a text file, and open it (Windows should use Notepad, that very well).
    in the file type:
    Ren dsc*.jpg rome*.jpg
    Now, save the file as:
    renamethem.bat
    (Make sure you call it ".bat" and save it as a txt document, which will make a simpel file and not add a strange formatting)
    From there, just double-click this file and it renames all your pictures accordingly.
    :)

    Old timer

  • Batch files are running very slow

    Original title: batch files do not work!
    Recently, whenever I try to run a .bat (batch file) it will slow down my computer until she reached the point where I can ONLY move the cursor. If I'm lucky I can sometimes get it to open but it doesn't do anything and once again I have to force reboot to get my computer to respond. If I open CMD directly and type in that what it is supposed to do manually will work. I need to be able to run batch files for some programs I run. I can not even "start iexplore.exe" as a batchfile to run. If anyone can help that would be greatly appreciated. Now I need to run batch files on my old laptop that can barely run and they take FOREVER. Thanks for the help!

    Hello

    The issue you reported is Batch files and will be well suited in the TechNet community. Click on the link below.

    http://social.technet.Microsoft.com/forums/en-us/w7itprogeneral/threads

    Thanks and regards.

    Thahaseena M
    Microsoft Answers Support Engineer.
    Visit our Microsoft answers feedback Forum and let us know what you think.

Maybe you are looking for