This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

execute an exe

Old posts that have not been replied to for several years.
Locked
O
Ofloo
Owner
Posts: 953
Joined: Tue May 13, 2003 1:37 am
Location: Belguim
Contact:

execute an exe

Post by Ofloo »

how would i execute an exe on my windrop from a channel ?

like

!kill 1234

=> should run: kill.exe 1234

kill = var
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Code: Select all

bind pub o !kill pub:kill

proc pub:kill {nick uhost hand chan arg} {
exec kill.exe [lindex $arg 0]
putserv "PRIVMSG $chan :killed [lindex $arg 0]"
}
Once the game is over, the king and the pawn go back in the same box.
O
Ofloo
Owner
Posts: 953
Joined: Tue May 13, 2003 1:37 am
Location: Belguim
Contact:

Post by Ofloo »

euhm i gues it is me but it don't work, where do i put the exe file ? i puted it into system32 & the root of windrop but still doesn't work. ?? is there a specific folder where i should put it into ?
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

the .exe file must be in the same dir as the windrop.. you can change it's path if you want it to start from other place like this: c://something/bla.exe .. or something.. do some tests.
Once the game is over, the king and the pawn go back in the same box.
O
Ofloo
Owner
Posts: 953
Joined: Tue May 13, 2003 1:37 am
Location: Belguim
Contact:

Post by Ofloo »

that is what i sad i did some tests i putted it in windrop directory, and in system32 that is a directory if you know dos set path=c:\winnt\system32 so that means any file in windows or dos can be executed without using path

also used "c:\kill.exe" ... and so on, it just doesn't work is ther something i am doing wrong ?
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

You can't just use c:\kill.exe

It has to be c:\\kill.exe

Tcl interets the \ as it does on *nix, as an escape character.

As such, you have to use \\ to escape itself.
O
Ofloo
Owner
Posts: 953
Joined: Tue May 13, 2003 1:37 am
Location: Belguim
Contact:

Post by Ofloo »

not working either ... ??? i copy pasted it into a script loaded it have put the exe file into same dir as script , and root of windrop also put it into system32, c:\ , tryed script with without filelocation .. (c:\\ & c:\ & ), hmm wat am i doing wrong ??
User avatar
Papillon
Owner
Posts: 724
Joined: Fri Feb 15, 2002 8:00 pm
Location: *.no

Post by Papillon »

have you tried c:/ <--- notice the / ... not \
Elen sila lúmenn' omentielvo
O
Ofloo
Owner
Posts: 953
Joined: Tue May 13, 2003 1:37 am
Location: Belguim
Contact:

Post by Ofloo »

sorry yes .. ...... ???

i tryed

c:\\kill.exe
c:\\kill.exe\\
"c:\\kill.exe"
"c:\\kill.exe\\"
"c:/kill.exe/"
"c:/kill.exe"
c:/kill.exe
c:/kill.exe/
kill.exe = when file is in the windrop root direcotry
"kill.exe" = when file is in the windrop root direcotry
Last edited by Ofloo on Wed May 21, 2003 3:38 pm, edited 2 times in total.
O
Ofloo
Owner
Posts: 953
Joined: Tue May 13, 2003 1:37 am
Location: Belguim
Contact:

Post by Ofloo »

[19:25] Tcl error [pub:kill]: couldn't duplicate input handle: bad file number

this i get
O
Ofloo
Owner
Posts: 953
Joined: Tue May 13, 2003 1:37 am
Location: Belguim
Contact:

Post by Ofloo »

does it need to be in a specific place cause when i use dumpfile it has to be in text directory ?? so or doesn't it mather ?
Locked