Windows wont let me delete a subfolder; it still shows/works in zebra
-
- KVRist
- 442 posts since 21 May, 2014
I created a folder within another folder and i cannot seem to delete it.....zebra shows it in the plugin and it shows on windows....but when i try to delete it, windows tells me it can't find the folder.....so I can't delete it...but i can still save new presets into it in zebra...and i can still see it in windows...i really want to get rid of it..
Sincerely,
Zethus, twin son of Zeus
Zethus, twin son of Zeus
-
- KVRist
- 366 posts since 7 Apr, 2011
Have you tried turning it off and back on again?
But seriously, this usually works with a file or folder that can't be deleted. Windows locks files so they can't be deleted when is use. Sometimes programs exit, but Windows fails to deleted the file lock. A reboot usually fixes it.
But seriously, this usually works with a file or folder that can't be deleted. Windows locks files so they can't be deleted when is use. Sometimes programs exit, but Windows fails to deleted the file lock. A reboot usually fixes it.
- Beware the Quoth
- 35510 posts since 4 Sep, 2001 from R'lyeh Oceanic Amusement Park and Funfair
FWIW, there's a windows application called Unlocker which can be run on files/folders to try and sort this without needing a reboot. It'll indicate which program owns any lock, too.Ciberithm wrote:Have you tried turning it off and back on again?![]()
But seriously, this usually works with a file or folder that can't be deleted. Windows locks files so they can't be deleted when is use. Sometimes programs exit, but Windows fails to deleted the file lock. A reboot usually fixes it.
There seems to be an issue with the developer site at the moment, but can be had from the usual freeware download sites like CNET, MajorGeeks etc.
An idiot on Set Theory:
"In some cases there is an object called red that contains everything that is red. In much the same way a pot is a plate."
"In some cases there is an object called red that contains everything that is red. In much the same way a pot is a plate."
- KVRist
- 129 posts since 16 Feb, 2013 from Sydney
-
- KVRist
- 264 posts since 25 Oct, 2008
As whyterabbyt has suggested download 'unlocker' app. I've never known it fail in similar circumstances.
- KVRist
- 129 posts since 16 Feb, 2013 from Sydney
Sometimes programs can create file/folder names that are valid for NTFS file systems, but not valid for Windows itself (or the Win32 API anyway); for example, filenames with a trailing space or period are not valid.
try opening a "cmd" command prompt and using the following (slightly odd) syntax,
try opening a "cmd" command prompt and using the following (slightly odd) syntax,
Code: Select all
del "\\?\c:\path_to_file_that contains a trailing space.txt "-
- KVRist
- Topic Starter
- 442 posts since 21 May, 2014
Oh I see what youre getting at "trailing space"......the folder is called Jan for january....but i am noticing it does have a space to the right of it....so the actual name is Jan_ (not underscore but an actual space..)
but i can t rename it...because it says it doesnt exist lol
but i can t rename it...because it says it doesnt exist lol
Sincerely,
Zethus, twin son of Zeus
Zethus, twin son of Zeus
- Beware the Quoth
- 35510 posts since 4 Sep, 2001 from R'lyeh Oceanic Amusement Park and Funfair
Try doing it through the command prompt again, but this time, instead of typing the full name of the file, type the first few letters (the shortest set that's unique to that file, basically) and hit the 'tab' key. The command-line should autocomplete the name of the file including any odd characters in there.
So for the example above type
then hit the TAB key.
However, you may need to use the RMDIR command instead to delete a folder. The folder needs to be empty first though.
http://ss64.com/nt/rd.html
Also, use
del /f <path>
to delete read-only files
http://ss64.com/nt/del.html
So for the example above type
Code: Select all
del "\c:\path_to_fileHowever, you may need to use the RMDIR command instead to delete a folder. The folder needs to be empty first though.
http://ss64.com/nt/rd.html
Also, use
del /f <path>
to delete read-only files
http://ss64.com/nt/del.html
An idiot on Set Theory:
"In some cases there is an object called red that contains everything that is red. In much the same way a pot is a plate."
"In some cases there is an object called red that contains everything that is red. In much the same way a pot is a plate."
-
- KVRist
- Topic Starter
- 442 posts since 21 May, 2014
whyterabbyt wrote:Try doing it through the command prompt again, but this time, instead of typing the full name of the file, type the first few lett
awesome man thanks so much, the one you said didnt work but this one did work...folder is officially destroyed.
rd /S "\\?\G:\My Files\New Folder "
so this is because i was going through and cleaning up all my old presets in zebra, like getting rid of all the junk files...
(be nice to know how to do that in one move)
and i was quickly creatuing abunch of new folders in zebra, using the create new folder command....and i must ve added that trailing space int here, because apparently windows doesnt let you create folders with trailing spaces.....but i craeted it in zebra so thats why
Sincerely,
Zethus, twin son of Zeus
Zethus, twin son of Zeus
- KVRAF
- 2260 posts since 25 Jun, 2008 from Montreal, Canada
A quicker solution is to add a backspace at the end.
For example:
md "Test \"
Will create a directory with a trailing space. Then:
rd "Test \"
will erase it without problem.
For example:
md "Test \"
Will create a directory with a trailing space. Then:
rd "Test \"
will erase it without problem.
