Convert cmd to exe

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 3 years and 10 months 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
ogeccut
Posts: 19
Last visit: Tue Dec 07, 2021 7:41 am

Convert cmd to exe

Post by ogeccut »

I need a tool to convert .cmd to .exe. Have been using free tools before, but now we have upgraded to SEP 14 and my file is flagged as virus.
Before we purchase a licence for PrimalScript, i would like to make sure i can convert cmd to exe "i think i can look @ forums" and make sure it wont be flagged as virus ".cmd is not"
Thank you.

To help you better we need some information from you.

*** Please fill in the fields below. If you leave fields empty or specify 'latest' rather than the actual version your answer will be delayed as we will be forced to ask you for this information. ***

Product, version and build:
32 or 64 bit version of product:
Operating system:
32 or 64 bit OS:

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

DO NOT POST LICENSES, KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM
User avatar
Alexander Riedel
Posts: 8479
Last visit: Thu Mar 28, 2024 9:29 am
Answers: 19
Been upvoted: 37 times

Re: Convert cmd to exe

Post by Alexander Riedel »

Attached is a zip file with a packaged CMD file. It contains
  1. @echo off
  2. REM ======================================================================
  3. REM
  4. REM Batch File -- Created with SAPIEN Technologies PrimalScript 2020
  5. REM
  6. REM NAME:
  7. REM
  8. REM AUTHOR: alexr@sapien.com ,
  9. REM DATE  : 5/21/2020
  10. REM
  11. REM COMMENT:
  12. REM
  13. REM ======================================================================
  14. REM %ForceCodePage%=437
  15.  
  16. Echo Hello World
Throw it at your virus scanner. Also, the trial version has the ability to package your cmd files as exe's so go ahead and try it.
Attachments
HelloWorld.zip
(1.92 MiB) Downloaded 389 times
Alexander Riedel
SAPIEN Technologies, Inc.
User avatar
ogeccut
Posts: 19
Last visit: Tue Dec 07, 2021 7:41 am

Re: Convert cmd to exe

Post by ogeccut »

How do i get a trial key? I installed primal script and click on the get a trial key.
It takes me to sapien page / my account.
No trial key to download.
Thank yuo.
User avatar
Alexander Riedel
Posts: 8479
Last visit: Thu Mar 28, 2024 9:29 am
Answers: 19
Been upvoted: 37 times

Re: Convert cmd to exe

Post by Alexander Riedel »

2020-05-21_12-46-09.jpg
2020-05-21_12-46-09.jpg (127.78 KiB) Viewed 11203 times
Alexander Riedel
SAPIEN Technologies, Inc.
User avatar
Alexander Riedel
Posts: 8479
Last visit: Thu Mar 28, 2024 9:29 am
Answers: 19
Been upvoted: 37 times

Re: Convert cmd to exe

Post by Alexander Riedel »

You only need that if you have a virtual machine, or at least if it thinks you do.
Without knowing what you see....
Alexander Riedel
SAPIEN Technologies, Inc.
User avatar
ogeccut
Posts: 19
Last visit: Tue Dec 07, 2021 7:41 am

Re: Convert cmd to exe

Post by ogeccut »

Alexander,
Thank you for helping. Took a while to get that email.
Need some help trying to convert.
I think i am in the right place "Deploy tab" but Build is disabled:
1.jpg
1.jpg (37.74 KiB) Viewed 11203 times
User avatar
Alexander Riedel
Posts: 8479
Last visit: Thu Mar 28, 2024 9:29 am
Answers: 19
Been upvoted: 37 times

Re: Convert cmd to exe

Post by Alexander Riedel »

Well, yeah, it doesn't know yet what you want to do. Click on Packager -> Settings.
Alexander Riedel
SAPIEN Technologies, Inc.
User avatar
ogeccut
Posts: 19
Last visit: Tue Dec 07, 2021 7:41 am

Re: Convert cmd to exe

Post by ogeccut »

How do i know what its missing?
Attachments
1.jpg
1.jpg (255.87 KiB) Viewed 11198 times
User avatar
Alexander Riedel
Posts: 8479
Last visit: Thu Mar 28, 2024 9:29 am
Answers: 19
Been upvoted: 37 times

Re: Convert cmd to exe

Post by Alexander Riedel »

Well, you are packaging, so you wouldn't look at any of the installer settings. So focus on the pages under packager.
You need to decide if you want 32 or 64 bit or both, that would be that combo box where it says Target.
The CMD engine is under 'Other'. Click around, its not complicated.
Under output settings, you tell it WHERE to put the exe, icons, elevation, manifest, signatures, pretty straight forward.
Restrictions, look at them, but for testing you won't need that.
Version information, that is where you provide information for the version resource. The fields are basically what you see when you right click on an exe file in Windows Explorer and select Properties -> Details.
Build command is for any post processing
Alexander Riedel
SAPIEN Technologies, Inc.
This topic is 3 years and 10 months 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.