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 


[Request] Visual Basic 6 Help
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
NothingToShow
Grandmaster Cheater Supreme
Reputation: 0

Joined: 11 Jul 2007
Posts: 1579

PostPosted: Fri Nov 09, 2007 5:48 pm    Post subject: Reply with quote

Thanks for the help guys.
Now I need to know how to delete a folder? RemDir doesnt work, and Kill seems only to be for files. Any idea?
Something like
Kill ( App.Path & "\Test\" ) ' Gives runtime error 53 - File not found.
RemDir ( App.Path & "\Test\" ) ' Doesnt work

EDIT: RemDir doesnt work because the folder is non-writeable. or how you say it.
Back to top
View user's profile Send private message
Pseudo Xero
I post too much
Reputation: 0

Joined: 16 Feb 2007
Posts: 2607

PostPosted: Fri Nov 09, 2007 5:56 pm    Post subject: Reply with quote

Moller wrote:
Thanks for the help guys.
Now I need to know how to delete a folder? RemDir doesnt work, and Kill seems only to be for files. Any idea?
Something like
Kill ( App.Path & "\Test\" ) ' Gives runtime error 53 - File not found.
RemDir ( App.Path & "\Test\" ) ' Doesnt work

EDIT: RemDir doesnt work because the folder is non-writeable. or how you say it.

Code:
Kill("C:\Test\*.*")
RmDir("C:\Test")

_________________
haxory' wrote:
can't VB do anything??
windows is programmed using VB right? correct me if im wrong.

so all things in windows you have like the start menu is a windows form too.
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Fri Nov 09, 2007 6:03 pm    Post subject: Reply with quote

Moller wrote:
Thanks for the help guys.
Now I need to know how to delete a folder? RemDir doesnt work, and Kill seems only to be for files. Any idea?
Something like
Kill ( App.Path & "\Test\" ) ' Gives runtime error 53 - File not found.
RemDir ( App.Path & "\Test\" ) ' Doesnt work

EDIT: RemDir doesnt work because the folder is non-writeable. or how you say it.


You can use the script runtime library and the FSO (FileSystemObject) model to delete folders and other various file/folder functions.

To use it, first add the Microsoft Scripting Runtime to your project by going to:

Project -> References, and tick Microsoft Scripting Runtime

Next, an example to delete a folder, and everything in in:

Code:
Private Sub Command1_Click()
    Dim fso As New FileSystemObject
    fso.DeleteFolder App.Path & "\folder", True
    Set fso = Nothing
End Sub

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
NothingToShow
Grandmaster Cheater Supreme
Reputation: 0

Joined: 11 Jul 2007
Posts: 1579

PostPosted: Sat Nov 10, 2007 2:23 am    Post subject: Reply with quote

Oh thanks. Smile Ill try them both out!
EDIT: Only seemed to work with the one Wicaan told me.
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