Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
Old 08-24-2007, 01:47 PM Simple Tool
Brian07002's Avatar
Defies a Status

Posts: 2,138
Name: ...
Location: ...
Trades: 0
need a tool just like txt2fil (http://hangvogel.hypermart.net/txt2fil/)

but that i can create a bunch of blank html files from a list of file names inside a txt file. Anyone know of a free tool? I know that the copy command could do it, but I need to have it look inside the txt file to get the names of the files to be created. Txt2fil does just that but it's cost so much.

Thank you
__________________
Made2Own

Please login or register to view this content. Registration is FREE
Brian07002 is online now
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-24-2007, 03:20 PM Re: Simple Tool
aatiis's Avatar
Skilled Talker

Posts: 53
Name: Attila Oláh
Location: Serbia
Trades: 0
Is Python ok?
Quote:
from sys import argv
file_in = file(argv[1], "r")
while 1:
try:
f = file(file_in.readline(), "w")
f.close()
except EOFError:
file_in.close()
break
Or if you (or your server) run under linux, you could use touch, it's faster.
Or perhaps i haven't understood your problem?
__________________

Please login or register to view this content. Registration is FREE
:: my web design blog
aatiis is offline
Reply With Quote
View Public Profile Visit aatiis's homepage!
 
Old 08-24-2007, 05:07 PM Re: Simple Tool
Brian07002's Avatar
Defies a Status

Posts: 2,138
Name: ...
Location: ...
Trades: 0
sorry, I can't use server side programming for this. Maybe an exe like what I posted?

This link is good, but it cost too much for my purpose.
Code:
http://hangvogel.hypermart.net/txt2fil/
Like that, but free please

Thank you
__________________
Made2Own

Please login or register to view this content. Registration is FREE
Brian07002 is online now
Reply With Quote
View Public Profile
 
Old 08-24-2007, 07:40 PM Re: Simple Tool
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
You can run python on windows too, you know...
http://python.org/download/windows/
__________________
Only a biker knows why a dog sticks his head out the window.
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Old 08-25-2007, 05:11 AM Re: Simple Tool
aatiis's Avatar
Skilled Talker

Posts: 53
Name: Attila Oláh
Location: Serbia
Trades: 0
And if you're not satisfied with python, use py2exe (it's free) to get an exe from the code. Or you could just write it in C or C++ and compile it with one of the free compilers for windows (if you're stuck in this OS), I don't get why aren't simple tools like that free...
__________________

Please login or register to view this content. Registration is FREE
:: my web design blog
aatiis is offline
Reply With Quote
View Public Profile Visit aatiis's homepage!
 
Old 08-25-2007, 07:58 AM Re: Simple Tool
Brian07002's Avatar
Defies a Status

Posts: 2,138
Name: ...
Location: ...
Trades: 0
Na, I am not trying to create an exe, I am trying to find a tool to do the process in exe format, another words, not a scripting tool but one like

Code:
http://hangvogel.hypermart.net/txt2fil/
That is an exe that will do the job, but I was looking for a freeware of that sort. Not Python.
__________________
Made2Own

Please login or register to view this content. Registration is FREE
Brian07002 is online now
Reply With Quote
View Public Profile
 
Old 08-25-2007, 11:07 AM Re: Simple Tool
aatiis's Avatar
Skilled Talker

Posts: 53
Name: Attila Oláh
Location: Serbia
Trades: 0
Sorry then, I just thought I could help you. Unfortunately, I am not aware of any freeware program like the one you have mentioned. If I understood you correctly, you are just creating empty files, in which case a simple script could do the job, if you were not on win, of course (and you were right, tripy, i knew about python for win). www.codeproject.com has a windows version of the GNU touch, and the guys at gnuwin32.sourceforge.net have a nice grep for windows. Perhaps combining these free tools with a .bat you could end up with an effective and fast solution. Anyway, hope this helped a bit.
__________________

Please login or register to view this content. Registration is FREE
:: my web design blog
aatiis is offline
Reply With Quote
View Public Profile Visit aatiis's homepage!
 
Old 08-26-2007, 09:27 AM Re: Simple Tool
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Ok, resurrected an old project and did a bit of reworking

HTMLCreate

Handles a file list formatted as;
CSV
Tab delimited
Quote delimited
CR delimited (new line for each entry)

Should handle newlines in *nix, Mac & Windows formats, although I've never tested this.

if the textfile entries have paths ( folder\subfolder\filename.ext ) they will be recreated.
I originally wrote it to recreate the structure of a website that was being recoded into .asp from .php and had to redirect about 900 pages without the benefit of a helpful host or .htaccess, so originally it wrote a file from a URL list with just the 301 redirect headers in the files.
Modified this version to just write 0 byte files.

It's a Windows installer .msi file so it will install the libraries needed and create the shortcuts and does a clean uninstall as well.
The installer creates a "samples" folder in the app folder with samples of the text file formats supported.

Done a bit of testing and didn't find anything odd happening but treat it as a RC version rather than Final build
tested on Win 2k and XP pro.

Filenames can be filtered by *.lst & *.list for its default. Haven't added associations and DDE handlers for these though.
you can filter on *.txt & *.csv as well

Any bugs/errors post here or PM
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 08-26-2007, 03:14 PM Re: Simple Tool
Brian07002's Avatar
Defies a Status

Posts: 2,138
Name: ...
Location: ...
Trades: 0
Chris, you have solutions for a lot of things, I appreciate your help for this one man!

Just what I was looking for!

Thanks a lot!
__________________
Made2Own

Please login or register to view this content. Registration is FREE
Brian07002 is online now
Reply With Quote
View Public Profile
 
Old 08-28-2007, 07:19 AM Re: Simple Tool
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Been around programming for quite a bit and an inveterate hoarder of long dead projects
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to Simple Tool
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.30820 seconds with 12 queries