Jump to content

Batch File "Unexpected Error"

post-45390-0-46010800-1409122281_thumb.p

Intel Core i7 4770k - 2x Geforce GTX 780 - MSI Z87 MPower Max - Corsair H60 - 8GB Avexir Core Series MPower Yellow + 4gb no-brand DDR3 - Corsair Obsidian 750d - AData XPG SX900 256gb SSD - Seagate Barracuda 3TB (7200 RPM) - Hitachi 250GB 2.5in HDD (3200 RPM) - WD HDD 160GB extracted from iMac via black magic (no specified RPM) - ASUS VG248QE 144HZ 3d Vision Monitor - Logitech G602 - Ducky Shine 3 TKL - AKG 172 HD Headphones - Xperia z2 - Sony Noise canceling earphones -  Nikon D5200 With Bundled Lenses - Windows 7 Home Premium - Blue Snowball iCE - Acer Aspire X with a broken case, AMD A6, and Raijintek Aidos CPU heatsink

Link to comment
Share on other sites

Link to post
Share on other sites

Infernal Burrito Might I recommend that in the future you just copy and paste the code into code tags [ code] code here [ /code] and just remove the spaces after [

 

Anyways from what I can gather from your screenshot there might be a few issue with your batch.

The biggest one is your jumping points, you have :b defined twice.

The next biggest thing is you have an infinite loop (:b and the goto B that follows it, also :f and it's goto f)

Now I am not sure if this is an issue but if the user always inputs asdfasdf they actually fall through your if statements and end passing the jumping points.

0b10111010 10101101 11110000 00001101

Link to comment
Share on other sites

Link to post
Share on other sites

What I can see is that you have a "goto B" without having a B, also you have two ':b', one of them ending with "goto B"

 

I don't really know batch, but I expect it to be case sensitive, if not, you have an infinite loop there on your first ':b'

 

You also have no c, though you have a "goto c" in there

 

and in g you have a goto f, and no goto in f, so it will just run down to g again and loop back to f, loopy loopy : D

Ryzen 7 5800X     Corsair H115i Platinum     ASUS ROG Crosshair VIII Hero (Wi-Fi)     G.Skill Trident Z 3600CL16 (@3800MHzCL16 and other tweaked timings)     

MSI RTX 3080 Gaming X Trio    Corsair HX850     WD Black SN850 1TB     Samsung 970 EVO Plus 1TB     Samsung 840 EVO 500GB     Acer XB271HU 27" 1440p 165hz G-Sync     ASUS ProArt PA278QV     LG C8 55"     Phanteks Enthoo Evolv X Glass     Logitech G915      Logitech MX Vertical      Steelseries Arctis 7 Wireless 2019      Windows 10 Pro x64

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×