Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

getting Batch to reboot in to dos

  • 20-02-2002 5:23am
    #1
    Registered Users, Registered Users 2 Posts: 379 ✭✭


    hey
    just wondering if anyone can help me. I am currently running Windows 98 SE. and i want to creat a batch file that will reboot into dos and then run another batch file all i can find on the web is
    the following from

    http://www.computerhope.com/issues/ch000321.htm

    Additionally you may also type the following line in:

    rundll32.exe shell32.dll,SHExitWindowsEx n

    Where n is equal to one of the following numbers for the proper action.

    0 - LOGOFF
    1 - SHUTDOWN
    2 - REBOOT
    4 - FORCE
    8 - POWEROFF

    but this does not tell u how to start the pc in dos just for the batch file
    any ideas

    cheers


Comments

  • Registered Users, Registered Users 2 Posts: 4,162 ✭✭✭_CreeD_


    Its been a LONG time since I did this, and I don't have a 9x machine to test it on, so take with a grain of salt.
    Try making shortcut to COMMAND.COM, then in the properties I think you select Full Dos mode or summat similar, when executed this will exit windows to a full dos box. You can modify virtual Autoexec.bats within the properties to execute what you need.


  • Registered Users, Registered Users 2 Posts: 20,099 ✭✭✭✭WhiteWashMan


    i think you can get batch files to run from a bootup is in the old autoexec or config files.
    why not just reboot into dos mode if thats what you want?

    but what creed has said sounds about right.
    again, long time since idid any of that dos hocus pocus :)


  • Closed Accounts Posts: 5,564 ✭✭✭Typedef


    Originally posted by jim_bob
    hey
    just wondering if anyone can help me. I am currently running Windows 98 SE. and i want to creat a batch file that will reboot into dos and then run another batch file all i can find on the web is
    the following from

    http://www.computerhope.com/issues/ch000321.htm

    Additionally you may also type the following line in:

    rundll32.exe shell32.dll,SHExitWindowsEx n

    Where n is equal to one of the following numbers for the proper action.

    0 - LOGOFF
    1 - SHUTDOWN
    2 - REBOOT
    4 - FORCE
    8 - POWEROFF

    but this does not tell u how to start the pc in dos just for the batch file
    any ideas

    cheers
    Therfore is this not the command you want?
    rundll32.exe shell32.dll,SHExitWindowEx 4 | somebatfiletorun.bat | echo Windows sux QED


  • Registered Users, Registered Users 2 Posts: 20,099 ✭✭✭✭WhiteWashMan


    Originally posted by Typedef

    echo Windows sux QED

    as sual a typical answer from you typedef.
    to be honest i dont know why you even bother to hang around a winx forum if you love unix so much.

    and if you read the question you will see he wants to reboot into dos and then run a batch command automatically.

    echo typedef cant read QED


  • Closed Accounts Posts: 5,564 ✭✭✭Typedef


    echo "Take a stress pill"

    Besides the idea of supplying parameter 4 is to quote "foce exit of windows" not reboot or shutdown but force exit and hopefully drop said person back to dos then | pipe and run the batch file... whats the problem?


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 21,264 ✭✭✭✭Hobbes


    I don't think what you suggested Typedef would work correctly.

    Better to create a PIF file (shortcut) and tell it that you want to run it in DOS mode (as WWMan said). It would automatically reboot that way.


Advertisement