Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. tcdrake

    rename files based on zip date

    I have two versions of awk. Tawk and Gawk. I get the CMD="dir /b *.zip" line. Can you walk me through what the rest of it does?
  2. tcdrake

    rename files based on zip date

    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 >...
  3. tcdrake

    rename files based on zip date

    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...
  4. tcdrake

    zip files in multiple directories

    Nevermind...rookie mistake. I forgot to add two brackets.
  5. tcdrake

    zip files in multiple directories

    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...
  6. tcdrake

    zip files in multiple directories

    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...
  7. tcdrake

    extract zips into correct folder

    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...
  8. tcdrake

    extract zips into correct folder

    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...
  9. tcdrake

    extract zips into correct folder

    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...
  10. tcdrake

    extract zips into correct folder

    I will work on what you just said. What about the list.txt you had in the first awk example. What is that?
  11. tcdrake

    extract zips into correct folder

    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...
  12. tcdrake

    extract zips into correct folder

    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...
  13. tcdrake

    extract zips into correct folder

    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)...
  14. tcdrake

    demote NT 4.0 PDC

    That is what I thought. Thanks for the responses.
  15. tcdrake

    demote NT 4.0 PDC

    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...
  16. tcdrake

    Name showing up in from not right.

    We have a user which when he sends out an email his name shows up fine in the from area. If he forwards an email his name is not right in the from area. It shows /o=ou=/cn=/cn= (with all appropriate spots filled in). He is the only one which has this issue. Can someone point me in the right...

Part and Inventory Search

Back
Top