Abyssmedia.com Forum Index Abyssmedia.com
Abyssmedia Support Forums
 
  FAQ    Search    Memberlist    Usergroups   Register 
  Profile    Log in to check your private messages    Log in 

EXE File crashes when attempting to clean temp files

 
Post new topic   Reply to topic    Abyssmedia.com Forum Index -> Quick Batch File Compiler
View previous topic :: View next topic  
Author Message
scrfix



Joined: 02 Jun 2009
Posts: 3

PostPosted: Wed Jun 03, 2009 1:30 am    Post subject: EXE File crashes when attempting to clean temp files Reply with quote

Hello,

a simple batch file conversion with this program is causing the exe to crash. I am wondering if you can help with this.

Code:

@echo off
rmdir %temp% /S /Q
echo succesfully removed temp directory
@pause


It starts to remove and then instead of the script pausing, it crashes and disappears.

I believe this is because QBFC must create a file in the temporary directory that is then removed by the command above however I cannot see a way of telling QBFC not to utilize that temp directory for temporary files.

Is there a way to get this to work?
Back to top
scrfix



Joined: 02 Jun 2009
Posts: 3

PostPosted: Thu Jun 04, 2009 3:47 pm    Post subject: Reply with quote

Okay,

I have figured this out. You can utilize:

del %temp%\* /F /S /Q

This will not crash the exe file.

Wayne Leiser, CTO
Spectacular Computer Repair
www.scrfix.com

Spectacular Computer Repair: Computer Repair, PC Repair, Home Networking
World Famous Gift Baskets: Gift Baskets, Corporate Gifts
Resources Mining Technologies: Water Treatment Coagulation, Water Recycling
Back to top
scrfix



Joined: 02 Jun 2009
Posts: 3

PostPosted: Thu Jun 04, 2009 5:20 pm    Post subject: Reply with quote

scrfix wrote:
Okay,

I have figured this out. You can utilize:
del %temp%\* /F /S /Q
This will not crash the exe file.

Wayne Leiser, CTO
Spectacular Computer Repair
www.scrfix.com

Spectacular Computer Repair: Computer Repair, PC Repair, Home Networking
World Famous Gift Baskets: Gift Baskets, Corporate Gifts
Resources Mining Technologies: Water Treatment Coagulation, Water Recycling


Okay I spoke to soon. I figured out why it crashes however. This program doesn't really encrypt anything per say.

It encrypts the shell of the program so that people cannot right click and get your code however when you run the program it recreates your bat file in the temp directory UNENCRYPTED therefore while the bat program is running, someone can come in and look at your source code in their temp directory. This is why my program keeps crashing because it deletes the bat file within the temp directory.

I hope all of these so called compilers do not work this way. Otherwise, it is useless to utilize them because they do not really encrypt anything.

In fact, the only thing I can see that it does other than change the name of your bat file is add this onto your bat file:

Code:

echo off
cls
echo -----------------------------------------------------------------
echo This file created with trial version of Quick Batch File Compiler.
echo Please REGISTER your copy to REMOVE this reminder.
echo Copyright 2002-2009 by Abyssmedia.com
echo Offical web-site: http://www.abyssmedia.com/quickbfc/
echo -----------------------------------------------------------------
pause
@shift


There is nothing at the end of the bat file to erase itself. Perhaps that is done in another file. There is a .tmp file that has the same name as the bat it creates.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Abyssmedia.com Forum Index -> Quick Batch File Compiler All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001-2011 phpBB Group