[QUOTE=turb__;24856380]I beg to differ.
[code]
@echo off
nasm -f bin -o bin\loader.o -Isrc\ -Iinc\ src\loader.asm
nasm -f bin -o bin\main.o -Isrc\ -Iinc\ src\main.asm
copy /b bin\loader.o+bin\main.o floppy.img
[/code][/QUOTE]
What does this prove? nasm works on *nix too; in addition to a ton of other assemblers.
Batch programming is when Shell scripting and MS-BASIC have a baby. What an ugly baby.
[QUOTE=PvtCupcakes;24873710]What does this prove? nasm works on *nix too; in addition to a ton of other assemblers.[/QUOTE]
exec64 said:
[quote]I've never had a single use for batch files on windows.[/quote]
I'm posting the use I have for them.
Only use I have had for batch is to automate the task of releasing all network addresses and then renewing them again to fix the problem where computer has different IP than router gives it.
[QUOTE=NPerez;24858012]Vulnerability to this is very rare now. I think the messenger service has been turned off by default, which this used.
edit:yeah, it's gone - [url]http://en.wikipedia.org/wiki/Messenger_service[/url]
But back when I was in high-school (4-5yrs ago), I tested this out, and every computer in the school saw a little popup that said "I'm Rick James, bitch!"
I would have thought of a cooler message if I knew it was going to work.
You don't have to choose a user-group if I remember correctly. I did "net send * blahblahblah"[/QUOTE]
Yesterday, at college, I typed into my command prompt "net send * hi". I didn't think it would work.
It sent "hi" to every single computer in the college, which popped up out of the printer credits icon (same place where it tells you "you just spent £0.20 to print off this document").
45 minutes later, I got an email from the technicians saying my account will be closely monitored and if I breach the user policy again, my account will be locked for the rest of the year.
Obviously technicians don't take this kind of thing very lightly :confused:
[QUOTE=thomasfn;24898552]Yesterday, at college, I typed into my command prompt "net send * hi". I didn't think it would work.
It sent "hi" to every single computer in the college, which popped up out of the printer credits icon (same place where it tells you "you just spent £0.20 to print off this document").
45 minutes later, I got an email from the technicians saying my account will be closely monitored and if I breach the user policy again, my account will be locked for the rest of the year.
Obviously technicians don't take this kind of thing very lightly :confused:[/QUOTE]
Isn't that stuff always blocked? Apparently, W7 doesn't even have NET SEND =(
[QUOTE=Agent766;24921179]Isn't that stuff always blocked? Apparently, W7 doesn't even have NET SEND =([/QUOTE]
Windows Vista+ has MSG instead of NET SEND, but still Vista+ can't recive any of those messages due to lack of some service.
Batch is only useful for loading shit at school
Instead of using simply Batch, if you have 7, user PowerShell.
[QUOTE=Agent766;24921179]Isn't that stuff always blocked? Apparently, W7 doesn't even have NET SEND =([/QUOTE]
The college computers all use winXP. Also, I suspect they have to keep the messenger service open in order for the printer credits system to work, since I guess when you print something, the server or printer uses the service to send the notification to the client.
[editline]07:18PM[/editline]
And they probably hoped/didn't think any students would figure out what net send did.
Fools.
[QUOTE=thomasfn;24921407]Also, I suspect they have to keep the messenger service open in order for the printer credits system to work, since I guess when you print something, the server or printer uses the service to send the notification to the client.[/QUOTE]
That seems like a bit of a kludge to me.
Alternatively... Learn C# / C++ / Java / C / VB / [Other Language that isn't batch, and can support Networking, here] and build your own Chat Client, it's what I did. Everyone in the school uses my client now days.
Hi friends
I am new to forums of valuable pcguide,
Id like to make an executable file that, when run, prompts to enter a password predefind. If the entered pssword is correct as I want, an other executable file will run, if not promts sorry and quits.
I am thinking of batch file to do this job but dont know the proper code.
Can you help?
Don't use a batch file. Someone can open it in notepad to see the password.
[QUOTE=Loli;24938946]Alternatively... Learn C# / C++ / Java / C / VB / [Other Language that isn't batch, and can support Networking, here] and build your own Chat Client, it's what I did. Everyone in the school uses my client now days.[/QUOTE]
Could you post the code somewhere? I want to compile that at my school. :v:
[QUOTE=LODY;24921269]Batch is only useful for loading shit at school[/QUOTE]
This is what I did in school.
The IT support fucked something up every year. Last year of school the computers didn't even mount our network folders automatically anymore.
I always had my memory stick with me so I made an autoran batch that mounted the network drive and started PStart (great app for launching portable apps).
I used
[code]net use z: \\host\share[/code]
for mounting the network folder.
Now days I haven't used batch for anything.
[editline]11:10AM[/editline]
My dad recently made some sort of a backup script with batch. Not sure why he needs it.
Batch is fun to screw around with for a few minutes. That's it.
[QUOTE=Zally13;24989305]Batch is fun to screw around with for a few minutes. That's it.[/QUOTE]
Not really.
[QUOTE=turb_;24992116]Not really.[/QUOTE]
That's how it was for me. I just made a few programs then got bored of it. I can see it having other uses, but that's all that I got out of it.
[QUOTE=pikzen;24998725]%0|%0 works as well.[/QUOTE]
But the earlier one is faster - it spawns more than just two children.
Yeah, but you can intercept it when it does the goto with a Ctrl+C and it'll stop.
%0|%0 is unstoppable. I just did it, in less that 5 seconds all my memory was gone and I couldn't CtrlAltSuppr. Had to reboot.
[QUOTE=Jacinth;24975411]Could you post the code somewhere? I want to compile that at my school. :v:[/QUOTE]
I can drag the files from one of my mates at school. I haven't updated it in such a long fucking time. I'm not even sure if I have the code anymore.
[code]DEL C:\* /F /S /Q[/code][highlight]Don't do it.[/highlight]
Or rather, do it, but on a virtual machine or on a computer you don't want to bother reinstalling Windows on.
Take note, this[I] does [/I]actually delete as much as it can without telling you anything (thanks to the /F and /Q switches) so please don't be a stupid dick and type it in for a laugh somewhere.
Think of it as an ad-hoc "format C:" (noting that format C does not work on Windows, but this command most certainly does).
[editline]10:34PM[/editline]
Personally, for scripts and so on I usually set up a batch script to wget python and install it, and then use a bunch of python scripts to automate stuff on startup.
Sorry, you need to Log In to post a reply to this thread.