Advertisement

08.23.2005 at 02:39PM PDT, ID: 21537513
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

Using WZZIP in a batch file

Tags: wzzip
Hi,

Can you help?

I have a system with Windows NT 4.0 with Winzip 9 with command line add on installed. What I need to do:

1. Zip all the files in a directory and move to another directory.
2. Name this zip file in this format YYMMDD.zip - i.e. todays date backwards.
3. Delete zip files in the 2nd directory that are older than x days.

Also, NT doesn't have scheduled tasks. Is there another way of getting this to run every day?

Thanks,
Jeff
Start your free trial to view this solution
Question Stats
Zone: OS
Question Asked By: jobri5x
Solution Provided By: rindi
Participating Experts: 2
Solution Grade: A
Views: 180
Translate:
Loading Advertisement...
08.23.2005 at 07:55PM PDT, ID: 14739347

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
08.24.2005 at 12:19AM PDT, ID: 14740255

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
08.26.2005 at 09:59PM PDT, ID: 14766754

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
08.26.2005 at 10:32PM PDT, ID: 14766815

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
09.05.2005 at 08:23PM PDT, ID: 14826504

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
09.05.2005 at 10:44PM PDT, ID: 14826886

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
09.05.2005 at 10:45PM PDT, ID: 14826894

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
09.06.2005 at 01:27AM PDT, ID: 14827450

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
09.06.2005 at 11:02AM PDT, ID: 14831181

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
09.07.2005 at 01:02AM PDT, ID: 14834575

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
01.04.2006 at 08:39PM PST, ID: 15614925

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.26.2006 at 04:47PM PST, ID: 16051718

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
03.03.2006 at 05:55AM PST, ID: 16094236

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Loading Advertisement...
Microsoft
  • Internet Protocols
  • Applications
  • Development
  • OS
  • Hardware
  • Windows Security
Apple
  • Operating Systems
  • Hardware
  • Programming
  • Networking
  • Software
Internet
  • Search Engines
  • File Sharing
  • WebTrends / Stats
  • Spy / Ad Blockers
  • Web Browsers
  • New Net Users
  • Web Development
  • Chat / IM
  • Anti Spam
  • Web Servers
  • Anti-Virus
  • Email Clients
Gamers
  • Tips
  • Online / MMORPG
  • Puzzle
  • Emulators
  • Action / Adventure
  • Role Playing
  • Consoles
  • Game Programming
  • Strategy
  • Sports
  • Misc
  • Computer Games
Digital Living
  • Hardware
  • Automotive
  • New Net Users
  • New Users
  • Software
  • Digital Music
  • Gaming World
  • Home Security
  • Apple
  • Networking Hardware
Virus & Spyware
  • Vulnerabilities
  • IDS
  • Encryption
  • Anti-Virus
  • Operating Systems Security
  • Software Firewalls
  • WebApplications
  • Cell Phones
  • Operating Systems
  • Internet
  • Hardware Firewalls
Hardware
  • Displays / Monitors
  • Handhelds / PDAs
  • Components
  • Peripherals
  • Laptops/Notebooks
  • Servers
  • Misc
  • Apple
  • Embedded Hardware
  • Networking Hardware
  • Storage
  • Desktops
  • New Users
Software
  • System Utilities
  • Industry Specific
  • Network Management
  • Photos / Graphics
  • Page Layout
  • VMware
  • Misc
  • Web Development
  • OS
  • CYGWIN
  • Voice Recognition
  • Virtualization
  • Message Queue
  • Quality Assurance
  • Security
  • Firewalls
  • MultiMedia Applications
  • Development
  • Database
  • Office / Productivity
  • Business Management
  • OS/2 Apps
  • Server Software
  • Internet / Email
ITPro
  • OS
  • Storage
  • Encryption
  • Operating Systems Security
  • Apple Hardware
  • Laptops & Notebooks
  • Servers
  • Networking Hardware
  • Peripherals
  • Devices
  • Displays / Monitors
  • WebTrends / Stats
  • Search Engines
  • Firewalls
  • Web Computing
  • WebApplications
  • IDS
  • Vulnerabilities
  • Email Clients
  • File Sharing
  • Spy / Ad Blockers
  • Web Browsers
  • Web Servers
  • Networking
  • Anti-Virus
  • Consulting
  • Chat / IM
  • Anti Spam
Developer
  • Web Servers
  • Web Browsers
  • Game Programming
  • Dev Tools
  • Industry Specific
  • Office / Productivity
  • Database
  • CYGWIN
  • Web Development
  • Search Engines
  • File Sharing
  • WebTrends / Stats
  • Programming
  • Content Management
  • Application Servers
  • Protocols
Storage
  • Removable Backup Media
  • Storage Technology
  • Servers
  • Grid
  • Remote Access
  • Backup / Restore
  • Misc
  • Hard Drives
OS
  • Miscellaneous
  • Security
  • Development
  • Linux
  • VMware
  • MainFrame OS
  • Unix
  • Apple
  • OS / 2
  • AS / 400
  • BeOS
  • Microsoft
  • VMS / OpenVMS
Database
  • Oracle
  • Miscellaneous
  • MySQL
  • Software
  • Sybase
  • Contact Management
  • PostgreSQL
  • Data Manipulation
  • Clarion
  • InterSystems Cache
  • Siebel
  • MUMPS
  • OLAP
  • SQLBase
  • SAS
  • GIS & GPS
  • 4GL
  • Berkeley DB
  • DB2
  • Informix
  • Interbase / Firebird
  • FoxPro
  • Reporting
  • LDAP
  • Filemaker Pro
  • MS SQL Server
  • dBase
  • MS Access
Security
  • Misc
  • Web Browsers
  • Software Firewalls
  • Operating Systems Security
  • File Sharing
  • Spy / Ad Blockers
  • Vulnerabilities
  • WebApplications
  • IDS
  • Anti-Virus
  • Encryption
  • Anti Spam
  • Email Clients
  • VPN
  • Chat / IM
Programming
  • Editors IDEs
  • Installation
  • Handhelds / PDAs
  • Multimedia Programming
  • System / Kernel
  • Automation
  • Algorithms
  • Game
  • Signal Processing
  • Project Management
  • Open Source
  • Database
  • Misc
  • Languages
  • Processor Platforms
  • Theory
Web Development
  • Scripting
  • Blogs
  • Web Servers
  • Software
  • Search Engines
  • Web Graphics
  • Web Services
  • Images
  • Internet Marketing
  • Images and Photos
  • Components
  • Document Imaging
  • Web Languages/Standards
  • Illustration
  • WebApplications
  • Fonts
  • WebTrends / Stats
  • Authoring
  • Digital Camera Software
  • Miscellaneous
Networking
  • Protocols
  • Apple Networking
  • Network Management
  • Message Queue
  • Application Servers
  • Content Management
  • File Servers
  • Email Servers
  • Misc
  • Java Editors & IDEs
  • Wireless
  • Networking Hardware
  • Backup / Restore
  • System Utilities
  • ISPs & Hosting
  • Web Servers
  • Storage Technology
  • Removable Backup Media
  • Servers
  • Web Computing
  • Broadband
  • Grid
  • OS / 2
  • Novell Netware
  • Unix Networking
  • Windows Networking
  • Security
  • Telecommunications
  • Operating Systems
  • Linux Networking
Other
  • Lounge
  • Business Travel
  • Community Support
  • New Net Users
  • Philosophy / Religion
  • Math / Science
  • Miscellaneous
  • URLs
  • Expert Lounge
  • Politics
  • Puzzles / Riddles
  • Automotive
Community Support
  • Suggestions
  • New to EE
  • New Topics
  • CleanUp
  • Announcements
  • General
  • Feedback
  • Input
  • EE Bugs
 
08.23.2005 at 07:55PM PDT, ID: 14739347
I've figured out the 1st 2 steps:

1. Zip all the files in a directory and move to another directory.
2. Name this zip file in this format YYMMDD.zip - i.e. todays date backwards.

Need help on step 3....tried pbarrett's delold but I cannot get it to work on my system. Its got NT 4.0.
 
08.24.2005 at 12:19AM PDT, ID: 14740255
If I remember correctly, NT does have scheduled tasks, but this is a commandline tool. Open the command prompt and enter

at /?

and you should get a list of options for the "at" command.

you could use robocopy, part of the windows 2003 resource kit tools which should also work in NT, to move old files to a nonexesitent device, like nul.

http://www.microsoft.com/downloads/details.aspx?FamilyID=9d467a69-57ff-4ae7-96ee-b18c4790cffd&DisplayLang=en
 
08.26.2005 at 09:59PM PDT, ID: 14766754
Couldn't get robocopy to work on the machine. Also tried XXcopy, filename and delold. I've been breaking down pbarrette's delold code and I've found where the problem with this on my system:

for %%i in (*.*) do (
set FileName=%%i
echo %%i
REM %%~ti expands %i to date/time of file
call :PROCESSFILE %%~ti
)

NT doesn't recognise %%~ti. Any ideas what would work for NT?

Regards,
Jeff
 
08.26.2005 at 10:32PM PDT, ID: 14766815
What error do you get with robocopy? it should run on nt as far as I know (You might have to install the resource kit tools on a more modern OS first, but then you should be able to copy robocopy.exe to the nt box).
 
09.05.2005 at 08:23PM PDT, ID: 14826504
Hi,

Thanks for your help so far. Couldn't get robocopy to work, and in the end it doesn't matter because I wouldn't be able to load the resource kit onto our system. It would take months of red tape to get it approved.

I can do it with a batch file as it needs no software but I'm still at that problem:

NT doesn't recognise %%~ti. Any ideas what would work for NT? Need to expand the file so i can work with its date stamp.

My system has NT 4.0, SP3

Jeff
 
09.05.2005 at 10:44PM PDT, ID: 14826886
You don't need to install the complete resource kit. You probably can't install it on NT, but you could temporarily install it on an XP box, then just copy robocopy.exe and the robocopy.doc files to your NT box. When we had NT 100 years ago we also used robocopy, just an older version.
Accepted Solution
 
09.05.2005 at 10:45PM PDT, ID: 14826894
Hmmm, something else, as far as I know there is SP6, that could get your system to work with your current commands...
 
09.06.2005 at 01:27AM PDT, ID: 14827450
AFAIK %%~ti is XP or alike only
you have to use a new for loop and extract the date time from the file with
  dir %%i
 
09.06.2005 at 11:02AM PDT, ID: 14831181
Any idea how I'd do the 2nd for loop?
 
09.07.2005 at 01:02AM PDT, ID: 14834575
> .. idea how ..
for /F "skip=4 tokens=1,2" %x in ('dir your-filename') do @echo %x %y

it's just an idea (can't test), but I guess that you need to store it in a temporay file or call a second script, somehow (M$ is not designed for scripting, it's click&go)
Think you better install cygwin or SFU and use a true shell (at least something similar to it like bash in these packets;)
Assisted Solution
 
01.04.2006 at 08:39PM PST, ID: 15614925
jobri5x,
This question has been classified as abandoned.  I will make a recommendation to the moderators on its resolution in approximately one week.  I would appreciate any comments by the experts that would help me in making a recommendation.

It is assumed that any participant not responding to this request is no longer interested in its final disposition.

If the asker does not know how to close the question, the options are here:
http://www.experts-exchange.com/help.jsp#hs5

AndyITsupport
EE Cleanup Volunteer
 
02.26.2006 at 04:47PM PST, ID: 16051718
No comment has been added to this question in more than 21 days, so it is now classified as abandoned.

I will leave the following recommendation for this question in the Cleanup topic area:
   Split: rindi {http:#14826886} & ahoffmann {http:#14834575}

Any objections should be posted here in the next 4 days. After that time, the question will be closed.

Venabili
EE Cleanup Volunteer
 
03.03.2006 at 05:55AM PST, ID: 16094236
Forced accept.

DarthMod
Community Support Moderator
 
 
20080236-EE-VQP-29