Correct, I want to process the files no matter when they came in I just want to rename the extracted files so they have the date of the zip files.
Combining them would be ideal I just do not know how at this time. I have not tried system calls. I did think that if I could do a dir/b *.zip >...
I have a couple of scripts which for the most part work but I need to change it up a bit based on new requirments. Here is what is currently happening.
Get 80 zip files in named yyyymmdd-(location).zip
Unzip each zip to a folder based on location code in zip name.
Rename the files to include...
Here is what I came up with but it doesn't really work. The following script goes into each directory and renames the files with the date. Then it zips them with the date as the name. The issue is that it works fine if I only have one file in each directory which needs to be renamed. It craps...
I need some help with a script.
Here is the directory structure.
c:\ftp\2
3
4
5
etc....
In each of the folders 2,3,4,5,etc are files I need to zip up and name
to todays date. Below is what I have to zip but it only works if I but the AWK created exe and batch...
With your help and help from others I was able to get this working using the following scripts.
Batch file
@echo off
dir /b *.zip | awk -f c:\test\test.awk c:\test\list.txt - > }{.cmd
test.awk
BEGIN{
UnZipCommand1 = "c:\\progra~1\\winzip\\wzunzip.exe -e -s "
UnZipCommand2...
Making progress but have another question. In your post on 6 Mar 08 20:42 you reference making a file called location_system_mapping.txt. I created this file and added data. I don't think the awk script actually does anything with that file though. I deleted everything but one number in the txt...
Ran it the way you had it and get...
C:\tawk>awk -f unzip.awk list.txt listfile.txt
awk: error in unzip.awk line 6: function s undefined
awk: aborting due to compilation errors
I changed s to e for the heck of it just to make sure that was what was causing the issue and it was. Hopefully you...
Thanks again for helping out.
I do have a list of all locations mapped to the specified folder. This is a txt document like you suggested.
What is the listfile.txt in the first awk script?
When I ran your script without changing anything I recieved the following errors...
awk: error in...
Let's see if I can make it a little clearer.
For example the zip coming in is 20080305-1.zip this should be unzipped into a folder called 09087000. The 1 in the zip name is the location name. The folder 0987000 is a system folder which corresponds with the location name. This is the same for...
We recieve zip files in the following format...yyyymmdd-#.zip where #
starts at 1 and increments up to 79. I need to unzip these files into
seperate folders based on a specified folder name. Here is what I
have....
BEGIN{
timetab(z,time() - 86400)...
I have a NT 4.0 server which is a PDC. I have a new server with Server 2003 and AD. How do I demote the PDC to a member so I can move the new server over to the domain already created? As you all can probably tell I am new at this. I know there is software called UPromote but wanted to see if...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.