Page 1 of 1

Convert cmd to exe

Posted: Thu May 21, 2020 10:15 am
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

Re: Convert cmd to exe

Posted: Thu May 21, 2020 10:27 am
by Alexander Riedel
Attached is a zip file with a packaged CMD file. It contains
  1. @echo off
  2.  
  3. REM ======================================================================
  4.  
  5. REM
  6.  
  7. REM Batch File -- Created with SAPIEN Technologies PrimalScript 2020
  8.  
  9. REM
  10.  
  11. REM NAME:
  12.  
  13. REM
  14.  
  15. REM AUTHOR: alexr@sapien.com ,
  16.  
  17. REM DATE  : 5/21/2020
  18.  
  19. REM
  20.  
  21. REM COMMENT:
  22.  
  23. REM
  24.  
  25. REM ======================================================================
  26.  
  27. REM %ForceCodePage%=437
  28.  
  29.  
  30.  
  31. 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.

Re: Convert cmd to exe

Posted: Thu May 21, 2020 11:39 am
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.

Re: Convert cmd to exe

Posted: Thu May 21, 2020 12:47 pm
by Alexander Riedel
2020-05-21_12-46-09.jpg
2020-05-21_12-46-09.jpg (127.78 KiB) Viewed 258 times

Re: Convert cmd to exe

Posted: Thu May 21, 2020 12:48 pm
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....

Re: Convert cmd to exe

Posted: Thu May 21, 2020 1:03 pm
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 258 times

Re: Convert cmd to exe

Posted: Thu May 21, 2020 1:25 pm
by Alexander Riedel
Well, yeah, it doesn't know yet what you want to do. Click on Packager -> Settings.

Re: Convert cmd to exe

Posted: Thu May 21, 2020 1:31 pm
by ogeccut
How do i know what its missing?

Re: Convert cmd to exe

Posted: Thu May 21, 2020 2:58 pm
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