Th3 Core
Welcome, Guest. Please login or register.
Did you miss your activation email?
September 20, 2017, 02:41:53 PM

Login with username, password and session length
News
Stats
49704 Posts in 6049 Topics by 186 Members
Latest Member: DavidBrown
Search:     Advanced search
* Home active threads unread threads Help Search Login Register
+  Th3 Core
|-+  Why We Are Here
| |-+  Web Development
| | |-+  Tip for deleting files with long paths on Windows
« previous next »
Pages: [1] Print
Author Topic: Tip for deleting files with long paths on Windows  (Read 494 times)
ergophobe
Inner Core
Hero Member
*
Posts: 3208


View Profile
« on: May 24, 2017, 02:33:49 PM »

Insane, but I can create a file I can't delete on Windows. This is a big problem if you do anything with nodejs modules or others. Ran into this yesterday and came across this tip

https://clintboessen.blogspot.com/2014/05/how-to-delete-files-which-exceed-255.html

Use Window's built-in robocopy to the copy an empty directory over the problem one.

>robocopy C:\something\empty C:\something\long /MIR

Also, one of the comments says you can do this via 7-zip and it works too
Logged
Leona
Inner Core
Sr. Member
*
Posts: 471


View Profile Email
« Reply #1 on: May 24, 2017, 05:23:58 PM »

 Roll Eyes I had forgotten about that, welcome to windows 10 just as annoying as the schedule function. I can't remember how I did it but I somehow searched for file paths over x amount of characters and then changed them. It came up with a list, it may have been a cmd call.
Logged
Pages: [1] Print 
« previous next »
Go to the Active page, the Unread page, or jump to:  

  Powered by SMF 1.1.20 | SMF © 2013, Simple Machines
Mercury design by Bloc