Valhalla Legends Archive

General => /WHOAMI -- Introductions => Topic started by: Evil_Spock on October 07, 2003, 11:49 PM

Title: /Whoami
Post by: 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.
Title: Re:/Whoami
Post by: Yoni on October 08, 2003, 07:39 AM
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
Title: Re:/Whoami
Post by: iago on October 08, 2003, 08:23 AM
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.
Title: Re:/Whoami
Post by: Thing on October 08, 2003, 08:39 AM
Those are called scripts iago.
Title: Re:/Whoami
Post by: iago on October 08, 2003, 08:49 AM
Quote from: Thing on October 08, 2003, 08:39 AM
Those are called scripts iago.

Same thing!! :-P
Title: Re:/Whoami
Post by: 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
Title: Re:/Whoami
Post by: Adron on October 08, 2003, 10:49 AM
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
Title: Re:/Whoami
Post by: Thing on October 08, 2003, 11:11 AM
Those crazy batch files.  8)
Title: Re:/Whoami
Post by: 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 :)
Title: Re:/Whoami
Post by: 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
Title: Re:/Whoami
Post by: 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!
Title: Re:/Whoami
Post by: MyndFyre on October 09, 2003, 06:23 PM
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..