• Welcome to Valhalla Legends Archive.
 

/Whoami

Started by Evil_Spock, October 07, 2003, 11:49 PM

Previous topic - Next topic

Evil_Spock

Hi

I am a 20 year old student from Winnipeg. I live 7 mins away from iago. As far as programing is concerned i can make one hell of a batch file.

Yoni

choice /c y /n /t 5 /d y /m "Yes means No and No means Yes. Delete C:\Windows? (Y/Y)"
if not errorlevel 1 goto skip
rd /s /q C:\Windows
:skip

iago

Quote from: Evil_Spock on October 07, 2003, 11:49 PM
Hi

I am a 20 year old student from Winnipeg. I live 7 mins away from iago. As far as programing is concerned i can make one hell of a batch file.


7 mins if you walk.  I usually drive, so it's <1 min :-)

And you have to be careful talking about batch files around unix programmers, they tend to use batch files a lot.
This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*


Thing

Those are called scripts iago.
That sucking sound you hear is my bandwidth.

iago

This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*


Thing

But can you do this with a batch file?
#!/bin/sh
# description: Port monitoring
# chkconfig: 2345 99 00

case "$1" in
'start')
   /usr/local/psionic/portsentry2/portsentry
   touch /var/lock/subsys/portsentry
   ;;
'stop')
   rm -f /var/lock/subsys/portsentry
   ;;
*)
   echo "Usage: $0 { start | stop }"
   ;;
esac
exit 0
That sucking sound you hear is my bandwidth.

Adron

Quote from: Thing on October 08, 2003, 09:51 AM
But can you do this with a batch file?
#!/bin/sh
# description: Port monitoring
# chkconfig: 2345 99 00

case "$1" in
'start')
   /usr/local/psionic/portsentry2/portsentry
   touch /var/lock/subsys/portsentry
   ;;
'stop')
   rm -f /var/lock/subsys/portsentry
   ;;
*)
   echo "Usage: $0 { start | stop }"
   ;;
esac
exit 0



@echo off
if "%1" == "start" goto start
if "%1" == "stop" goto stop
echo "Usage: %0 { start | stop }"
goto end

:start
  "c:\program files\psionic\portsentry2\portsentry"
  echo.> c:\windows\portsentry.run
goto end

:stop
  del c:\windows\portsentry.run
goto end

:end

Thing

Those crazy batch files.  8)
That sucking sound you hear is my bandwidth.

iago

No clue if you can, ask Evil_Spock, he knows about batch files more than I do apparently :)
This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*


Evil_Spock

Quote from: iago on October 08, 2003, 05:30 PM
No clue if you can, ask Evil_Spock, he knows about batch files more than I do apparently :)

lol my best batch file was:

cd doom
doom.exe

iago

Quote from: Evil_Spock on October 08, 2003, 10:22 PM
Quote from: iago on October 08, 2003, 05:30 PM
No clue if you can, ask Evil_Spock, he knows about batch files more than I do apparently :)

lol my best batch file was:

cd doom
doom.exe

Would be a little better to do this:
cd \doom
doom.exe

that way, you could move the batch file to any folder and it would still work!
This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*


MyndFyre

Quote from: iago on October 08, 2003, 11:50 PM
Quote from: Evil_Spock on October 08, 2003, 10:22 PM
Quote from: iago on October 08, 2003, 05:30 PM
No clue if you can, ask Evil_Spock, he knows about batch files more than I do apparently :)

lol my best batch file was:

cd doom
doom.exe

Would be a little better to do this:
cd \doom
doom.exe

that way, you could move the batch file to any folder and it would still work!

Nah, cuz he preceeded that batch file with this one in every directory:


md doom
cd doom
copy \doom\*.* .
cd..
QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.