Packaged Batch file Crashes when run from UNC path

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.
This topic is 5 years and 1 day old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
User avatar
omcakr
Posts: 2
Last visit: Thu Apr 02, 2020 4:09 pm

Packaged Batch file Crashes when run from UNC path

Post by omcakr »

Product, version and build: PrimalScript, 7.4.125
32 or 64 bit version of product: 64bit
Operating system: 64 bit OS: Windows 10, Windows 7, Windows Server 2016

*** Please add details and screenshots as needed below. ***

I converted a single line windows batch file to an executable using Deploy -> Build menu.
Script Engine Target: Microsoft Windows 32 and 64 bit
Script Engine: CMD
Output Settings: Generate .config file is selected
Other settings: Left default values

I copied the final executable package to a network location and users must call it using UNC path. When it is run from UNC path executable crashes with message ".... has stopped working. A problem caused the program to stop working correctly. Windows will close the program and notify you if a solution is available."

For testing purposes, I connected to the server where the file is hosted and run it directly. It runs fine. If I run it using UNC path it crashed with the same message.

Users has modify permission on parent folder an file.
Attachments
Primal Package.png
Primal Package.png (85.82 KiB) Viewed 3067 times
User avatar
Alexander Riedel
Posts: 8478
Last visit: Tue Mar 26, 2024 8:52 am
Answers: 19
Been upvoted: 37 times

Re: Packaged Batch file Crashes when run from UNC path

Post by Alexander Riedel »

Thanks for letting us know. I'll forward it to QA for testing.
Alexander Riedel
SAPIEN Technologies, Inc.
User avatar
Alexander Riedel
Posts: 8478
Last visit: Tue Mar 26, 2024 8:52 am
Answers: 19
Been upvoted: 37 times

Re: Packaged Batch file Crashes when run from UNC path

Post by Alexander Riedel »

We are not able to replicate this here. Could you provide more more information as to where the exe is located?
NAS? Windows Server? Etc.
I see you generate a 32 and a 64 bit version. Do both exhibit this behavior on your 64 bit machine or only one? If so, which one?
Additionally, a crash usually generates a system log entry. Could you check that and provide the enclosed information please?
Alexander Riedel
SAPIEN Technologies, Inc.
This topic is 5 years and 1 day old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.