Page 1 of 1

Prevent appearence of my batch file in TEMP folder

Posted: 29 Aug 2014 08:47
by hacker
Hi

I have wrote a program with batch file and I compile it with Quick Batch File Compiler software.
however, when I run my file, a sample of my file appears in the TEMP folder .
Now I would like to prevent appearance of my file in the TEMP folder.

Please help me in this regard.
thanks in advance.

Re: Prevent appearence of my batch file in TEMP folder

Posted: 29 Aug 2014 08:57
by foxidrive
That is how batch compilers work.

They create a temporary copy of the batch file, execute it and then delete it.

Re: Prevent appearence of my batch file in TEMP folder

Posted: 29 Aug 2014 09:07
by ShadowThief
You can add the line

Code: Select all

attrib +h +s %0


to the beginning of your script and

Code: Select all

attrib -h -s %0


to the end of your script.

Users will still be able to see the script if they can see hidden and system files, but most users don't have those two options enabled.

Re: Prevent appearence of my batch file in TEMP folder

Posted: 29 Aug 2014 10:33
by aGerman
There is no Batch "Compiler" at all. Batch is a scripting language that cannot be compiled. The way such software works is that it packs your Batch file into a container. To execute it you have to unpack it first.
The consequence of your requirement would be to learn a compilable programming language...

Regards
aGerman

Re: Prevent appearence of my batch file in TEMP folder

Posted: 29 Aug 2014 22:09
by ShadowThief
aGerman wrote:There is no Batch "Compiler" at all. Batch is a scripting language that cannot be compiled. The way such software works is that it packs your Batch file into a container. To execute it you have to unpack it first.
The consequence of your requirement would be to learn a compilable programming language...

Regards
aGerman

ExeScript Editor markets itself as more of a code obfuscator/self-executing wrapper.