mIRC Home    About    Download    Register    News    Help

Print Thread
Error on /write -ds" #261664 08/11/17 11:08 AM
Joined: Sep 2015
Posts: 85
klez Offline OP
Babel fish
OP Offline
Babel fish
Joined: Sep 2015
Posts: 85
Having this example:

Code:
/write test.txt " test


and executing:

Code:
/write -ds" test.txt


will return: * /write: invalid parameters

so, to delete avoiding this error we must execute:

Code:
if ($read(test.txt,nts,") != $null) write -dl $+ $readn test.txt


Can be checked somehow to not avoid errors on /write -ds" ?

Re: Error on /write -ds" [Re: klez] #261666 08/11/17 12:26 PM
Joined: Dec 2002
Posts: 4,563
Khaled Offline
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 4,563
Thanks for your bug report. This is by design. The /write -s switch supports quoting. This means that if you use an open quote, you must use a close quote. If you do not, it is treated as an error.