Jump to content

CMD or BAT to EXE compiler what is the best


Recommended Posts

Posted

Hi guys,

sorry to use that old thread. :-)

Looking for a cmd to exe compiler that creates 64bit executables. QuickBFC doesn´t seem to do that.

Any other ideas ?

Thanks,

Alex


Posted

Why do you need a 64-bit executable from a batch file? 32-bit apps will run perfectly fine in most scenarios on 64-bit OSes.

Posted

I am curious too, my thinking was the 64bit cmd.exe environment variables map to different locations in some cases. Otherwise I think all these wrappers do is pass the script onto the cmd interpreter anyway. So is there a difference between a cmd file packed in a silent SFX created by WinRAR or one of these specialist applications?

Posted

Hi guys,

I tell you why a 64bit compiler would be necessary. I am starting WPI from a batch file that checks for the existence of a network share and maps that share if it exists. Since it includes credentials I don´t want the script to be easily readable hence the conversion to an exe.

Now, the new WPI version 7.1 allows for 64bit processing, meaning, you can control if the 64bit cmd.exe/regedit.exe is being used on a 64bit system or the 32bit cmd.exe/regedit.exe. However, you need WPI to run with the 64bit mshta.exe in order for this to work.

You need this to silently add the serial numbers or configs etc. for an application via a "regedit /S reg.reg" command. If the application is 64bit it needs its registry settings in another place in the registry than a 32bit application on a 64bit system.

Now, the problem is: If WPI or any other application is started from a 32bit application, it will never be able to use the 64bit cmd.exe/regedit/mshta.exe. Even if you specify the correct path to the 64bit application, redirection will occur and the 32bit version of the program will be started.

It took me days to find out why WPI was always started with the 32bit mshta.exe. I finally figured that the reason for this was the 32bit compiled exe.

So on a 64bit system, in order to avoid folder redirection or registry redirection with your compiled scripts , you need a 64bit exe.

Bye,

Alex

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...