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 09-04-2006, 07:45 PM Urgent Request...
Banned

Posts: 61
Name: Oh, don't go there
Location: United States
Trades: 0
I have a folder with thousands of zipped up files, and each file needs their own file_id.diz description.

Here's the easiest way I can think of, but don't know what program will do it:

A program that will create file_id.diz description files and use the file name minus (without) the extension as the description and add that file_id.diz to the appropriate zip file...

Basically the program allows you to select all the files from a directory, and the program does the rest...

Hope you understand...
This will save me tons of time!

~JFrost
Frostydasnowman is offline
Reply With Quote
View Public Profile Visit Frostydasnowman's homepage!
 
 
Register now for full access!
Old 09-05-2006, 07:44 AM Re: Urgent Request...
Rufo's Avatar
Extreme Talker

Posts: 173
Trades: 0
Try something like this:

Code:
#!/usr/bin/perl

@f=split(/\n/,`ls -1`);
foreach(@f) {
  next unless(/\.zip$/i);
  `zip -jm "$_" file_id.diz`;
}
This assumes that the file_id.diz files already exist; you should make use of all your /<-r4d script kiddie packer skillz to add a routine to create them.

+Rufo
__________________

Please login or register to view this content. Registration is FREE

Last edited by Rufo; 09-05-2006 at 08:02 AM..
Rufo is offline
Reply With Quote
View Public Profile Visit Rufo's homepage!
 
Reply     « Reply to Urgent Request...
 

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.09653 seconds with 12 queries