Need to preserve slashes in URL variable

I am trying to make a link a little more fancy looking on my site so I thought I'd do the same thing by using a "Button".  It seems that when I use the "button" method to pass a path back to the control CFM, I lose my slashes.  Any thoughts on how to preserve the slashes in my path?

<cfset path = "C:\sharedfiles\mfg\qc">
<!--- Method 1 - Works --->
<a href="crmDocMgrMainControl.cfm?up=#path#">Move up one level</a>
<!--- Method 2 - DOES NOT Work --->
<input type="button" name="MoveUpOneLevel" value="Move up one level" class="ButtonBorder3" style="width:125px;" onClick="location.href='crmDocMgrMainControl.cfm?up=#path#'">

<!--- Results of Method 1 --->
url.up is C:\sharedfiles\mfg\qc

<!--- Results of Method 2 --->
url.up is C:sharedfilesmfgqc
sulzenerAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

wytcomCommented:
Try
<cfset path = "C:\\sharedfiles\\mfg\\qc">
0
sulzenerAuthor Commented:
I just loaded that variable for purposes of asking the question.  To do that would mess up my entire logic and would just have to leave it as is.  Is there a way to preserve the slashes?  Why are they being removed?
0
SidFishesCommented:
maybe try

#urlencodedformat(path)#'">
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
sulzenerAuthor Commented:
Thanks Sidfishes.  I knew there had to be a way!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Servers

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.