Discover a new way to find and share stories you'll loveā€¦ Learn about Reading Desk

Post Profile



Could not find a part of the path while doing a File Copy

If at all possible, never give your code the opportunity to fail. If there's any possibility at all that you can prevent an error condition from being raised, do it. try{ if (!string.IsNullOrEmpty(FileName)) { string newPath = System.IO.Path.Combine(FilePath,...
read more

share

How to Toggle String Case in .NET

Programming / Windows Development : CodeProject (3 years ago)

A whole lot less code and a lot easier to do.public static string ToggleCase(this string str){ if (string.IsNullOrEmpty(str)) return str; return string.Join("", (from i in str select (char.IsLetter(i) ?... Read Post

Shell Tools: Add copy URL, copy file name and more to Windows shell

Technology : Download Squad (6 years ago)

Filed under: Utilities, Windows, Freeware Tired of right-clicking on a file and selecting properties or rename in order to copy the file name to your clipboard? Shell Tools adds a Copy Filename feature to the Windows right-click con... Read Post

Updating a file in database

Programming / Windows Development : CodeProject (3 years ago)

I am trying to update, but i get the error: Incorrect syntax near ','.My code look like this:public void UpdateAnyFileToFileTable(string filePath) { string filename = Path.GetFileName(filePath); int id = file.GetUserID(); string... Read Post


Copyright © 2011 Regator, LLC