Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   Other Computers (https://www.askmehelpdesk.com/forumdisplay.php?f=242)
-   -   Batch File In Dos (https://www.askmehelpdesk.com/showthread.php?t=56738)

  • Jan 22, 2007, 09:26 PM
    OLDCODGER88
    Batch File In Dos
    How do I make a batch file in dos that will open a program.
    I need to name the file S
    The file is acct\prog\solomon\solomon
    I have this in one PC but forgot how it create the command.
  • Jan 23, 2007, 03:52 AM
    colbtech
    Open a DOS window.
    At the command prompt, type "Copy Con: S.bat [Return]"
    Presuming the file you wish to run is on C:
    Type "C:\acct\prog\solomon\solomon.exe"
    Press [CTRL Z] together, then press [Return]

    You now have a file titled S.bat (in my case it is on the Desktop), but surely it is easier just to create a shortcut to the .exe and put that on the desktop??

    If you want to use an editor rather than type direct from the keyboard. Type Edit filename then press [Return]
  • Jan 23, 2007, 07:25 AM
    ScottGem
    You can also use Notepad or any of a load of text editors to do this. Just save the file as a plain text file with a .BAT extension.

  • All times are GMT -7. The time now is 07:29 PM.