• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

So who's smart with Batch files?

Arrgh, I have a problem, this is probably a joke for some, but for the less skilled it's a pain in the GPU.

I'm in my first year Networking, and we're learning how to make batch files!! (yay). Anyways, I need to write a batch to write my name to a text file. Now, I know there's EDIT C:\TEXT.TXT but when I do that, it'll open up the text program in the stupid blue edit screen.

I need something like this:

edit c:\text.txt
Hello My name is Mike
some sort of exit command

now if I do edit c:/text.txt I wanna see 'Hello my name is Mike" on the first line.

Pls help all you expert programmers lol, you were all where I was once...

If you help me and buy something from me too, I'll ship you out a cookie 😀
 
I should add the avove command will overwrite C:\WHATEVER.TXT

If you want to append to the end of C:\WHATEVER.TXT use ..

echo "Whatever text you want" >> C:\WHATEVER.TXT
 
No prob, I haven't thought about BAT files since my LanTastic days - lot's of very complex ones to control logins/outs, etc. It was actually fun ...
 
Back
Top