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.

Need help with coding....

Old posts that have not been replied to for several years.
Locked
R
RaBieZ|ZyFleX

Need help with coding....

Post by RaBieZ|ZyFleX »

I have tryed to make my own script, i have to run a file from an other folder, but it wont work... i use a Windrop... can anyone tell me what to write in my script ?
i have tryed with:

exec "C:/dir/myfile.exe"
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

Questions like this have been aswered many times, and at least twice within the past 1 1/2 months.

What errors does the message give you?

have you tried replacing the "" with { and }?

Have you tried using a forward slash instad of a backslash?
R
RaBieZ|ZyFleX

...

Post by RaBieZ|ZyFleX »

i have tryed whit / and \
and {} instad of "" it still dosent work...
the error message look like this

[14:13] Tcl error [stats]: couldn't execute " C:\stats.bat ": no such file or directory

:(
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

Just to note, there seems to be a space between the " and the c:, and again at the end of it.

I don't know if this is the way Tcl prints the error, or part of the problem.

However, as the error sugests, it is unable to find the file.
R
RaBieZ|ZyFleX

!

Post by RaBieZ|ZyFleX »

if i remove the littel space i get this error message:

Tcl error [stats]: couldn't duplicate input handle: bad file number

how to fix it ?
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

Then the space was the problem.

This has been answered many times on the forum, and also has a possible fix attached.

Tcl somhow loses the ability to access the data coming from the program, and thus returns this error.

It may well be a Tcl related error, and as such, would require that you seek help from the Tcl developers.

It may also be related to the w3ay eggdrop relinquishes control of stdin and stdout. Maybe disabling these functions might help.

I am about to try and make my first compile of windrop, so I will make it available, to see if this helps your plight.
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

A quick look over at http://windrop.sourceforge.net/ sugests that this problem has been around since 1.5.2.

You can use any of the 1.4 versions of windrop, and there should be no problem.
R
RaBieZ|ZyFleX

Post by RaBieZ|ZyFleX »

k thx for the help :=)
Locked