Jump to content


Check out our Community Blogs

Register and join over 40,000 other developers!


Recent Status Updates

View All Updates

Photo
- - - - -

Small Question - Files and Folders!


  • Please log in to reply
4 replies to this topic

#1 SirStorm25

SirStorm25

    CC Lurker

  • Just Joined
  • Pip
  • 9 posts

Posted 26 August 2008 - 11:53 AM

Hi All!
I was wondering if anyone knew the code for the things below:

1. The user puts a folder into a TEdit (C:\Folder1\), then clicks a button, the program then saves a list of all files and folders included in the folder to a file e.g C:\File1.txt.

2. The user specifies a file made with the above, then tyhe program deletes the files and folders listed in the file.

Hope you can help!!
Regards

SirStorm25.
  • 0

#2 SirStorm25

SirStorm25

    CC Lurker

  • Just Joined
  • Pip
  • 9 posts

Posted 29 August 2008 - 07:11 AM

Any ideas...???
  • 0

#3 gogetax1

gogetax1

    CC Newcomer

  • Member
  • PipPip
  • 16 posts

Posted 30 August 2008 - 10:29 PM

so all you need, is just to perform a checklist of all the files and folders on specificed path?

if thats what you meant. then the commands "FindFirst" and "FindNext" are for you.. just learn how to use in on the net.. (i dont remember my self) :P
  • 0

#4 SirStorm25

SirStorm25

    CC Lurker

  • Just Joined
  • Pip
  • 9 posts

Posted 31 August 2008 - 12:23 PM

Thanks for the reply!!! =D

So, If I got a list of files and folders from these functions,
would I somehow be able to save there full paths to a file
e.g through a string list?

If so, how would I open the file and delete the files listed?

:D Regards
SirStorm25.
  • 0

#5 gogetax1

gogetax1

    CC Newcomer

  • Member
  • PipPip
  • 16 posts

Posted 03 September 2008 - 07:48 PM

im bearly understand what you want to do..
you want to open each file inside the folder and write into it a message?
  • 0




Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download