Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
E

egottwald

@egottwald
About
Posts
6
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Acronyms and expressions -- give us your best!
    E egottwald

    LMGBTYOT - Let me get back to you on that was one of our standard replies when undergoing Software Process certification

    emilG "Dealing with failure is easy: Work hard to improve. Success is also easy to handle: You've solved the wrong problem. Work hard to improve." - Alan Perlis

    The Weird and The Wonderful business

  • Converting full path to URI
    E egottwald

    1. You're making it too simple. The string replace is trivial when the strings are known. In an app, they are both dynamic, and what I'm ideally looking for is something like: strSavedFileFullPath = GetSavedFileLocation() ' <<< This is not a problem If IsLocalShare(strSavedFileFullPath) Then ' <<< This is not a problem either strLinktoSend = ConvertFullPathToClickableLink(strSavedFileFullPath) End If I know how to code ConvertFullPathToClickableLink, but is there an API I can use instead? 2. I used D$ as an example...

    emilG "Dealing with failure is easy: Work hard to improve. Success is also easy to handle: You've solved the wrong problem. Work hard to improve." - Alan Perlis

    Visual Basic help code-review

  • Converting full path to URI
    E egottwald

    Nothing hard, once I have the string. For instance, if I have the following shares on my machine: D:\ with a share name of "D$" and: D:\MyPrivateDownloads\Tools\ABCtool\ with a share name of "ABCdownload" plus a bunch of other shares on the same drive, with the file stored in: D:\MyPrivateDownloads\Tools\ABCtool\Docs\UserManual\UsingABCinfo.pdf I want to send the following link: \\myMachineName\ABCdownload\Docs\UserManual\UsingABCinfo.pdf and not: \\myMachineName\D$\MyPrivateDownloads\Tools\ABCtool\Docs\UserManual\UsingABCinfo.pdf So, although it is not rocket science to accomplish this, I was wondering if there was an easy way of accomplishing it [via some framework class maybe].

    emilG "Dealing with failure is easy: Work hard to improve. Success is also easy to handle: You've solved the wrong problem. Work hard to improve." - Alan Perlis

    Visual Basic help code-review

  • Converting full path to URI
    E egottwald

    I'm writing a little app to save the clipboard to a file and then mail a link to it to selected recipients. For the saved file to be accessible by the recipients, I verify that the parent folder is shared. However, if the share is on a local drive, I have to convert the full path to something like: DriveID:\SomePath1\SharedFolderName\SomePath2\FileName.ext and then to: \\HostDNSname\ShareName\SomePath2\FileName.ext where ShareName is the provider name for: DriveID:\SomePath1\SharedFolderName and SharedFolderName is the 'deepest' level share - i.e., it accounts for the possibility of SomePath1 including higher level shared folders. I'm using the Win32_LogicalDisk ManagementClass and Win32_Share ManagementClass to obtain the info I need, but have not found an easy way to do the path conversion. Before I dig into the implementation, I thought I'd check to see whether anyone has attempted this and whether they found an easy way to do this. Comments would be appreciated...

    emilG "Dealing with failure is easy: Work hard to improve. Success is also easy to handle: You've solved the wrong problem. Work hard to improve." - Alan Perlis

    Visual Basic help code-review

  • Csv File Compare
    E egottwald

    Have you considered starting with an Open Source diff utility [like WinMerge - www.winmerge.org] or the sample diff tool on this site [www.codeproject.com/tools/difftool.asp]?

    Design and Architecture design question lounge

  • Is anyone else considering skipping the VS2008 generation?
    E egottwald

    Definitely jumping in [running the VPC version right now] if only for LINQ and the performance improvements...

    The Lounge csharp wpf help question learning
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups