mIRC Homepage
Posted By: Supercser hsave: unable to open..why? - 11/08/06 01:57 PM
when i want to hsave a hashtable
mirc main window reminds me:
* /hsave: unable to open 'D:\Program Files\mIRC\aaa.hsh'

it is always normal, but if aaa is some specific words, table can't be hsaved. why?
Posted By: darkrift Re: hsave: unable to open..why? - 11/08/06 06:07 PM
if there<s space in the the directory where the file is has a space u need to quote that path "D:\Program Files\mIRC\aaa.hsh"

if that didn<t solve it, post ur code here someone will try to help u
Posted By: SCNDRL Re: hsave: unable to open..why? - 11/08/06 10:11 PM
use $shortfn(Directory) or $+(",Directory,")
Posted By: Supercser Re: hsave: unable to open..why? - 11/08/06 11:09 PM
thx!

my code:

alias testtest {
var %section = UNC
hadd -m %section $1 1
hsave -s %section %section $+ .hsh
}

plz help me and try, thx!
Posted By: RusselB Re: hsave: unable to open..why? - 12/08/06 12:26 AM
I tried this code using /testtest test
and it worked as it's supposed to.
Posted By: Supercser Re: hsave: unable to open..why? - 12/08/06 01:56 AM
Mine shows:
* /hsave: unable to open 'D:\Program Files\mIRC\UNC.hsh'

ft confused
Posted By: RusselB Re: hsave: unable to open..why? - 12/08/06 03:14 AM
hmm..just retested it, and got the same results. Further testing shows that the problem is with the actual file name that you're wanting to use.

I seem to recall that similar problems have been reported before with specific filenames not working.

UNC seems to be one of those filenames, as I changed the name from UNC to TIME and it worked. I don't know if there was a reason for using UNC or not.
Posted By: DaveC Re: hsave: unable to open..why? - 12/08/06 08:08 AM
UNC stands for something, but it elludfes me at this moment, I think its Universal Network C????? something to do with network redirection or file mapping? My head hurts from last night smile
Posted By: KingTomato Re: hsave: unable to open..why? - 12/08/06 09:33 AM
Universal Naming Convention--As referred to network names, i.e. \\computername.

View its description.
Posted By: DaveC Re: hsave: unable to open..why? - 12/08/06 10:55 AM
Well there ya go, someone who could have driven me home last night, instead i had to sleep in the car.
Posted By: Supercser Re: hsave: unable to open..why? - 12/08/06 01:11 PM
/inc [-cszeuN] <%var> [value]
This increases the value of %var by value.

If you specify the -uN switch, %var is increased by the value once and then %var is unset N seconds later, assuming it is not set again by another script.

The -c switch increases %var once per second.

MIRC maybe comfused--drunk, lol
Posted By: RusselB Re: hsave: unable to open..why? - 12/08/06 03:08 PM
If you have a question about the /inc command, you have to state it for us to know what you're wondering about.
© mIRC Discussion Forums