HSCRYPT96 Error

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
TheEek
Junior Coder
Posts: 31
Joined: Mon Jun 22, 2009 2:53 pm

HSCRYPT96 Error

Post by TheEek » Mon Nov 01, 2010 12:07 pm

Hello,

I've created a script that calls NMAP to ping a range of hostnames (supplied by a list), from those results, it checks for the devices with network connectivity.

From the devices that are active, the script call a MSDOS bacth file, which runs a few checks (checking for a specific process). After that, the script checks those results, and runs nbtstat -a [ip address] against those machines that were not running this process (from the original list).

For some of the machines that nbtstat is targetted at, I receive the HSCRYPT error.

Image

The actual message is 8369 pixels wide. In the output file I get "##ERR## - Code : 32".

Below is the part of the script causing (reporting) the error.

Code: Select all

label>EditFileUnknownService
    IfFileExists>UNKNOWNSTATE,,exitme
    run>%CMD%
    WriteLn>%UNKNOWNSTATE%,WriteResult,EndOfList
    let>linenumber=1
    wait>1
    wwo>%CMD%

    label>UnknownServiceloop
        readln>%UNKNOWNSTATE%,%linenumber%,ReadResult
        if>ReadResult=EndOfList
            SetFocus>%CMD%
            wait>0.2
            send>exit
            wait>0.2
            press enter
            goto>exitme
        endif
        BlockInput>1
        setfocus>%CMD%
        WriteLn>%UNKNOWNSTATE%,WriteResult,%ReadResult%
        wait>0.1
        send>nbtstat -a %ReadResult% >> %UNKNOWNSTATE%
        wait>0.2
        press enter
        BlockInput>0
        wait>2
        add>linenumber,1
    goto>UnknownServiceloop

label>exitme

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Mon Nov 01, 2010 3:39 pm

Which version are you running? Make sure your script is compiled with 12.1.0. An earlier 12 release had a bug which showed garbage in script errors for compiled macros. Looks like what you're seeing I think.

However, that won't fix the code 32 error. Code 32 means:

"The process cannot access the file because it is being used by another process. "

So, it looks like the file you are trying to write to is in use by some other process.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

TheEek
Junior Coder
Posts: 31
Joined: Mon Jun 22, 2009 2:53 pm

Post by TheEek » Tue Nov 02, 2010 12:19 pm

Timing is the key - I always foret that. Your product is too good for our antiquated systems. I'll have the script go slower or create a temp batch file to run the commands.

Will post my results. Many thanks for your help.

TheEek
Junior Coder
Posts: 31
Joined: Mon Jun 22, 2009 2:53 pm

Post by TheEek » Fri Nov 05, 2010 1:30 pm

Apologies for the double post, I was under the impression that I was able to edit my last post...

For anyone who may be interested, my problem certainly was timing. A few cleverly inserted wait statements, sorted my problem out.

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts