+parm=$(echo $parm | sed -e 's/^\/\([a-zA-Z]\)\//\1:\//g')
+#echo parm now is $parm
+# turn the form that is /cygdrive/X into X:/.
+parm=$(echo $parm | sed -e 's/^\/cygdrive\/\([a-zA-Z]\)$/\1:\//g')
+#echo parm now is $parm
+# turn regular cygwin paths into msdos style paths for the drive letter.
+parm=$(echo $parm | sed -e 's/^\/cygdrive\/\([a-zA-Z]\)\//\1:\//g')
+#echo parm now is $parm