network sites: arcadespot.com | animejolt.com
+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Senior Member
    Join Date
    Dec 2007
    Location
    Searching - Please Wait...
    Posts
    192

    Default MS DOS Commands Help

    For anyone familair with MS DOS (Especially for windows 98), im looking for a command that will cause the script (batch file) to wait for say...5 seconds before continuing.

    Pause doesnt do it for me, i would like the script completely automated with minimal user activity.

    So far i have everything needed, i just need some form of wait command.

    The following does not work, or i cannot get it to work:

    sleep.exe
    CALL WAIT XX (Calls a Wait.bat file with wait command data)
    Ping command

    Any help?

    Heres what the batch/script file is doing.

    @Echo OFF
    Echo DOS Utility Test
    Echo This is a test of launching DOS Utilities from a .batch file.
    WAIT COMMAND HERE
    cls
    Echo Currently this batch file will launch "ATAPWD.EXE"
    Echo ---
    Echo Loading Files...
    WAIT COMMAND HERE
    cls
    ATAPWD.EXE

    Just an example of what im trying to accomplish.

    Any help is appreciated.

    DOS Info: DOS is made up of Windows 98 DOS Files and is launched from USB on my netbook at bootup if i so desire it.
    PSP History:
    (Full History)
    Slim psp: 3.71--->Bought datel tool battery --->Made magic memory stick via program <pc>--->3.71m33-2--->3.71m33-3--->3.71m33-4--->
    Bricked--->Pandora to 3.71OFW---->Nand backup---->Pandora to 3.71m33---->3.80m33-5---->3.90m33-2---->Full brick messing in flash---->downloaded new pandora memory stick creator---->pandora to 3.80m33-5---->3.90m33-2----->Waited a LONG while...----->5.00m33-6--->5.50GEN firmware--->Something went seriously wrong--->Pandora back to 5.00m33-4--->5.00m33-6--->IDStorage Corrupt--->Repaired with a PHYSICAL nand restore--->3.71m33-2--->5.00m33-6--->5.50GEN-D2 Correctly Installed this time :P --->And finally randomly switching between peoples themes

  2.    
  3. #2
    Linux Enthusiast
    Join Date
    May 2009
    Location
    localhost
    Posts
    270

    Default

    Choice command should do the job.

    Code:
    choice /d y /t 5 > nul
    You can also use something along the lines of,

    Code:
    @ping -n 5 -w 1000 107.0.0.1 > NUL
    Change -n x to wait (roughly) x seconds.

    Note: pinging only works if connected to a network, otherwise it won't do anything.

    Or the sleep command,
    Code:
    sleep 5
    5 is the number of seconds.
    Last edited by Negato; 04-25-2010 at 01:10 PM.
    PSP 1001 / 5.00 M33-6 (Loyal<3)

  4. #3
    Senior Member
    Join Date
    Sep 2008
    Location
    $PWD
    Posts
    251

    Default

    Quote Originally Posted by SillyBlade View Post

    Or the sleep command,
    Code:
    sleep 5
    5 is the number of seconds.
    That's Unix. Try this.

    Code:
    ping 127.0.0.1 -n 5 -w 1000
    -n is the number of pings. -w is the number of milliseconds between each ping.

  5. #4
    Linux Enthusiast
    Join Date
    May 2009
    Location
    localhost
    Posts
    270

    Default

    Sleep is a Windows DOS command as well for batch files. Look it up.
    PSP 1001 / 5.00 M33-6 (Loyal<3)

  6. #5
    Senior Member
    Join Date
    Dec 2007
    Location
    Searching - Please Wait...
    Posts
    192

    Default

    Sleep doesnt work, Dos gives me one of the following errors:

    This program cannot be run in DOS Mode.
    Program to big to fit into memory.
    PSP History:
    (Full History)
    Slim psp: 3.71--->Bought datel tool battery --->Made magic memory stick via program <pc>--->3.71m33-2--->3.71m33-3--->3.71m33-4--->
    Bricked--->Pandora to 3.71OFW---->Nand backup---->Pandora to 3.71m33---->3.80m33-5---->3.90m33-2---->Full brick messing in flash---->downloaded new pandora memory stick creator---->pandora to 3.80m33-5---->3.90m33-2----->Waited a LONG while...----->5.00m33-6--->5.50GEN firmware--->Something went seriously wrong--->Pandora back to 5.00m33-4--->5.00m33-6--->IDStorage Corrupt--->Repaired with a PHYSICAL nand restore--->3.71m33-2--->5.00m33-6--->5.50GEN-D2 Correctly Installed this time :P --->And finally randomly switching between peoples themes

  7. #6
    Elite Poster
    Join Date
    Oct 2007
    Location
    New Zealand
    Posts
    369

    Default

    http://screwthelotofyou.webs.com/files/Wait.txt

    I'm hoping you understand all of that if not I'll crop out the bit you need

  8. #7
    Senior Member
    Join Date
    Dec 2007
    Location
    Searching - Please Wait...
    Posts
    192

    Default

    Quote Originally Posted by PSPFreak2007 View Post
    http://screwthelotofyou.webs.com/files/Wait.txt

    I'm hoping you understand all of that if not I'll crop out the bit you need
    I was wondering if its possible for somebody to create a pre-made timer as such which is editable at any time via batch file.

    I would like the timer to do the following:

    Please insert the required medium. (My batch file would already say whats needed)
    _ (Flashing line thingy)


    The timer will wait roughly 30seconds before allowing my batch file to continue.

    Thanks in advance
    Last edited by user1690; 04-27-2010 at 07:04 PM.
    PSP History:
    (Full History)
    Slim psp: 3.71--->Bought datel tool battery --->Made magic memory stick via program <pc>--->3.71m33-2--->3.71m33-3--->3.71m33-4--->
    Bricked--->Pandora to 3.71OFW---->Nand backup---->Pandora to 3.71m33---->3.80m33-5---->3.90m33-2---->Full brick messing in flash---->downloaded new pandora memory stick creator---->pandora to 3.80m33-5---->3.90m33-2----->Waited a LONG while...----->5.00m33-6--->5.50GEN firmware--->Something went seriously wrong--->Pandora back to 5.00m33-4--->5.00m33-6--->IDStorage Corrupt--->Repaired with a PHYSICAL nand restore--->3.71m33-2--->5.00m33-6--->5.50GEN-D2 Correctly Installed this time :P --->And finally randomly switching between peoples themes


 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts