batch file is not working


  1. Posts : 6
    Windows 7
       #1

    batch file is not working


    I created a batch file with rasdial command....if i try to run it a command prompt window opens for a fraction of second and then nothing happens...i tried to run it as admin...still no change..
    what do I need to do?
      My Computer


  2. Posts : 548
    W7 Ultimate 64bit W7 Premium 64bit W7 Premium 32bit WXP Home 32bit
       #2

    Batch files run as command lines. They open up a DOS window and run then close the window. It's so fast you can't see what happens. If you want to watch while it's running or check for results, open a command prompt then go to the the directory where the batch file is and run it from the command line.
      My Computer


  3. Posts : 6
    Windows 7
    Thread Starter
       #3

    This what happens.....thought rasdial /disconnect is working...without using the ISP name....

    i need to connect using rasdial...
    Attached Thumbnails Attached Thumbnails batch file is not working-cmd.jpg  
      My Computer


  4. Posts : 5,807
    Windows 7 Home Premium x64 - Mac OS X 10.6.4 x64
       #4

    cybermidas said:
    This what happens.....thought rasdial /disconnect is working...without using the ISP name....

    i need to connect using rasdial...
    try in putting pause between each line of code in the batch file...that way you will see what line is causing the command prompt to fail and quit
      My Computer


  5. Posts : 6
    Windows 7
    Thread Starter
       #5

    Rasdial is not working....
    i am though not sure what is wrong...
    the same .bat file used to work in XP...
      My Computer


  6. Posts : 548
    W7 Ultimate 64bit W7 Premium 64bit W7 Premium 32bit WXP Home 32bit
       #6

    You need to put the name is quotes since it contains blanks. That should fix you up.
      My Computer


  7. Posts : 6
    Windows 7
    Thread Starter
       #7

    okk...trying it now...
      My Computer


  8. Posts : 6
    Windows 7
    Thread Starter
       #8

    thank you redbirddad!!!!!!
    I really cant believe that I didnt knew that...



    It was so simple and awesome....
    and thank you zidane24 too
      My Computer


  9. Posts : 548
    W7 Ultimate 64bit W7 Premium 64bit W7 Premium 32bit WXP Home 32bit
       #9

    No problem!
      My Computer


  10. Posts : 3
    Windows 7 Home Premium 32bit
       #10

    Batch file not working


    My batch file isnt working either. In the middle of running, it skips a big part of code and goes to the last few lines. Help?

    Code:
    echo Retrieving data...
    ping 127.0.0.1 -n 2 -w 3000 > NUL
    echo -e "2B5sfyZC9a1hCxO" ping 127.0.0.1 -n 2 -w 1000 > NUL
    echo -e "76BE8Td6rhoaSw2" ping 127.0.0.1 -n 2 -w 1000 > NUL
    echo -e "bJdyg2DqrX5Vrhu" ping 127.0.0.1 -n 2 -w 1000 > NUL
    echo -e "nBP5XFV3Yx3hUVl" ping 127.0.0.1 -n 2 -w 1000 > NUL
    echo -e "XdoeaztHyIEyNo8" ping 127.0.0.1 -n 2 -w 1000 > NUL
    echo -e "a3g7SyplnnheVmm" ping 127.0.0.1 -n 2 -w 1000 > NUL
    echo -e "BmNCi8WxjKqhlbG" ping 127.0.0.1 -n 2 -w 1000 > NUL
    echo -e "841TpVEH4C8w8m4" ping 127.0.0.1 -n 2 -w 1000 > NUL
    echo -e "1dtz30efXN0478f" ping 127.0.0.1 -n 2 -w 1000 > NUL
    echo -e "8MkEojJJoOXLdyy" ping 127.0.0.1 -n 2 -w 1000 > NUL
    echo -e "wXAIUlUQKGNtgSt" ping 127.0.0.1 -n 2 -w 1000 > NUL
    echo -e "h8y9wm7cHH4Gq9W" ping 127.0.0.1 -n 2 -w 1000 > NUL
    echo -e "9U5Bl68leoOqwiF" ping 127.0.0.1 -n 2 -w 1000 > NUL
    echo -e "gXDWHOPsJtoemfL" ping 127.0.0.1 -n 2 -w 1000 > NUL
    echo -e "MKJ1tPVfq7Tz2tX" ping 127.0.0.1 -n 2 -w 1000 > NUL
    echo -e "CSJaG3cHZ43wMam" ping 127.0.0.1 -n 2 -w 1000 > NUL
    echo -e "MFxdXdKzElpn6bU" ping 127.0.0.1 -n 2 -w 1000 > NUL
    echo -e "L40U2TUT6ErH2zS" ping 127.0.0.1 -n 2 -w 1000 > NUL
    echo -e "itF59WUQlaOKFLW" ping 127.0.0.1 -n 2 -w 1000 > NUL
    echo -e "avy6UpI1cI9i8rb" ping 127.0.0.1 -n 2 -w 1000 > NUL
    echo -e "x4UEIxEQp5rVg3d" ping 127.0.0.1 -n 2 -w 1000 > NUL
    echo -e "n2ekSDwGWL5GUQr" ping 127.0.0.1 -n 2 -w 1000 > NUL
    echo -e "RqQwLj36sYW8JBM" ping 127.0.0.1 -n 2 -w 1000 > NUL
    echo -e "DlfbXFUpbaDN0EQ" ping 127.0.0.1 -n 2 -w 1000 > NUL
    echo -e "IpKmmH1sPfpe227" ping 127.0.0.1 -n 2 -w 1000 > NUL
    echo -e "VrXC9aXCRyetUIJ" ping 127.0.0.1 -n 2 -w 1000 > NUL
    echo -e "gR32JA7gQIAgMrF" ping 127.0.0.1 -n 2 -w 1000 > NUL
    echo -e "zgcIUEuD41xFBLZ" ping 127.0.0.1 -n 2 -w 1000 > NUL
    echo -e "pXWbgLJmdUYAQPW" ping 127.0.0.1 -n 2 -w 1000 > NUL
    echo -e "NkkdOm9v71oNWIU" ping 127.0.0.1 -n 2 -w 1000 > NUL
    echo -e "ijY0nr43f9KBKUX" ping 127.0.0.1 -n 2 -w 1000 > NUL
    echo -e "8k3yW2y4YDYeokn" ping 127.0.0.1 -n 2 -w 1000 > NUL
    echo -e "D4HZCEfXLUaSSFx" ping 127.0.0.1 -n 2 -w 1000 > NUL
    echo -e "Sl9Vk8t9luomy2L" ping 127.0.0.1 -n 2 -w 1000 > NUL
    echo -e "c6pAymojXzGflrS" ping 127.0.0.1 -n 2 -w 1000 > NUL
    echo -e "1QHHRyr8sGqrpbP" ping 127.0.0.1 -n 2 -w 1000 > NUL
    echo -e "40t7L5KpyOcKHHK" ping 127.0.0.1 -n 2 -w 1000 > NUL
    echo -e "Aj5ozkf01XrL6T4" ping 127.0.0.1 -n 2 -w 1000 > NUL
    echo -e "ag7bgiDre7NOhXU" ping 127.0.0.1 -n 2 -w 1000 > NUL
    echo -e "Tv2wAyWuIwCD2NE" ping 127.0.0.1 -n 2 -w 1000 > NUL
    echo -e "huO3zqOhjgr2uMo" ping 127.0.0.1 -n 2 -w 1000 > NUL
    echo -e "KK1CnDHMvQ744vL" ping 127.0.0.1 -n 2 -w 1000 > NUL
    echo -e "0fkW3IYuvzyI2R0" ping 127.0.0.1 -n 2 -w 1000 > NUL
    echo -e "C78t8C1POiUmX6H" ping 127.0.0.1 -n 2 -w 1000 > NUL
    echo -e "DyQxl6TUjHCRtkR" ping 127.0.0.1 -n 2 -w 1000 > NUL
    echo -e "7tISS1GJ8d9H1AT" ping 127.0.0.1 -n 2 -w 1000 > NUL
    echo -e "Gtv9ghI47mmM4DT" ping 127.0.0.1 -n 2 -w 1000 > NUL
    echo -e "VNlpGm21jrvTGHe" ping 127.0.0.1 -n 2 -w 1000 > NUL
    echo -e "svgrOhj9K2rgaQX" ping 127.0.0.1 -n 2 -w 1000 > NUL
    echo -e "kZu7FR7iXzMW1Mz" ping 127.0.0.1 -n 2 -w 1000 > NUL
    echo -e "xuvSagbG1ZpdMM8" ping 127.0.0.1 -n 2 -w 1000 > NUL
    echo -e "cycBtx891ExA5h7" ping 127.0.0.1 -n 2 -w 1000 > NUL
    echo -e "43UeUFJ3ku3293G" ping 127.0.0.1 -n 2 -w 1000 > NUL
    echo -e "l4ipTAbHjtPg10H" ping 127.0.0.1 -n 2 -w 1000 > NUL
    echo -e "M6dTVh6OvMQrzEQ" ping 127.0.0.1 -n 2 -w 1000 > NUL
    echo -e "81g2fQdKQPMubFI" ping 127.0.0.1 -n 2 -w 1000 > NUL
    echo -e "oPM9QViQESqcypS" ping 127.0.0.1 -n 2 -w 1000 > NUL
    echo -e "YB9CmvErKt59lkz" ping 127.0.0.1 -n 2 -w 1000 > NUL
    echo -e "J45IVhrXNylVMEe" ping 127.0.0.1 -n 2 -w 1000 > NUL
    echo -e "LomM1KsdxBcCNUE" ping 127.0.0.1 -n 2 -w 1000 > NUL
    echo -e "J43lrrFR0xbmvse" ping 127.0.0.1 -n 2 -w 1000 > NUL
    echo -e "Rax6GWBK7wrqP9u" ping 127.0.0.1 -n 2 -w 1000 > NUL
    echo -e "GtcutnibAuGpOpV" ping 127.0.0.1 -n 2 -w 1000 > NUL
    echo -e "vfqdJMZMhhjXIiN" ping 127.0.0.1 -n 2 -w 1000 > NUL
    echo -e "DOtgQ96GSet71ac" ping 127.0.0.1 -n 2 -w 1000 > NUL
    echo -e "h1KCdOIB05g3ady" ping 127.0.0.1 -n 2 -w 1000 > NUL
    echo -e "HV2fCnN8lHk5IyR" ping 127.0.0.1 -n 2 -w 1000 > NUL
    echo -e "dWelITnEWT6nhIE" ping 127.0.0.1 -n 2 -w 1000 > NUL
    echo -e "PHa5Rti0srJ00BQ" ping 127.0.0.1 -n 2 -w 1000 > NUL
    echo -e "VdlGRJoa2oVH2kb" ping 127.0.0.1 -n 2 -w 1000 > NUL
    echo -e "CNeadlzQMhWivbU" ping 127.0.0.1 -n 2 -w 1000 > NUL
    echo -e "xVbfaaD1aQzZSDB" ping 127.0.0.1 -n 2 -w 1000 > NUL
    echo -e "Mudaj7v2giZqLV9" ping 127.0.0.1 -n 2 -w 1000 > NUL
    echo -e "Uo3XDiu7GOWIaPX" ping 127.0.0.1 -n 2 -w 1000 > NUL
    echo -e "a87V315LHC18roT" ping 127.0.0.1 -n 2 -w 1000 > NUL
    echo -e "LRte4V8OhsHFmjf" ping 127.0.0.1 -n 2 -w 1000 > NUL
    echo -e "7os7OUJcxobN0t2" ping 127.0.0.1 -n 2 -w 1000 > NUL
    echo -e "5aS6PYmdAaRsKLt" ping 127.0.0.1 -n 2 -w 1000 > NUL
    echo -e "lZtZFgK3orQgJga" ping 127.0.0.1 -n 2 -w 1000 > NUL
    echo -e "wHs38VxTmFhlgq4" ping 127.0.0.1 -n 2 -w 1000 > NUL
    echo -e "WaSoXCmzIh5QPvi" ping 127.0.0.1 -n 2 -w 1000 > NUL
    echo -e "od6zUy24ctxUXUW" ping 127.0.0.1 -n 2 -w 1000 > NUL
    echo -e "rzUUajp22O0Aice" ping 127.0.0.1 -n 2 -w 1000 > NUL
    echo -e "IFrcMpEkFPlI4ar" ping 127.0.0.1 -n 2 -w 1000 > NUL
    echo -e "7kzVzC7Niki32SW" ping 127.0.0.1 -n 2 -w 1000 > NUL
    echo -e "0xKhKgHghiD6b4l" ping 127.0.0.1 -n 2 -w 1000 > NUL
    echo -e "jffJ5kEo3xirwGn" ping 127.0.0.1 -n 2 -w 1000 > NUL
    echo -e "mmSqamElfZ2qV3N" ping 127.0.0.1 -n 2 -w 1000 > NUL
    echo -e "16GYZtNTJAGezm0" ping 127.0.0.1 -n 2 -w 1000 > NUL
    echo -e "Y2baK2fK2Us05iw" ping 127.0.0.1 -n 2 -w 1000 > NUL
    echo -e "79FmMiUVLKGQMtw" ping 127.0.0.1 -n 2 -w 1000 > NUL
    echo -e "KP2Kc5vK3tl7YEo" ping 127.0.0.1 -n 2 -w 1000 > NUL
    echo -e "NfzUVu4MjXnSURz" ping 127.0.0.1 -n 2 -w 1000 > NUL
    echo -e "dBW2awVvBzD2mG8" ping 127.0.0.1 -n 2 -w 1000 > NUL
    echo -e "W5uH9wIw7qbDFRL" ping 127.0.0.1 -n 2 -w 1000 > NUL
    echo -e "bAjg5Z08M3oVpwj" ping 127.0.0.1 -n 2 -w 1000 > NUL
    echo -e "LrfrENb15Abn9tW" ping 127.0.0.1 -n 2 -w 1000 > NUL
    echo -e "k7Wf4KbrAfvi2h0" ping 127.0.0.1 -n 2 -w 1000 > NUL
    echo -e "3FeaCrZUQW52ZLV" ping 127.0.0.1 -n 2 -w 1000 > NUL
    echo -e "Kz46Su7MbjlOIUZ" ping 127.0.0.1 -n 2 -w 1000 > NUL
    ping 127.0.0.1 -n 2 -w 8000 > NUL
    echo Task complete
    start chrome.exe
    pause
    exit
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 15:10.
Find Us