[{"data":1,"prerenderedAt":225},["ShallowReactive",2],{"article-how-to-delete-a-file-in-windows-with-a-too-long-filename":3},{"article":4,"tags":57,"previous":72,"next":119},{"id":5,"title":6,"author":7,"body":8,"createdAt":46,"description":47,"extension":48,"img":39,"meta":49,"navigation":50,"path":51,"seo":52,"stem":53,"tags":54,"updatedAt":46,"__hash__":56},"articles\u002Farticles\u002Fhow-to-delete-a-file-in-windows-with-a-too-long-filename.md","How to delete a file in Windows with a too long filename?","[object Object]",{"type":9,"value":10,"toc":42},"minimark",[11,15,18,21,24,27],[12,13,14],"p",{},"I came across a situation where I had to remove all files at this location C:\\Users{username}\\AppData\\Local\\Temp.",[12,16,17],{},"I was able to delete most of the files however I came across a Windows error stating that one or more files had a file name too long to be removed. I tried a number of approaches (not to be stated here) however the resolution was to use RoboCopy.",[12,19,20],{},"I created a local directory c:\\temp\\empty_dir with nothing in it.\nI then used the following RoboCopy command to mirror that empty directory with the problematic directory.",[12,22,23],{},"robocopy c:\\temp\\empty_dir C:\\Users{username}\\AppData\\Local\\Temp \u002Fs \u002Fmir",[12,25,26],{},"This works because robocopy internally uses the Unicode-aware versions of Win32 functions, with the \\?\\ prefix for file paths; those functions have a limit of 2¹⁶-1 (32,767) characters instead of 259",[12,28,29],{},[30,31,33],"a",{"href":32},"\u002Farticles\u002Fimages\u002Fwindows-live-writer-1da1028d1d1d_11da4-robo_2.jpg",[34,35],"img",{"title":36,"style":37,"border":38,"alt":36,"src":39,"width":40,"height":41},"robo","border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; display: inline; padding-right: 0px",0,"\u002Farticles\u002Fimages\u002Fwindows-live-writer-1da1028d1d1d_11da4-robo_thumb.jpg",240,89,{"title":43,"searchDepth":44,"depth":44,"links":45},"",2,[],"2010-01-27T13:25:31.2700000-05:00","Long file names within windows continues to be trouble and difficult to manage.","md",{},true,"\u002Farticles\u002Fhow-to-delete-a-file-in-windows-with-a-too-long-filename",{"title":6,"description":47},"articles\u002Fhow-to-delete-a-file-in-windows-with-a-too-long-filename",[55],"tools","U1_lv-0K6POEbvXcYmd2Tf8OYYciO6OT3p9TZrcrlQY",[58],{"id":59,"title":60,"body":61,"description":65,"extension":48,"img":66,"meta":67,"name":55,"navigation":50,"path":68,"seo":69,"stem":70,"__hash__":71},"tags\u002Ftags\u002Ftools.md","Tools",{"type":9,"value":62,"toc":63},[],{"title":43,"searchDepth":44,"depth":44,"links":64},[],"Any sort of tip, script or function to make your job easier","https:\u002F\u002Fimages.unsplash.com\u002Fphoto-1598313183973-4effcded8d5e?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=675&q=80",{},"\u002Ftags\u002Ftools",{"description":65},"tags\u002Ftools","o44aMhD358lxjNB-QBcxIrP7aURCo_L0OIiw3TTU3PY",{"id":73,"title":74,"author":7,"body":75,"createdAt":110,"description":111,"extension":48,"img":112,"meta":113,"navigation":50,"path":114,"seo":115,"stem":116,"tags":117,"updatedAt":110,"__hash__":118},"articles\u002Farticles\u002Fjavascript-patterns-self-invocation.md","JavaScript Patterns Self invocation",{"type":9,"value":76,"toc":108},[77,84,91,94,98,101,105],[12,78,79,80,83],{},"Self-invocation (also known as auto-invocation) is when a function executes immediately upon it's definition. ",[81,82],"br",{},"\nThis is a core pattern and serves as the foundation for many other patterns of JavaScript development.  A self-invoking function is a standard function, just with a set of parentheses appended to the end.",[85,86,90],"pre",{"className":87},[88,89],"brush:","javascript","     \nfunction(){  \n    var msg = \"hello\";  \n    alert(msg);  \n}();  \n",[12,92,93],{},"The above example defines an anonymous function. This creates a literal function, yet since no name is attributed to it, the value is never stored. The trailing parenthesis tell the function to execute, just as if you were calling a named function. Once the function terminates, the variables are discarded and the global object remains unchanged. It it recommended that an extra set of parentheses wrap the function definition as well so to provide a visual clue to the developer that the function isn’t a normal function.",[85,95,97],{"className":96},[88,89],"     \n(function(){  \n    var msg = \"hello\";  \n    alert(msg);  \n})();  \n  \n",[12,99,100],{},"In the event where a self-invoking function requires parameters, they can be passed in the same manor that you would a regular function",[85,102,104],{"className":103},[88,89],"     \n(function(id){  \n    var msg = \"hello\";  \n    alert(msg);  \n})('idvalue');  \n  \n",[12,106,107],{},"In an effort to protect the global object, all JavaScript applications should be written within a self-invoking function. This will create an application scope in which variables can be created without the fear of them colliding with other applications. If a global variable is needed, developers must take the extra step by setting them directly within the window object. For example window.foo = ‘bar’;. Self-invocation is a fundamental pattern of professional JavaScript development.",{"title":43,"searchDepth":44,"depth":44,"links":109},[],"2015-04-20T08:07:12.0000000-04:00","Learn about self invocation javascript patterns.",null,{},"\u002Farticles\u002Fjavascript-patterns-self-invocation",{"title":74,"description":111},"articles\u002Fjavascript-patterns-self-invocation",[89],"6mEuLpLXzvMN8rDuNWbgVGP4TND1riFnYdYRKLW0aeI",{"id":120,"title":121,"author":7,"body":122,"createdAt":217,"description":218,"extension":48,"img":214,"meta":219,"navigation":50,"path":220,"seo":221,"stem":222,"tags":223,"updatedAt":217,"__hash__":224},"articles\u002Farticles\u002Ftodays-hot-links.md","Nov 2007 Links",{"type":9,"value":123,"toc":215},[124,127,140,143,175,178,194,197,212],[12,125,126],{},"XAML Power toys - XAML Power Toys is a Visual Studio 2008 SP1 Multi-AppDomain Add-In that empowers WPF & Silverlight developers while working in the XAML editor. Its Line of Business form generation tools, Grid tools, DataGrid and ListView generation really shorten the XAML page layout time.",[128,129,130],"ul",{},[131,132,133,136],"li",{},[30,134],{"title":135,"href":135},"http:\u002F\u002Fkarlshifflett.wordpress.com\u002Fxaml-power-toys\u002F",[30,137,135],{"href":135,"rel":138},[139],"nofollow",[12,141,142],{},"Microsoft Chart Controls for .NET Framework 3.5 Released! - Microsoft Chart Controls for .NET Framework 3.5 are now publicly available.",[128,144,145,151,157,163,169],{},[131,146,147],{},[30,148,149],{"title":149,"href":150},"Microsoft Chart Controls for Microsoft .NET Framework 3.5","http:\u002F\u002Fwww.microsoft.com\u002Fdownloads\u002Fdetails.aspx?FamilyId=130F7986-BF49-4FE5-9CA8-910AE6EA442C&displaylang=en",[131,152,153],{},[30,154,155],{"title":155,"href":156},"Microsoft Chart Controls for Microsoft .NET Framework 3.5 Language Pack","http:\u002F\u002Fwww.microsoft.com\u002Fdownloads\u002Fdetails.aspx?FamilyId=581FF4E3-749F-4454-A5E3-DE4C463143BD&displaylang=en",[131,158,159],{},[30,160,161],{"title":161,"href":162},"Microsoft Chart Controls Add-on for Microsoft Visual Studio 2008","http:\u002F\u002Fwww.microsoft.com\u002Fdownloads\u002Fdetails.aspx?FamilyId=1D69CE13-E1E5-4315-825C-F14D33A303E9&displaylang=en",[131,164,165],{},[30,166,167],{"title":167,"href":168},"ASP.NET Samples","http:\u002F\u002Fcode.msdn.microsoft.com\u002Fmschart",[131,170,171],{},[30,172,173],{"title":173,"href":174},"Documentation","http:\u002F\u002Fwww.microsoft.com\u002Fdownloads\u002Fdetails.aspx?FamilyId=EE8F6F35-B087-4324-9DBA-6DD5E844FD9F&displaylang=en",[12,176,177],{},"WPF Toolkit – Oct 2008 Release -",[128,179,180,188],{},[131,181,182,185],{},[30,183],{"title":184,"href":184},"http:\u002F\u002Fwww.codeplex.com\u002Fwpf\u002FRelease\u002FProjectReleases.aspx?ReleaseId=15598",[30,186,184],{"href":184,"rel":187},[139],[131,189,190],{},[30,191,192],{"title":192,"href":193},"Permanent Link- Keep Your Office 2007 Documents Readily Available the Easy Way","http:\u002F\u002Fblogs.howtogeek.com\u002Fmysticgeek\u002F2008\u002F10\u002F27\u002Fkeep-your-office-2007-documents-readily-available-the-easy-way\u002F",[12,195,196],{},"CodeRush Xpress for C# - Developer Express and Microsoft are proud to announce a new version of CodeRush licensed exclusively for C# developers working in Visual Studio. The new product is called CodeRush Xpress, and it includes a fresh selection of hand-picked features taken from",[128,198,199,205],{},[131,200,201],{},[30,202,204],{"href":203},"http:\u002F\u002Fwww.devexpress.com\u002FCodeRush","CodeRush",[131,206,207,211],{},[30,208,210],{"href":209},"http:\u002F\u002Fwww.devexpress.com\u002FRefactor","Refactor! Pro",".",[34,213],{"src":214,"alt":43},"\u002Farticles\u002Fimages\u002Fhotlinks1.jpg",{"title":43,"searchDepth":44,"depth":44,"links":216},[],"2007-11-19","A collection of links and web resources",{},"\u002Farticles\u002Ftodays-hot-links",{"title":121,"description":218},"articles\u002Ftodays-hot-links",[55],"ohcebUt-Qn2aFeT0q0Ef6J5176N63uMrWc6oAyQtFdo",1781574768900]