Jump to content

Delete files using a list in txt


Recommended Posts

I've never pulled names out of a text file before. What I am trying to do is write a script that would pull the path\filename out of a txt file.

I already have them all in a text file. Then go down the list deleting them.

Like the list was

c:\documents and settings\bob\file1

c:\documents and settings\suzy\file2

c:\documents and settings\john\file4

etc...

you get the idea. Filedelete (next path and file in line)

Thanks

Link to comment
Share on other sites

I've never pulled names out of a text file before. What I am trying to do is write a script that would pull the path\filename out of a txt file.

I already have them all in a text file. Then go down the list deleting them.

Like the list was

c:\documents and settings\bob\file1

c:\documents and settings\suzy\file2

c:\documents and settings\john\file4

etc...

you get the idea. Filedelete (next path and file in line)

Thanks

_FileReadToArray() or FileReadLine()

:P

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Link to comment
Share on other sites

I've never pulled names out of a text file before. What I am trying to do is write a script that would pull the path\filename out of a txt file.

I already have them all in a text file. Then go down the list deleting them.

Like the list was

c:\documents and settings\bob\file1

c:\documents and settings\suzy\file2

c:\documents and settings\john\file4

etc...

you get the idea. Filedelete (next path and file in line)

Thanks

Is there a reason you can't use a .ini file? It would be much easier.

For those who are asking questions, look in the help file first. I'm tired of people asking stupid questions about how to do things when 10 seconds in the help file could solve their problem.[quote name='JRowe' date='24 January 2010 - 05:58 PM' timestamp='1264381100' post='766337'][quote name='beerman' date='24 January 2010 - 03:28 PM' timestamp='1264372082' post='766300']They already have a punishment system for abuse.[/quote]... and his his name is Valik.[/quote]www.minikori.com

Link to comment
Share on other sites

thanks for all the replies, how would an .ini file be easier?

<-- total newb

Reading an INI file is much easier as it is very organized. So when you state "I already have them all in a text file.". This is where you should be using an INI instead of a text file. Best part...you can find the INI functions in the help file!

Link to comment
Share on other sites

Reading an INI file is much easier as it is very organized. So when you state "I already have them all in a text file.". This is where you should be using an INI instead of a text file. Best part...you can find the INI functions in the help file!

umm, I like the Section part

Edited by Hotdogwater
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...