+DomHeknows Posted January 26, 2004 Share Posted January 26, 2004 I was bored this afternoon waiting for some tapes to restore so I decided to have a quick look at a way of working out which gpx file is which when they arrive from geocaching. Afterall 34489 doesn't mean much. I knocked up this quick batch file (works with w2k, xp) that is placed in the same directory that the gpx files are saved in from an email. A quick edit of the batch file (below) and then running the file will rename the 12345.gpx to something like cachesnearme-12345.gpx with the old cachesnearme-12345.gpx renamed to .old (and the .old file deleted if it exists). Everytime you do a new query just edit the batch file as appropriate and run it. For debugging purposes, drop to a dos prompt, change to the directory the batch file is in and type set echo=on and every line will be echoed to screen Type set pause=pause to pause between each gpx file process. Hope this makes sense and may be useful to people! @echo off setlocal echo %echo% rem ----------edit between these lines as appropriate call :movefiles 42168 found-42168 call :movefiles 39489 home-39489 call :movefiles 44001 rew-44001 call :movefiles 42567 bury-42567 call :movefiles 39985 bicester-39985 rem ----------edit between these lines as appropriate rem Finished processing - quit endlocal goto :eof :movefiles ::%1=filenamefromgeocaching ::%2=descriptivename if not exist %1.gpx goto :eof %pause% del %2.old.gpx move %2.gpx %2.old.gpx move %1.gpx %2.gpx echo %1 moved to %2.gpx goto :eof %pause% Link to comment
+Lil Devil Posted January 26, 2004 Share Posted January 26, 2004 I keep each GPX file in a separate directory. This makes it easier to run Spinner and Plucker and iSilo on them, without mixing files together unless I want them to (by putting multiple GPX files in the same directory). The directories are named based on the area. Link to comment
+Prime Suspect Posted January 26, 2004 Share Posted January 26, 2004 (edited) I have a little program that Pegasus Mail automatically calls whenever GPX mail arrives. It rebuilds the 7-bit encode data back into its original form, saves it as a file, renaming it to the name assigned to the PQ (which is extracted from the subject line) plus the date it was generated, and puts the file on the desktop after deleting the previous version. Pegasus then tags the mail as having been read, and moves it to a storage folder. Edited January 26, 2004 by Prime Suspect Link to comment
+The Leprechauns Posted January 26, 2004 Share Posted January 26, 2004 I have a little program that downloads the GPX file into Streets and Trips, maps out a route, transmits the route to the StreetPilot in my car, sends a remote signal to start my car, and then commands Streets and Trips to drive the route. I've logged over 500 finds without leaving my desk. Link to comment
+Prime Suspect Posted January 27, 2004 Share Posted January 27, 2004 Another tragic case of program envy. Link to comment
+DomHeknows Posted January 27, 2004 Author Share Posted January 27, 2004 I have a little program that downloads the GPX file into Streets and Trips, maps out a route, transmits the route to the StreetPilot in my car, sends a remote signal to start my car, and then commands Streets and Trips to drive the route. I've logged over 500 finds without leaving my desk. but does it make the coffee/tea/beverage of your choice ;-) Link to comment
Moun10Bike Posted January 29, 2004 Share Posted January 29, 2004 I am running Outlook. What is the easiest way to automate the saving of an attached file to a specified folder when a message arrives? I'd like to have this done automatically so that I can run my batch file for manipulating and converting my PQs without having manually save off all of my Pocket Queries from mail first. Link to comment
+GrizzlyJohn Posted January 29, 2004 Share Posted January 29, 2004 I've logged over 500 finds without leaving my desk. Yeah Ok, but did it sign the log and take something and leave something? Link to comment
+GrizzlyJohn Posted January 29, 2004 Share Posted January 29, 2004 I am running Outlook. What is the easiest way to automate the saving of an attached file to a specified folder when a message arrives? ... I have thought about doing some kind of the same thing I just have not gotten around to it. But you may want to start by looking under Tools | Rules and alerts ... in Outlook. I have not tried it but it looks like it pretty much walks you through the process of building the rule. Hope that helps or at least heads you in somewhat the correct direction. Link to comment
Moun10Bike Posted January 29, 2004 Share Posted January 29, 2004 But you may want to start by looking under Tools | Rules and alerts ... in Outlook. I have not tried it but it looks like it pretty much walks you through the process of building the rule. I gave that a look but didn't find an option to automatically save an attachment. I didn't look all that hard, though - I'll do so later tonight. Link to comment
Jeremy Posted January 29, 2004 Share Posted January 29, 2004 This application looks pretty cool. Actually it is preferable to all those attachments I have in my mail file. Link to comment
Jeremy Posted January 29, 2004 Share Posted January 29, 2004 Here's another one that is slightly cheaper. Link to comment
+fivegallon Posted January 29, 2004 Share Posted January 29, 2004 (edited) Here's another one that is slightly cheaper. And here's a freeby http://www.softcities.com/Outlook-Express-...ansfer/8043.htm There's seperate ones on this page for Outlook and Outlook Express Edit:OOPS,my bad for lack of testing.Where do i pay my "fine" for "jumping the gun"? Edited January 30, 2004 by fivegallon Link to comment
Jeremy Posted January 29, 2004 Share Posted January 29, 2004 My last link will actually let you create a rule that extracts (and even unzips) the attachment to a directory of your choice, then allows you to run an external application against the file you extracted. Seems like a better solution. Outlook comes default with a rule that can check for an attachment, but it doesn' allow you to save that attachment as part of the rules. If that were the case you could have another application monitor a particular directory and execute itself whenever something changes. Link to comment
Moun10Bike Posted January 30, 2004 Share Posted January 30, 2004 Cool - thanks for the links! It looks like it costs money to do what I want to do; I'll see if anyone at work knows a cheaper way, but might end up going with one of the software packages above. Link to comment
+DomHeknows Posted January 30, 2004 Author Share Posted January 30, 2004 (edited) you could probably write your own if you known visual basic (for applications) or look at http://www.outlookcode.com/ for some possible solutions to help you write it? Actually there is an article on the front page for doing this - see http://www.outlookcode.com/codedetail.aspx?id=70 for more info EDITED for more specific information Edited January 30, 2004 by DomHeknows Link to comment
Recommended Posts