Jump to content
Macro Express Forums

doolysw

Members
  • Posts

    7
  • Joined

  • Last visited

doolysw's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Yep, that's about 10,000 times simpler than what I was gonna do. Thanks I really like this program, but I have 0 programming experiance, and very limited experiance with doing anything but keyboard emulation scripts in Macro Express. Gonna take a while, but I'll eventually get the hang of it. So far this board has been an invaluable source of information.
  2. Ok, I think I figured it out. I name all of my sub-directories after the date they were created. One created today would be 10-3-2005. Then I wrote out two seperate scripts. On that converts the current date into a julian date. For example, today's date in julian date would be "2453646.5". Then it subtacts 31 from that, and then the second script converts it back into standard date which is 9-2-2005. Then I have the script delete the direcotry named 9-2-2005. The script will run at least daily, so it should always delete a directory when it turns 31 days old. The equation which I ripped off from this page, takes into account leap year and other variations. Also a word to any one using the equations on that page. The equation listed to convert the date to a julian number is wrong. Line C should read C= 2 +(A-B) Hope this helps some one else
  3. The creation date would be the best, but it would be possiable to name the folder the date, and have it read that if necessary.
  4. I've recently been trying to figure out how to have macro express check all the sub-directories under a directory, and delete all the ones with a creation date of 30 days or more. I've written my own macro to convert dates into julian dates, so that macro express can determine the differance in days, I just don't know how to get the program to determine the dates the sub-directories were created. Any one have any ideas?
  5. Wow, thanks man you rock! Now I wanna have the macro delete any directory, and all it's sub-directories under f:\archive that are over 30 days old. I'm archiving pictures from a motion sensing webcam, and I don't wanna keep any pics over 30 days old. I'm banging my head against it now, but any suggestions would be appreciated.
  6. I'm attempting to create a macro that will move files from one directory, and archive them in another directory. Every time the macro runs, I want it to create a directory named after the curent month/day/year/hour:min and then move all the files from the source directory into the newly created directory. The trouble that I'm having is that I'm using the create folder command like this Create Folder: "f:\archive\%N1%" All I get when that runs, is a directory named %N1% under the archive folder. The variable is not being replaced. Any idea how to make this work?
×
×
  • Create New...