Hotdogwater Posted July 25, 2008 Share Posted July 25, 2008 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 More sharing options...
PsaltyDS Posted July 25, 2008 Share Posted July 25, 2008 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 wasc:\documents and settings\bob\file1c:\documents and settings\suzy\file2c:\documents and settings\john\file4etc...you get the idea. Filedelete (next path and file in line)Thanks_FileReadToArray() or FileReadLine() 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 More sharing options...
Minikori Posted July 25, 2008 Share Posted July 25, 2008 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 wasc:\documents and settings\bob\file1c:\documents and settings\suzy\file2c:\documents and settings\john\file4etc...you get the idea. Filedelete (next path and file in line)ThanksIs 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 More sharing options...
James Posted July 25, 2008 Share Posted July 25, 2008 Something like this? Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
Hotdogwater Posted July 25, 2008 Author Share Posted July 25, 2008 Is there a reason you can't use a .ini file? It would be much easier.thanks for all the replies, how would an .ini file be easier?<-- total newb Link to comment Share on other sites More sharing options...
DjDeep00 Posted July 25, 2008 Share Posted July 25, 2008 thanks for all the replies, how would an .ini file be easier?<-- total newbReading 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 More sharing options...
Hotdogwater Posted July 25, 2008 Author Share Posted July 25, 2008 (edited) 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 July 25, 2008 by Hotdogwater Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now