Tag Archives: gpx

30 years

In 1981 Micro-Soft introduced MS-DOS, their Disk Operating System or some such. With it a computer user could boot a PC or clone with an 8086 or 8088 microprocessor. Three of the (probably) most used commands that any kid who had ever sat down at one knew were DIR, CD and RENAME. DIR returned a list of files and directories residing in the current directory. CD stood for “change directory” and did exactly what its name implied. RENAME renames files. Pretty simple.

A GPX file is a file that contains XML-like markup. It’s plain old text, but formatted in a way that your GPS device or mapping software understands. For example, a file that contains directions from here to there might be named heretothere.gpx.

A few days ago I ran a script that turned a Google Maps route into some GPX markup, which I then copied and pasted into Notepad. Finally, I saved it. The little save dialog had automagically assigned a “.txt” extension in the file name box. Since I wanted a GPX file, and not TXT, I simply backspaced over it and gave it the name heretothere.gpx.

A quick transfer over USB to the GPS device quickly proved that my GPX file wasn’t really a GPX file. A cursory glance at the properties window for the file showed that Windows still saw it as a TXT file. Clicking the Advanced tab showed the file’s real name – heretothere.gpx.txt. WTF? Unsurprisingly, Windows 7 provides no means to alter this within the properties window. XP allowed this, but I could see no way to do it with 7.

I am still 100% convinced that I’ve missed something obvious, but I’m simply unwilling to go looking for it. I’m a user these days. I used to like to tinker with this stuff, but not anymore. After 16 plus years of using some sort of GUI, I’d like to think I’m capable of doing simple tasks with my computer without having to relearn how every time MS decides to pretend it’s releasing something new.

From the Start menu, I selected a command prompt. CD to the appropriate directory. DIR shows me heretothere.gpx.txt. RENAME heretothere.gpx.txt heretothere.gpx. DIR confirms the rename command was successful. Exit. Transfered the file to the GPS device again. I went about my merry way from here to there.

Welcome to 2011.  When a 30 year old command line is the way to get shit done.