Jump to content
Xtreme .Net Talk

Convert File URL ("file:///C:/") to File Path ("C:\")


Recommended Posts

Posted
If the string will always start exactly like that you can simply crop the file:/// part off the start of the file using something like the SubString method. I believe .Net can function on path names that contain / the same as if it is a \ but if not you can use the strings Replace function to change them all over.
Anybody looking for a graduate programmer (Midlands, England)?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...