1.

Solve : Help with bat2exe?

Answer»

Will someone please help me with bat2exe, i have no clue what to do with it.I ASSUME that you want to produce compiled versions of bat files

TRY bat2exe /? this would normally give a clue as to the usage

it is probably something like
bat2exe MyBatchName.bat

which will produce MyBatchName.exe

note that the dos commands it recognises will only be up to version 5 or 6, not the more recent enhancements

GrahamYou have to put bat2exe into the system32 folder.

There are better programs to convert .bat to exe's like...
-->http://www.brothersoft.com/file_disk_management/miscellaneous/bat_to_exe_converter_download_50301.html<--
Yes i know its in German but all you have to do is put the path of the batch file in the top bar and tick the right tickbox and click the right button to convert (i figured it out)Quote


You [highlight]have to [/highlight]put bat2exe into the system32 folder.


Why?

Because if you don't and you leave bat2exe on the desktop, you have to type C:\docume~1\%username%\desktop\bat2exe.com batchfile.bat

If you put it in system32 or where cmd.exe is, all you have to type is bat2exe.com batchfile.bat

The reason why I dont USE bat2exe is because it doesn't support many commands. it keeps saying 'syntax ERROR' or 'unrecognized command' and stuff like that.Quote

Because if you don't [highlight]and[/highlight] you leave bat2exe on the desktop, you have to type C:\docume~1\%username%\desktop\bat2exe.com batchfile.bat


The first time, you made it a blanket STATEMENT. Now it is conditional.
Just wanted to clear that up.

The statement, "You have to put bat2exe into the system32 folder.", is not good advice because it is not correct.


Btw, "you have to type C:\docume~1\%username%\desktop\bat2exe.com batchfile.bat" is not correct either.
Just navigate to that directory first.
Quote
You have to put bat2exe into the system32 folder.
another way is to set the PATH env variable to where bat2exe is installed. don't really have to put it in system32Quote
Because if you don't and you leave bat2exe on the desktop, you have to type C:\docume~1\%username%\desktop\bat2exe.com batchfile.bat
Can't you just drag the folder into the cmd.exe window, and the folder path will appear?
yea fine..that works too....Basically to use bat2exe, put it on your desktop, open command prompt and type %userprofile%\desktop\bat2exe.com batchfile.bat and press enter and it will work.Quote
Basically to use bat2exe, put it on your desktop, open command prompt and type %userprofile%\desktop\bat2exe.com batchfile.bat and press enter and it will work.


As time goes by, and you experiment with various programs, you'll find that your desktop gets cluttered.

I usually keep a directory just for playing around. Something like
c:\testing
Something like bat2exe would go in there, then when I open a 'dos' window it is quick and easy to cd to that directory.
I'd do my testing from that directory, and not have to fool around with long command lines and environment variables.
Much easier.

When I find a utility program that I like and wish to keep handy,
only then do I put it in my path.
I do not think it is wise to have a lot of directories in the path, let alone the operating system limits on the path length.
Having too many directories in the path just seems sort of sloppy to me, and eventually will yield some surprise results.

Therefore, I make one directory for utility programs, and put it in the path. You can search here on CH for path , and find good reading on it.
Something like bat2exe might find its way in there, assuming the program will behave properly when executed that way.
For example, I keep pkzip.exe, pkunzip.exe, some other archivers, list.com, and fdate.exe in my "utils" directory, which is in the path.
This kind of organization has served me well. It works, and files are not all over everywhere.

I hope this helps.




Discussion

No Comment Found