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.
Prevent appearence of my batch file in TEMP folder
Moderator: DosItHelp
Prevent appearence of my batch file in TEMP folder
Last edited by hacker on 30 Aug 2014 01:06, edited 3 times in total.
Re: Prevent appearence of my batch file in TEMP folder
That is how batch compilers work.
They create a temporary copy of the batch file, execute it and then delete it.
They create a temporary copy of the batch file, execute it and then delete it.
-
- Expert
- Posts: 1166
- Joined: 06 Sep 2013 21:28
- Location: Virginia, United States
Re: Prevent appearence of my batch file in TEMP folder
You can add the line
to the beginning of your script and
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.
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
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
The consequence of your requirement would be to learn a compilable programming language...
Regards
aGerman
-
- Expert
- Posts: 1166
- Joined: 06 Sep 2013 21:28
- Location: Virginia, United States
Re: Prevent appearence of my batch file in TEMP folder
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.