<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Neal &#38; Associates &#187; xp</title>
	<atom:link href="http://blog.nealandassociates.co.uk/tag/xp/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.nealandassociates.co.uk</link>
	<description></description>
	<lastBuildDate>Thu, 01 Dec 2011 10:00:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>FileMaker Custom Function for File Path to @Dropbox</title>
		<link>http://blog.nealandassociates.co.uk/2010/09/20/filemaker-custom-function-for-formating-file-paths/</link>
		<comments>http://blog.nealandassociates.co.uk/2010/09/20/filemaker-custom-function-for-formating-file-paths/#comments</comments>
		<pubDate>Mon, 20 Sep 2010 11:00:20 +0000</pubDate>
		<dc:creator>Peter Neal</dc:creator>
				<category><![CDATA[Filemaker]]></category>
		<category><![CDATA[10.6]]></category>
		<category><![CDATA[64bit]]></category>
		<category><![CDATA[custom function]]></category>
		<category><![CDATA[dropbox]]></category>
		<category><![CDATA[file paths]]></category>
		<category><![CDATA[filemaker]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[troi]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[windows 7]]></category>
		<category><![CDATA[windows vista]]></category>
		<category><![CDATA[xp]]></category>

		<guid isPermaLink="false">http://blog.nealandassociates.co.uk/?p=688</guid>
		<description><![CDATA[From the second version of my first database (back in 2002) I have used my FileMaker databases to control the creation of a structured folder system to enable the efficient and uniform storing of structured data for each of the businesses I have worked with. Early on in my development of FileMaker systems I stumbled [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.nealandassociates.co.uk%2F2010%2F09%2F20%2Ffilemaker-custom-function-for-formating-file-paths%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.nealandassociates.co.uk%2F2010%2F09%2F20%2Ffilemaker-custom-function-for-formating-file-paths%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>From the second version of my first database (back in 2002) I have used my FileMaker databases to control the creation of a structured folder system to enable the efficient and uniform storing of structured data for each of the businesses I have worked with.</p>
<p>Early on in my development of FileMaker systems I stumbled across the fantastic plugins offered by <a href="http://www.troi.com/">Troi Automatisering</a>, in particular their <a href="http://www.troi.com/software/fileplugin.html">File Plugin</a>, now at version 5, which I will be creating this custom function to use.</p>
<p>This plugin enables me to create, with relative ease, a series of fields and scripts that allowed the automatic creation and opening of folders and files straight from the database. Relatively simple if you&#8217;re running FileMaker in a closed network, but it starts to get more complicated very quickly.</p>
<p>I&#8217;ve had the good fortune to design almost exclusively for Mac only networks (phew) although I have had to deal with mixed environments where my customers are still in transition from PCs to Macs so I&#8217;ve had to ensure that any system is compatible with both.</p>
<p><strong>The Preparation</strong></p>
<p><span style="text-decoration: underline;">Determining the Windows System Version:</span></p>
<p>Since the route to the Documents folder hasn&#8217;t ever changed in Mac OS X I don&#8217;t need to worry about the version used, however, this is not the case in Windows where there is a different file path to the &#8220;My Documents&#8221; folder on Windows XP and the new versions Vista and Windows 7.</p>
<p>So I need to use the <a href="http://www.filemaker.com/help/html/func_ref2.32.73.html#1031534">Get ( SystemVersion ) Function</a> to determine whether or not the user is using Windows XP or a newer version. According to the <a href="http://www.filemaker.com/help/">FileMaker help</a> the function returns the following information for Windows:</p>
<blockquote><p>5.1 for Windows XP SP2</p>
<p>6.0 for Windows Vista</p></blockquote>
<p>So I needed a test for which version of Windows is running. I did attempt to design my own custom function to determine this, but perhaps because I was unwell I wasted a good deal of time messing around with this before I came to my senses and looked at <a href="http://github.com/petrowsky/fmpfunctions/">Matt&#8217;s github page</a>.</p>
<p>His <a href="http://github.com/petrowsky/fmpfunctions/blob/master/os.versionName.fmfn">os.versionName</a> custom function (which I&#8217;ve renamed as os.versions) is a quick and easy solution to this problem, which can go well beyond my needs, but will achieve what I want by returning the name of the Mac or Windows OS running on the users system.</p>
<p>It returns a simple easy to interpret name from the Get ( SystemVersion ) so the 5.1 response from the function is returned as &#8220;Windows XP&#8221; or 6.0 is returned as &#8220;Windows Vista&#8221;.</p>
<p><span style="text-decoration: underline;">Dealing with Windows Folder Path Separators:</span></p>
<p>Windows file paths use the &#8220;\&#8221; separator. For some reason you can&#8217;t easily use these in FileMaker calculations (if someone knows why please let me know in the comments). So I&#8217;ve taken the easy step of creation of new global variable $$windowsnetworksymbol to contain the &#8220;\&#8221; separator.</p>
<p>n.b. To ensure this variable is set each time the FileMaker file is launched I&#8217;ve added it to a script called &#8220;Set Global Variables&#8221;, which I run as part of my start-up script.</p>
<p><span style="text-decoration: underline;">Dealing with Mac Folder Path Separators</span><strong><br />
</strong></p>
<p>Mac file paths used by the plugin are formatted with the &#8220;:&#8221; separator. The only other thing you need to worry about is that a file path starts without any separator.</p>
<p><strong><a href="http://www.filemaker.com/help/html/func_ref2.32.22.html">Get (DocumentsPath) Function</a><br />
</strong></p>
<p>It is the product of this function that we have been working towards editing. The basic idea is to be able to call the Get ( DocumentsPath ) Function and then edit it&#8217;s product to point instead to the location of the Dropbox folder (assuming it is installed in the default location).</p>
<p>The Get ( DocumentsPath ) Function will return the following:</p>
<blockquote><p><a name="1046490">\C:\Documents and Settings\YourUserName\My Documents\</a> in <strong>Windows XP</strong><a name="1047897"></a></p>
<p><a name="1047897">\C:\Users\Your User Name\Documents\ </a><strong>in</strong><strong> Vista or Windows 7</strong></p>
<div><a name="1046491">/MacintoshHD/Users/Your User Name/Documents/</a> <strong>in</strong> <strong>Mac OS X<br />
</strong></div>
</blockquote>
<p>And we know from my earlier blog post: <a href="http://blog.nealandassociates.co.uk/2010/09/18/default-dropbox-file-paths/">Default @Dropbox File Paths</a> that the default file paths for Dropbox are:</p>
<blockquote><p><tt>\C:\Documents and Settings\YourUserName\My Documents\My Dropbox\ <strong>in Windows XP</strong><br />
</tt></p>
<p><tt>\C:\Users\YourUserName\Documents\Dropbox\ </tt><strong>in Vista or Windows 7</strong></p>
<p>/Macintosh HD/Users/YourUserName/Dropbox/ in <strong>Mac OS X</strong></p></blockquote>
<p>So now we have all the building blocks in place it&#8217;s time to construct our custom function:</p>
<p><strong>The path.dropbox Function<br />
</strong></p>
<p>The function itself is relatively simple once we have done the above preparation. It has no parameters and is made up of a simple Case Statement which asks two questions:</p>
<p style="padding-left: 30px;">1. Is the user running a version of Windows XP?</p>
<p style="padding-left: 30px;">2. Is the user running either Windows Vista or Windows 7?</p>
<p>If both these questions are negative we will assume that the use is running Mac OS X.</p>
<p>Once we have determined which OS the user is using we will then grab the documents file path using the Get ( DocumentsPath ) Function and then reformat it to be compatible with the Troi File Plugin.</p>
<p><span style="text-decoration: underline;">Formatting for Windows</span></p>
<p>We use the Replace Function to make this assessment:</p>
<blockquote><p>Replace ( Get ( DocumentsPath ); 1; 3; &#8220;&#8221; )</p></blockquote>
<p>This will replace the &#8220;\C:&#8221; part of the resulting Get ( DocumentsPath ) with simply &#8220;&#8221;.</p>
<p>We encase this Replace Function within a Substitute Function so that we can substitute the &#8220;/&#8221; separator for the &#8220;\&#8221; separator contained within our $$windowsnetworksymbol and get a properly formatted Windows file path for the Troi Plugin. So we get:</p>
<blockquote><p>Substitute ((Replace (Get(DocumentsPath); 1; 3; &#8220;&#8221;)); ["/"; $$windowsnetworksymbol])</p></blockquote>
<p>With both Windows File Paths to the Dropbox we then simply need to append the correct location which we can easily do by adding:</p>
<blockquote><p>&amp; &#8220;My Dropbox&#8221; &amp; $$windowsnetworksymbol <tt><strong>in Windows XP</strong></tt></p>
<p>&amp; &#8220;Dropbox&#8221; &amp; $$windowsnetworksymbol <strong>in Vista or Windows 7</strong></p></blockquote>
<p><span style="text-decoration: underline;">Formatting for Mac</span></p>
<p>We again use <a href="http://www.filemaker.com/help/html/func_ref3.33.77.html#1031453">Replace Function</a> to remove the leading &#8220;/&#8221; and as before encase this within a <a href="http://www.filemaker.com/help/html/func_ref3.33.84.html#1031764">Substitute Function</a> so that we can substitute the &#8220;/&#8221; separator for the &#8220;:&#8221; separator. So we get:</p>
<blockquote><p>Substitute ((Replace (Get(DocumentsPath); 1; 1; &#8220;&#8221;)); ["/"; ":"]; ["Documents:"; ""])</p></blockquote>
<p>As you&#8217;ll notice we have also added to the Substitute Function a statement to replace the &#8220;Documents:&#8221;, which will strip back the Mac File Path to the User so we can then append:</p>
<blockquote><p>&amp; &#8220;Dropbox&#8221; &amp; &#8220;:&#8221;</p></blockquote>
<p>which will get us to the default location for the Dropbox on the Mac.</p>
<p><span style="text-decoration: underline;">The Final Function:</span></p>
<blockquote><p>Case (</p>
<p>os.version = &#8220;Windows XP 64-Bit&#8221; or &#8220;Windows XP&#8221;; Substitute ((Replace (Get(DocumentsPath); 1; 3; &#8220;&#8221;)); ["/"; $$windowsnetworksymbol]) &amp; &#8220;My Dropbox&#8221; &amp; $$windowsnetworksymbol;<br />
os.version = &#8220;Windows 7&#8243; or &#8220;Windows Vista&#8221;; Substitute ((Replace (Get(DocumentsPath); 1; 3; &#8220;&#8221;)); ["/"; $$windowsnetworksymbol]) &amp; &#8220;Dropbox&#8221; &amp; $$windowsnetworksymbol;<br />
Substitute ((Replace (Get(DocumentsPath); 1; 1; &#8220;&#8221;)); ["/"; ":"]; ["Documents:"; ""]) &amp; &#8220;Dropbox&#8221; &amp; &#8220;:&#8221;</p>
<p>)</p></blockquote>
<p>Please note that I have not yet had the opportunity to test this on a Windows system, but I&#8217;ve followed paths that worked in the past. As soon as I have had the opportunity to test it I will post any corrections here.</p>
<div class="shr-publisher-688"></div>]]></content:encoded>
			<wfw:commentRss>http://blog.nealandassociates.co.uk/2010/09/20/filemaker-custom-function-for-formating-file-paths/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Default @Dropbox File Paths</title>
		<link>http://blog.nealandassociates.co.uk/2010/09/18/default-dropbox-file-paths/</link>
		<comments>http://blog.nealandassociates.co.uk/2010/09/18/default-dropbox-file-paths/#comments</comments>
		<pubDate>Sat, 18 Sep 2010 12:35:05 +0000</pubDate>
		<dc:creator>Peter Neal</dc:creator>
				<category><![CDATA[Help]]></category>
		<category><![CDATA[10.6]]></category>
		<category><![CDATA[custom function]]></category>
		<category><![CDATA[dropbox]]></category>
		<category><![CDATA[file paths]]></category>
		<category><![CDATA[filemaker]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[vista]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[windows 7]]></category>
		<category><![CDATA[xp]]></category>

		<guid isPermaLink="false">http://blog.nealandassociates.co.uk/?p=679</guid>
		<description><![CDATA[So I needed to know the default file paths for dropbox on the Mac and different versions of Windows for a Filemaker Custom Function I&#8217;m building and couldn&#8217;t find a simple listing anywhere on the internet so if you&#8217;re interested here they are: Default Dropbox location on Mac OS X: Macintosh HD/Users/YourUserName/Dropbox/ or more quickly [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.nealandassociates.co.uk%2F2010%2F09%2F18%2Fdefault-dropbox-file-paths%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.nealandassociates.co.uk%2F2010%2F09%2F18%2Fdefault-dropbox-file-paths%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>So I needed to know the default file paths for dropbox on the Mac and different versions of Windows for a Filemaker Custom Function I&#8217;m building and couldn&#8217;t find a simple listing anywhere on the internet so if you&#8217;re interested here they are:</p>
<p><strong>Default Dropbox location on Mac</strong> <strong>OS X</strong>:</p>
<p>Macintosh HD/Users/YourUserName/Dropbox/ or more quickly ~/Dropbox</p>
<p><strong>Default Dropbox location on Windows XP</strong>:</p>
<p><tt>C:\Documents and Settings\YourUserName\My Documents\My Dropbox\</tt></p>
<p><strong>Default Dropbox location on Windows Vista &amp; 7</strong>:</p>
<p><tt>C:\Users\YourUserName\Documents\Dropbox\</tt></p>
<p><strong>Source</strong></p>
<p>I found these from the otherwise helpful dropbox Wiki. Check it our <a href="http://wiki.dropbox.com/TipsAndTricks/SyncOtherFolders?highlight=%28file%29|%28path%29">here</a>.</p>
<div class="shr-publisher-679"></div>]]></content:encoded>
			<wfw:commentRss>http://blog.nealandassociates.co.uk/2010/09/18/default-dropbox-file-paths/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Sorted Menus in Windows XP</title>
		<link>http://blog.nealandassociates.co.uk/2010/07/16/sorted-menus-in-windows-xp/</link>
		<comments>http://blog.nealandassociates.co.uk/2010/07/16/sorted-menus-in-windows-xp/#comments</comments>
		<pubDate>Fri, 16 Jul 2010 22:27:16 +0000</pubDate>
		<dc:creator>Peter Neal</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[customisation]]></category>
		<category><![CDATA[ocd]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[xp]]></category>

		<guid isPermaLink="false">http://blog.nealandassociates.co.uk/?p=465</guid>
		<description><![CDATA[So I&#8217;ve been doing a little more work with Windows XP than I usually do and it&#8217;s reminding me of all those small irritations that come with Microsoft products. The system itself might well be robust enough, but its details that they don&#8217;t seem to have an eye for, one of those that particularly irritates [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.nealandassociates.co.uk%2F2010%2F07%2F16%2Fsorted-menus-in-windows-xp%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.nealandassociates.co.uk%2F2010%2F07%2F16%2Fsorted-menus-in-windows-xp%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>So I&#8217;ve been doing a little more work with Windows XP than I usually do <img src='http://blog.nealandassociates.co.uk/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' />  and it&#8217;s reminding me of all those small irritations that come with Microsoft products.</p>
<p>The system itself might well be robust enough, but its details that they don&#8217;t seem to have an eye for, one of those that particularly irritates me is that the &#8220;All Programs&#8221; menu isn&#8217;t alphabetically ordered.</p>
<p>So whilst I was waiting for a program to install off it was to google, where I found that this is relatively easy to correct (although it&#8217;s not sticky, so it needs repeating each time you add a program).</p>
<p>So for all those <a href="http://en.wikipedia.org/wiki/Obsessive–compulsive_disorder">OCD</a> suffers out there driven mad by this, here is the solution:</p>
<ul>
<li>Press the &#8220;Start&#8221; Button</li>
<li>Select &#8220;All Programs&#8221; and navigate anywhere into the list</li>
<li>Right Click the mouse and select &#8220;Sort by Name&#8221;.</li>
</ul>
<p>And you&#8217;re done!</p>
<p>To see where I found this and additional tweaks click <a href="http://vlaurie.com/computers2/Articles/startmenu.htm">here</a>.</p>
<div class="shr-publisher-465"></div>]]></content:encoded>
			<wfw:commentRss>http://blog.nealandassociates.co.uk/2010/07/16/sorted-menus-in-windows-xp/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Dropboxing my way out of a crisis</title>
		<link>http://blog.nealandassociates.co.uk/2009/10/15/dropboxing-my-way-out-of-a-crisis/</link>
		<comments>http://blog.nealandassociates.co.uk/2009/10/15/dropboxing-my-way-out-of-a-crisis/#comments</comments>
		<pubDate>Thu, 15 Oct 2009 11:00:37 +0000</pubDate>
		<dc:creator>Peter Neal</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[barclays]]></category>
		<category><![CDATA[disaster recovery]]></category>
		<category><![CDATA[dropbox]]></category>
		<category><![CDATA[isure]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[sync]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[xp]]></category>

		<guid isPermaLink="false">http://blog.nealandassociates.co.uk/?p=101</guid>
		<description><![CDATA[How dropbox saved my ass..]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.nealandassociates.co.uk%2F2009%2F10%2F15%2Fdropboxing-my-way-out-of-a-crisis%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.nealandassociates.co.uk%2F2009%2F10%2F15%2Fdropboxing-my-way-out-of-a-crisis%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>So in my previous posting <a href="http://blog.nealandassociates.co.uk/2009/10/15/poking-a-hornets-nest/">&#8220;Poking a hornets nest&#8221;</a> I had to deal with a dead XP box at a clients. Fortunately for me I had moved the company files over to <a href="https://www.getdropbox.com/referrals/NTI3Mjg3NDk">dropbox</a> a couple of weeks prior. So when this computer went down I knew not only did I have copies of their files independently on two other computers I had a copy too.</p>
<p>After a comprehensive check of the other PC in the office I established that the virus had not spread, I have to say I did have some concerns that dropbox might make such a spread easier, but fortunately for the moment virus writers haven&#8217;t seemed to cottoned on to this method of transferring viruses! Phew. But I think that this is something they had perhaps better consider as a potential risk in the future.</p>
<p>One of the reasons I spent so much time in attempting to restore this PC rather than wiping and starting again was the accounts files for the company were stored on it and we had been using a service provided to the company for the last couple of years by Barclays Bank called <a href="https://www.i-sure.com/">iSure</a>, though Barclays had sold them an unlimited account, it&#8217;s primary purpose was to backup the accounts files.</p>
<p>Not only was there limited documentation in their business subscription pack telling you what to do when a disaster, like the one we were experiencing, happened, an hour or two worth of phone calls to their support line (where I had to give limited security information (it would be very easy to fake)) I managed to log onto their site and find the files we needed.</p>
<p>Unfortunately although the computer was left on 24/7 so that backups could run twice daily and it had gone down on a Friday morning, the most recent copy of the accounts they had was from the three days earlier. So to save having the work done that week have to be repeated, as well as the lost days, I had to recover the data from the hard drive that had been affected.</p>
<p>If we had been relying on this to backup the company&#8217;s main set of files, some 30,000 files or so they would all have had to have been checked for validity. And though files might not be changed on a daily basis we would have needed to check just to be sure. Though I had to rescue the account files, with the others once my re-install was complete I just added the new computer and hey presto the files downloaded. Genius.</p>
<div class="shr-publisher-101"></div>]]></content:encoded>
			<wfw:commentRss>http://blog.nealandassociates.co.uk/2009/10/15/dropboxing-my-way-out-of-a-crisis/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
