Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Shell 

cmd.exe wont run .bat files WEIRD error every first cmd only. cmds after that work.??

so when I run a .bat file the FIRST command in the file gives an error but every command after that will run just fine.

say I run the .bat file below, the first line has this "" added before it, so it does not run properly.

Code
title fuckthisshit
color a
echo words
pause

BECOMES:

Code
title fuckthisshit
color a
echo words
pause

what causes this and how do I fix it????

[Image: yCEkG.png]
I had this problem when writing text to a .bat file in VB.NET, is that what you are doing? Because I know a fix.
(Mar 20, 2012 03:10 PM)Papaya Wrote:  1. You need to use @echo off.
2. Why did you put  there?

seriously stupid?

he didnt put it there. its from the cmd output

/fail
I use notepad++
its not just an issue with the .bat files I create. every time an installer or compiler program tries to run any .bat file I get that on the first line...
.
still looking for help guys :/ any ideas??
I'm still looking for help guys.. anybody??
(Mar 24, 2012 02:08 PM)In Gold We Trust Wrote:  Maybe running a system restore?
Because this is very werid.

And maybe a test:
Make a .bat file on a OTHER pc and run it in this pc.

already tried that test and many many others. and I have done system restores. none of them fixed this as this has been a problem for longer that the system restores I have I guess
Hmmm.
from what I can see it seems that.
It's not set to wumbo.
Is it?
huh..? I'm not sure what you mean man :/
(Mar 24, 2012 04:25 PM)xo03 Wrote:  huh..? I'm not sure what you mean man :/
Well W For wumbo
M For majin.
Is it set to wumbo or not?
I would assume not as I have never heard of or seen a variable or setting anywhere for that.
(Mar 25, 2012 01:59 PM)xo03 Wrote:  I would assume not as I have never heard of or seen a variable or setting anywhere for that.

It's first grade.
I suggest you reinstall your OS then. Never seen anything like it, and if system restores don't fix it either you're pretty much out of luck.
(Mar 25, 2012 07:37 PM)HF Help Documents Wrote:  take this test code i made for you:

Code
rem not turning off echo because we want results here
title awesome hax
color 0f
echo hello
pause

instead of puting it into notepad++, put it into regular notepad please for the test.

click "Save as"
name it as whatever.bat
"Save as type": All files
"Encoding": ANSI

and reply with results
actually yeah that worked. :O
so whats the issue with notepad++


Possibly Related Threads...
Thread / Author Replies Views Last Post
[C#] by Robert RougeSep 24, 2026 09:58 AM 4 269 Sep 24, 2026 09:58 AM
Last Post: Anonynuk
[Shell] by A13xSep 13, 2022 12:18 PM 2 257 Sep 13, 2022 12:18 PM
Last Post: ZribeDev
[.NET] by MilkMar 13, 2022 03:46 PM 4 132 Mar 13, 2022 03:46 PM
Last Post: #Kat