Valhalla Legends Forums Archive | /WHOAMI -- Introductions | /Whoami

AuthorMessageTime
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.
October 8, 2003, 4:49 AM
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
October 8, 2003, 12:39 PM
iago
[quote author=Evil_Spock link=board=21;threadid=2996;start=0#msg23375 date=1065588570]
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.

[/quote]

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.
October 8, 2003, 1:23 PM
Thing
Those are called scripts Iago.
October 8, 2003, 1:39 PM
iago
[quote author=Thing link=board=21;threadid=2996;start=0#msg23388 date=1065620396]
Those are called scripts Iago.
[/quote]

Same thing!! :-P
October 8, 2003, 1:49 PM
Thing
But can you do this with a batch file?
[code]#!/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[/code]
October 8, 2003, 2:51 PM
Adron
[quote author=Thing link=board=21;threadid=2996;start=0#msg23395 date=1065624687]
But can you do this with a batch file?
[code]#!/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[/code]
[/quote]

[code]
@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
[/code]
October 8, 2003, 3:49 PM
Thing
Those crazy batch files. 8)
October 8, 2003, 4:11 PM
iago
No clue if you can, ask Evil_Spock, he knows about batch files more than I do apparently :)
October 8, 2003, 10:30 PM
Evil_Spock
[quote author=iago link=board=21;threadid=2996;start=0#msg23462 date=1065652225]
No clue if you can, ask Evil_Spock, he knows about batch files more than I do apparently :)
[/quote]

lol my best batch file was:

cd doom
doom.exe
October 9, 2003, 3:22 AM
iago
[quote author=Evil_Spock link=board=21;threadid=2996;start=0#msg23519 date=1065669738]
[quote author=iago link=board=21;threadid=2996;start=0#msg23462 date=1065652225]
No clue if you can, ask Evil_Spock, he knows about batch files more than I do apparently :)
[/quote]

lol my best batch file was:

cd doom
doom.exe
[/quote]

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!
October 9, 2003, 4:50 AM
Myndfyr
[quote author=iago link=board=21;threadid=2996;start=0#msg23532 date=1065675035]
[quote author=Evil_Spock link=board=21;threadid=2996;start=0#msg23519 date=1065669738]
[quote author=iago link=board=21;threadid=2996;start=0#msg23462 date=1065652225]
No clue if you can, ask Evil_Spock, he knows about batch files more than I do apparently :)
[/quote]

lol my best batch file was:

cd doom
doom.exe
[/quote]

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!
[/quote]

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

[code]
md doom
cd doom
copy \doom\*.* .
cd..
[/code]
October 9, 2003, 11:23 PM

Search