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.
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
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.
Those are called scripts iago.
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
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
Those crazy batch files. 8)
No clue if you can, ask Evil_Spock, he knows about batch files more than I do apparently :)
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
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!
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..