Lost Password?


Go Back   CodeCall Programming Forum > Software Development > Pascal/Delphi

Pascal/Delphi Forum for discussing Borland Delphi and Pascal coding techniques, tips and tricks.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-26-2008, 03:53 PM
SirStorm25 SirStorm25 is offline
Newbie
 
Join Date: Aug 2008
Posts: 8
Rep Power: 0
SirStorm25 is on a distinguished road
Default Small Question - Files and Folders!

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 08-29-2008, 11:11 AM
SirStorm25 SirStorm25 is offline
Newbie
 
Join Date: Aug 2008
Posts: 8
Rep Power: 0
SirStorm25 is on a distinguished road
Default Re: Small Question - Files and Folders!

Any ideas...???
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 08-31-2008, 02:29 AM
gogetax1 gogetax1 is offline
Newbie
 
Join Date: Aug 2008
Posts: 11
Rep Power: 0
gogetax1 is on a distinguished road
Send a message via MSN to gogetax1
Default Re: Small Question - Files and Folders!

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)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 08-31-2008, 04:23 PM
SirStorm25 SirStorm25 is offline
Newbie
 
Join Date: Aug 2008
Posts: 8
Rep Power: 0
SirStorm25 is on a distinguished road
Default Re: Small Question - Files and Folders!

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?

Regards
SirStorm25.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 09-03-2008, 11:48 PM
gogetax1 gogetax1 is offline
Newbie
 
Join Date: Aug 2008
Posts: 11
Rep Power: 0
gogetax1 is on a distinguished road
Send a message via MSN to gogetax1
Default Re: Small Question - Files and Folders!

im bearly understand what you want to do..
you want to open each file inside the folder and write into it a message?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows XP Tricks & Tips!!!!..new ones. pranky Tutorials 9 08-23-2008 04:22 PM
Sharing Files between computers TcM Computer Software/OS 3 04-15-2008 10:06 AM
Windows Shortcut List - Saves Time 2stamlers The Lounge 6 04-10-2008 07:58 AM
retrieve information about the files in a driver roxelana Computer Software/OS 0 03-05-2008 04:08 PM
How do I read .mbm (Multi BitMap) files? moondog General Programming 7 08-07-2007 08:08 AM


All times are GMT -5. The time now is 04:06 PM.

Contest Stats

WingedPanther ........ 2753.6
Xav ........ 2704
Brandon W ........ 1702.32
John ........ 1207.73
marwex89 ........ 1175.24
morefood2001 ........ 966.05
dcs ........ 655.75
Steve.L ........ 475.59
orjan ........ 418.58
Aereshaa ........ 383.54

Contest Rules

CodeCall Goal

Goal: 100,000 Posts
Complete: 98%

Ads