Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[DELPHI]How do I delete a file?
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
appalsap
Moderator
Reputation: 0

Joined: 27 Apr 2006
Posts: 6753
Location: Pakistan

PostPosted: Thu Jun 07, 2007 8:06 am    Post subject: Reply with quote

zomgiownyou, he's doing delphi where a) you don't need to escape \ strings and b) you use single quotes instead of double
Back to top
View user's profile Send private message
oib111
I post too much
Reputation: 0

Joined: 02 Apr 2007
Posts: 2947
Location: you wanna know why?

PostPosted: Thu Jun 07, 2007 8:08 am    Post subject: Reply with quote

So thats right appalsap, my thing is right?
_________________


8D wrote:

cigs dont make people high, which weed does, which causes them to do bad stuff. like killing
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
appalsap
Moderator
Reputation: 0

Joined: 27 Apr 2006
Posts: 6753
Location: Pakistan

PostPosted: Thu Jun 07, 2007 8:10 am    Post subject: Reply with quote

no!

Code:

DeleteFile('c:\h4x.exe');


can't believe how hard that is.
Back to top
View user's profile Send private message
oib111
I post too much
Reputation: 0

Joined: 02 Apr 2007
Posts: 2947
Location: you wanna know why?

PostPosted: Thu Jun 07, 2007 3:12 pm    Post subject: Reply with quote

me got you now!

Code:

DeleteFile('C:\Program Files\Wizet\MapleStory\MapleStory.exe')

_________________


8D wrote:

cigs dont make people high, which weed does, which causes them to do bad stuff. like killing
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
UnLmtD
Grandmaster Cheater
Reputation: 0

Joined: 13 Mar 2007
Posts: 894
Location: Canada

PostPosted: Thu Jun 07, 2007 3:21 pm    Post subject: Reply with quote

Yeah, 1 problem: not everyone installs to the same path, do not hardcode a path

Solution: Use the registry to find the path. Its located in HKEY_LOCAL_MACHINE\\SOFTWARE\\Wizet\\MapleStory in ExecPath

Since you code in Delphi, appalsap posted this http://forum.cheatengine.org/viewtopic.php?t=56957
You should have no problem implanting it.

_________________
Back to top
View user's profile Send private message
oib111
I post too much
Reputation: 0

Joined: 02 Apr 2007
Posts: 2947
Location: you wanna know why?

PostPosted: Thu Jun 07, 2007 3:30 pm    Post subject: Reply with quote

I know, but that was an example.
_________________


8D wrote:

cigs dont make people high, which weed does, which causes them to do bad stuff. like killing
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
DeltaFlyer
Grandmaster Cheater
Reputation: 0

Joined: 22 Jul 2006
Posts: 666

PostPosted: Thu Jun 07, 2007 3:39 pm    Post subject: Reply with quote

oib111 wrote:
I know, but that was an example.

uh, appalsap already posted the example. All you did was change the text inside...

_________________

Wow.... still working at 827... what's INCA thinking?
zomg l33t hax at this place (IE only). Over 150 people have used it, what are YOU waiting for?
Back to top
View user's profile Send private message
oib111
I post too much
Reputation: 0

Joined: 02 Apr 2007
Posts: 2947
Location: you wanna know why?

PostPosted: Thu Jun 07, 2007 3:53 pm    Post subject: Reply with quote

omg, you are dumb.

[quote=oib111]me got you now!

Code:

DeleteFile('C:\Program Files\Wizet\MapleStory\MapleStory.exe')

[/quote]

I put that, I wasn't saying that was an example. I was saying that was an example of deleting something.

_________________


8D wrote:

cigs dont make people high, which weed does, which causes them to do bad stuff. like killing
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
DeltaFlyer
Grandmaster Cheater
Reputation: 0

Joined: 22 Jul 2006
Posts: 666

PostPosted: Thu Jun 07, 2007 4:26 pm    Post subject: Reply with quote

oib111 wrote:
omg, you are dumb.

[quote=oib111]me got you now!

Code:

DeleteFile('C:\Program Files\Wizet\MapleStory\MapleStory.exe')



I put that, I wasn't saying that was an example. I was saying that was an example of deleting something.

oib111 wrote:
I know, but that was an example.

Also, please learn to use the simple quote tag before you start to question someone else's intellect.

_________________

Wow.... still working at 827... what's INCA thinking?
zomg l33t hax at this place (IE only). Over 150 people have used it, what are YOU waiting for?
Back to top
View user's profile Send private message
Uzeil
Moderator
Reputation: 6

Joined: 21 Oct 2006
Posts: 2411

PostPosted: Thu Jun 07, 2007 6:38 pm    Post subject: Reply with quote

appalsap wrote:
Code:
DeleteFile('c:\h4x.exe');


can't believe how hard that is.


BOO! C'mon appal, what happened to your error-obsessive nature!

Code:
if not DeleteFile('c:\irox.exe') then
  showmessage('DeleteFile() Failed!  Error Code '+IntToStr(GetLastError));

_________________


Mini Engine v3.0
Mipla v1.0

Reposted old threads out of the MS section.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites