Current folder for HTA packaged script

This forum can be browsed by the general public. Posting is limited to current SAPIEN license holders with active maintenance and does not offer a response time guarantee.
Forum rules
DO NOT POST LICENSE NUMBERS, ACTIVATION KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
User avatar
clum09
Posts: 150
Joined: Thu Apr 24, 2008 9:11 am

Current folder for HTA packaged script

Post by clum09 »

HTA packaged script

User avatar
clum09
Posts: 150
Joined: Thu Apr 24, 2008 9:11 am

Current folder for HTA packaged script

Post by clum09 »

I wrote an HTA script using the VBscript language. When I package my HTA script with PrimalScript 2009, I have the extracted script file output to the %temp% folder.

I have a need to write the information generated by this HTA script to a file in the same folder as the packaged script.

What is the way that I can accomplish this task?

Thanks.

User avatar
clum09
Posts: 150
Joined: Thu Apr 24, 2008 9:11 am

Current folder for HTA packaged script

Post by clum09 »

I wrote an HTA script using the VBscript language. When I package my HTA script with PrimalScript 2009,
I have the extracted script file output to the %temp% folder.

I have a need to write the information generated by this HTA script to a file in the same folder as
the packaged script.

What is the way that I can accomplish this task?

Thanks.

User avatar
Alexander Riedel
Posts: 7458
Joined: Tue May 29, 2007 4:43 pm

Current folder for HTA packaged script

Post by Alexander Riedel »

There really is no way for an HTA to get that information.
The only thing I can offer for that is to add that to the wishlist and see if we can add something in a future service build.
It would probably require generating code that is injected into the HTA as it is unpacked.
Alexander Riedel
SAPIEN Technologies, Inc.

User avatar
clum09
Posts: 150
Joined: Thu Apr 24, 2008 9:11 am

Current folder for HTA packaged script

Post by clum09 »

I know that when I packaged the HTA script in Admin Script Editor, Admin Script Editor has a pathvariable generated during the execution of the packaged script. It was through this path variable that I could use to output the log file to the packaged HTA script's current folder. I wish PrimalScript will have the same feature in the future release.

User avatar
clum09
Posts: 150
Joined: Thu Apr 24, 2008 9:11 am

Current folder for HTA packaged script

Post by clum09 »

I know that when I packaged the HTA script in Admin Script Editor, Admin Script Editor has a pathvariable generated during the execution of the packaged script. It was through this path variable that I could use to output the log file to the packaged HTA script's current folder. I wish PrimalScript will have the same feature in the future release.

User avatar
Alexander Riedel
Posts: 7458
Joined: Tue May 29, 2007 4:43 pm

Current folder for HTA packaged script

Post by Alexander Riedel »

Send some details as to how this worked to support@sapien.com. I'll see what we can come up with.
Alexander Riedel
SAPIEN Technologies, Inc.

User avatar
clum09
Posts: 150
Joined: Thu Apr 24, 2008 9:11 am

Current folder for HTA packaged script

Post by clum09 »

Hello,

I tried to write an email to support@saoien.com about this issue, but I got a not deliverable response (NDR) back. So I like to go ahead and post my request here.

I like to see the new release of PrimalScript to be able to get the packaged script's current folder when the VBscript file is packaged in either the Wscript or HTA mode.

I have PrimalScript 2009, and I cannot output the log files generated by the packaged script to be placed in the packaged script's folder when I packaged it in the Wscript or the HTA script mode.

Please let me know when this task has been completed so that I can try it.

Thank you so much for your attention concerning this matter.

User avatar
Alexander Riedel
Posts: 7458
Joined: Tue May 29, 2007 4:43 pm

Current folder for HTA packaged script

Post by Alexander Riedel »

No, I forwarded the reply that bounced back to YOUR specified email address. You should not email from one email address and have an invalid email set as reply-to.
The original reply was attached.

2009 is no longer supported an no additions or fixes will be issued for that version.

Having said that, I am not sure why you would not be able to write log files. The WScript properties are set correctly if packaged as an exe and the HTA object model has no such property. Maybe you can explain exactly where your problem is.
Alexander Riedel
SAPIEN Technologies, Inc.