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.

Remove a txt file

Old posts that have not been replied to for several years.
Locked
J
Jag
Halfop
Posts: 90
Joined: Fri Sep 19, 2003 10:06 am

Remove a txt file

Post by Jag »

how can i remove a txt file from the eggdrop's dir? :)
User avatar
GodOfSuicide
Master
Posts: 463
Joined: Mon Jun 17, 2002 8:00 pm
Location: Austria

Post by GodOfSuicide »

1) exec rm somefile.txt
2) file delete somefile.txt (see http://www.tcl.tk/man/tcl8.4/TclCmd/file.htm#M12)
J
Jag
Halfop
Posts: 90
Joined: Fri Sep 19, 2003 10:06 am

Post by Jag »

Code: Select all

Tcl error [proc:name]: couldn't execute "rm": no such file or directory
? :(
User avatar
GodOfSuicide
Master
Posts: 463
Joined: Mon Jun 17, 2002 8:00 pm
Location: Austria

Post by GodOfSuicide »

Jag wrote:

Code: Select all

Tcl error [proc:name]: couldn't execute "rm": no such file or directory
are you running windrop ? btw : method 2) is better
J
Jag
Halfop
Posts: 90
Joined: Fri Sep 19, 2003 10:06 am

Post by Jag »

yes, i'm running windrop :-?
whats the problem?
User avatar
user
 
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

Post by user »

Jag wrote:whats the problem?
no such file or directory
:P
btw: why did you come whining before you tried the second solution?
Have you ever read "The Manual"?
J
Jag
Halfop
Posts: 90
Joined: Fri Sep 19, 2003 10:06 am

Post by Jag »

what can i do to remove the file? :cry:
User avatar
user
 
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

Post by user »

GodOfSuicide wrote:2) file delete somefile.txt (see http://www.tcl.tk/man/tcl8.4/TclCmd/file.htm#M12)
GodOfSuicide wrote:btw : method 2) is better
Have you ever read "The Manual"?
User avatar
GodOfSuicide
Master
Posts: 463
Joined: Mon Jun 17, 2002 8:00 pm
Location: Austria

Post by GodOfSuicide »

Jag wrote:yes, i'm running windrop :-?
whats the problem?
rm is a unix command

you better try the 2nd solution
J
Jag
Halfop
Posts: 90
Joined: Fri Sep 19, 2003 10:06 am

Post by Jag »

10x :P
Locked