How to delete a file ending in a dot in Windows 7?
After installing Cygwin on Windows 7 and realizing I'm better of with using Linux on a different partition, I wanted to uninstall it. However, Cygwin has no uninstaller so I was left with the option of deleting the whole folder it was installed in – which I did.
The problem is that a single file remained, in the whole directory tree, named README.
at C:cygwinusrsharetexmf-distdoclatexhausarbeit-juraREADME.
I know Windows isn't supposed to allow files with names ending in .
, but this one obviously got through, and I cannot delete it. When trying to do that, I get
Item Not Found
This is no longer located in
C:cygwinusrsharetexmf-distdoclatexhausarbeit-jura
. Verify the item's location and try again.
When viewing the properties of the file (Right-click, Properties), Windows tells me that it has 0 bytes. However, when viewing it in the explorer window, and clicking on it, the windows status bar thing tells me it has 517 bytes.
Any ideas on how to get rid of it?
windows-7 windows
migrated from stackoverflow.com Oct 28 '12 at 21:19
This question came from our site for professional and enthusiast programmers.
add a comment |
After installing Cygwin on Windows 7 and realizing I'm better of with using Linux on a different partition, I wanted to uninstall it. However, Cygwin has no uninstaller so I was left with the option of deleting the whole folder it was installed in – which I did.
The problem is that a single file remained, in the whole directory tree, named README.
at C:cygwinusrsharetexmf-distdoclatexhausarbeit-juraREADME.
I know Windows isn't supposed to allow files with names ending in .
, but this one obviously got through, and I cannot delete it. When trying to do that, I get
Item Not Found
This is no longer located in
C:cygwinusrsharetexmf-distdoclatexhausarbeit-jura
. Verify the item's location and try again.
When viewing the properties of the file (Right-click, Properties), Windows tells me that it has 0 bytes. However, when viewing it in the explorer window, and clicking on it, the windows status bar thing tells me it has 517 bytes.
Any ideas on how to get rid of it?
windows-7 windows
migrated from stackoverflow.com Oct 28 '12 at 21:19
This question came from our site for professional and enthusiast programmers.
This is a shot in the dark, as I'm not sure what steps you've taken, but have you tried deleting it from the cli?
– Sturm
Oct 26 '12 at 18:04
Yes, I do get the exact same error.
– user241543903
Oct 26 '12 at 18:15
You can write a short program to unlink specifically that file. That WILL work.
– OmnipotentEntity
Oct 26 '12 at 18:39
dupliciate: How to delete a folder that name ended with a dot(“.”)
– phuclv
Mar 31 '17 at 15:45
1
Why not simply use wildcards:del README*
?
– Dmitry Grigoryev
Jun 15 '17 at 13:02
add a comment |
After installing Cygwin on Windows 7 and realizing I'm better of with using Linux on a different partition, I wanted to uninstall it. However, Cygwin has no uninstaller so I was left with the option of deleting the whole folder it was installed in – which I did.
The problem is that a single file remained, in the whole directory tree, named README.
at C:cygwinusrsharetexmf-distdoclatexhausarbeit-juraREADME.
I know Windows isn't supposed to allow files with names ending in .
, but this one obviously got through, and I cannot delete it. When trying to do that, I get
Item Not Found
This is no longer located in
C:cygwinusrsharetexmf-distdoclatexhausarbeit-jura
. Verify the item's location and try again.
When viewing the properties of the file (Right-click, Properties), Windows tells me that it has 0 bytes. However, when viewing it in the explorer window, and clicking on it, the windows status bar thing tells me it has 517 bytes.
Any ideas on how to get rid of it?
windows-7 windows
After installing Cygwin on Windows 7 and realizing I'm better of with using Linux on a different partition, I wanted to uninstall it. However, Cygwin has no uninstaller so I was left with the option of deleting the whole folder it was installed in – which I did.
The problem is that a single file remained, in the whole directory tree, named README.
at C:cygwinusrsharetexmf-distdoclatexhausarbeit-juraREADME.
I know Windows isn't supposed to allow files with names ending in .
, but this one obviously got through, and I cannot delete it. When trying to do that, I get
Item Not Found
This is no longer located in
C:cygwinusrsharetexmf-distdoclatexhausarbeit-jura
. Verify the item's location and try again.
When viewing the properties of the file (Right-click, Properties), Windows tells me that it has 0 bytes. However, when viewing it in the explorer window, and clicking on it, the windows status bar thing tells me it has 517 bytes.
Any ideas on how to get rid of it?
windows-7 windows
windows-7 windows
edited Dec 10 '18 at 6:12
Run5k
10.8k72950
10.8k72950
asked Oct 26 '12 at 18:01
user241543903
146124
146124
migrated from stackoverflow.com Oct 28 '12 at 21:19
This question came from our site for professional and enthusiast programmers.
migrated from stackoverflow.com Oct 28 '12 at 21:19
This question came from our site for professional and enthusiast programmers.
This is a shot in the dark, as I'm not sure what steps you've taken, but have you tried deleting it from the cli?
– Sturm
Oct 26 '12 at 18:04
Yes, I do get the exact same error.
– user241543903
Oct 26 '12 at 18:15
You can write a short program to unlink specifically that file. That WILL work.
– OmnipotentEntity
Oct 26 '12 at 18:39
dupliciate: How to delete a folder that name ended with a dot(“.”)
– phuclv
Mar 31 '17 at 15:45
1
Why not simply use wildcards:del README*
?
– Dmitry Grigoryev
Jun 15 '17 at 13:02
add a comment |
This is a shot in the dark, as I'm not sure what steps you've taken, but have you tried deleting it from the cli?
– Sturm
Oct 26 '12 at 18:04
Yes, I do get the exact same error.
– user241543903
Oct 26 '12 at 18:15
You can write a short program to unlink specifically that file. That WILL work.
– OmnipotentEntity
Oct 26 '12 at 18:39
dupliciate: How to delete a folder that name ended with a dot(“.”)
– phuclv
Mar 31 '17 at 15:45
1
Why not simply use wildcards:del README*
?
– Dmitry Grigoryev
Jun 15 '17 at 13:02
This is a shot in the dark, as I'm not sure what steps you've taken, but have you tried deleting it from the cli?
– Sturm
Oct 26 '12 at 18:04
This is a shot in the dark, as I'm not sure what steps you've taken, but have you tried deleting it from the cli?
– Sturm
Oct 26 '12 at 18:04
Yes, I do get the exact same error.
– user241543903
Oct 26 '12 at 18:15
Yes, I do get the exact same error.
– user241543903
Oct 26 '12 at 18:15
You can write a short program to unlink specifically that file. That WILL work.
– OmnipotentEntity
Oct 26 '12 at 18:39
You can write a short program to unlink specifically that file. That WILL work.
– OmnipotentEntity
Oct 26 '12 at 18:39
dupliciate: How to delete a folder that name ended with a dot(“.”)
– phuclv
Mar 31 '17 at 15:45
dupliciate: How to delete a folder that name ended with a dot(“.”)
– phuclv
Mar 31 '17 at 15:45
1
1
Why not simply use wildcards:
del README*
?– Dmitry Grigoryev
Jun 15 '17 at 13:02
Why not simply use wildcards:
del README*
?– Dmitry Grigoryev
Jun 15 '17 at 13:02
add a comment |
8 Answers
8
active
oldest
votes
Here's a short VBScript file to do what you need.
Set obj = CreateObject("Scripting.FileSystemObject")
obj.DeleteFile("C:cygwinusrsharetexmf-distdoclatexhausarbeit-juraREADME.")
This should bypass the issue you're having with the del command and windows explorer. Just save that text as whatever.vbs and double click it.
If the file is flagged as read-only then you'll need to add a bit to that code, let me know.
6
I managed to delete the file in cli using DEL *.* (DEL README. wouldn't work). However the folder still couldn't be deleted. Your script, adjusted for folders, did the trick. Cheers!
– user241543903
Oct 26 '12 at 19:10
add a comment |
Having tried all of these suggestions and more, I still couldn't delete the offending files.
What finally did it was to use the following syntax (in an elevated command prompt):
del "\?<full path to file>"
eg, to use the original example:
del "\?C:cygwinusrsharetexmf-distdoclatexhausarbeit-jura."
I did this when the vbs script solution in the accepted answer did not work. The file is gone now :]
– FRob
Jun 25 '15 at 10:01
This works! Really awesome!
– Paul Vargas
May 29 '17 at 20:56
This should be the accepted answer.
– Gaurav
Jun 9 '17 at 7:26
This works withdel
but doesn't work with some othercmd
builtins likemove
andrename
.
– ivan_pozdeev
Aug 30 '18 at 13:24
add a comment |
What a really simple solution that I've found. It's the simplest and fastest and easiest way to achieve this. I am now laughing at how simple it is.
- Install WinRAR
- Follow the Step by Step procedure from the pictures:
-
-
-
-
I don't know if you can do it with 7zip, but WinRAR has it and you don't have to buy it, just install the trial and then uninstall it (or probably portables out there but I don't think they are legit i.e. they are possibly cracked.)
1
Great trick. The only thing that worked for me
– Cynapse
Mar 20 '16 at 18:45
1
7zip works fine. Thx :-).
– Michał Powaga
Nov 6 '16 at 10:14
1
I really like it, because in my experience broken files are often result of using WinRar
– user502144
Nov 11 '16 at 18:39
Very nice one. Winrar created my files, it should be able to delete them
– user1156544
May 29 '17 at 16:17
1
7-zip worked for me
– HackSlash
Sep 19 '17 at 15:38
|
show 1 more comment
Open an elevated command prompt and type in the following commands, pressing Enter after each one:
cd C:cygwinusrsharetexmf-distdoclatexhausarbeit-jura
del *.*
Y
cd c:
rmdir /s /q C:cygwinusrsharetexmf-distdoclatexhausarbeit-jura
rmdir /s /q C:cygwinusrsharetexmf-distdoclatex
rmdir /s /q C:cygwinusrsharetexmf-distdoc
rmdir /s /q C:cygwinusrsharetexmf-dist
rmdir /s /q C:cygwinusrshare
rmdir /s /q C:cygwinusr
rmdir /s /q C:cygwin
I guessdel *.*
would have sufficed as an aswer...
– Florian Ledermann
Sep 22 '17 at 14:26
add a comment |
The easiest way to do this is to open a Windows Command Prompt window and use the rd
command with the /S /Q
options. You might have to open the Command Prompt as an administrator for this to work.
- Click the
Start Button (Orb)
and locate the link to open the Command Prompt. If you don't see it, you might have to search for it by typingcommand
orcmd.exe
in the search box at the bottom. - Right click on the
command
orcmd.exe
link and selectRun as administrator
, then clickYes
if prompted to allow it. - In the Command Prompt window, type the command (don't press the Enter key yet):
rd /S /Q "C:Cygwin"
- This command will delete all the files and folders inside the specified folder without prompting, so be sure to double and triple check check that you have specified the correct folder.
- If you want to be prompted to delete the files and sub-folders, type the command without the
/Q
like this:
rd /S "C:Cygwin"
- When you are sure you have typed the command correctly, press the Enter key.
The Cygwin
folder, and all the files and sub-folders within it will be deleted.
Here is the syntax for the rd
command:
C:>rd /?
Removes (deletes) a directory.
RMDIR [/S] [/Q] [drive:]path
RD [/S] [/Q] [drive:]path
/S Removes all directories and files in the specified directory
in addition to the directory itself. Used to remove a directory
tree.
/Q Quiet mode, do not ask if ok to remove a directory tree with /S
If there are
System
, Hidden,
or Read-only
files or folders that cause the rd
command to fail, use the attrib
command with the /S /D
options like this:
attrib -S -H -R "C:Cygwin*.*" /S
to remove those attributes from the files and sub-folders, then re-try the rd
command.
add a comment |
The way I did it was pretty easy. I have a dual-boot system with Linux, so I just booted into Linux, navigated to the file and deleted it. I'm sure you could do the same with a live CD.
add a comment |
Use bash rm command from Ubuntu on Windows 10
add a comment |
There are a number of ways to tackle this issue, but the most simple way is with the DEL command, as mentioned above.
It's important to note, however, that DEL by itself will not work as the files in this case tend to get flagged with the System attribute thus you must issue a special parameter to have them show up.
In order to see them in CMD prompt using DIR, navigate to the folder in question and issue the following command:
Dir /A
That will list all files in that directory regardless of attribute. Then to delete it just issue the following command, issuing the same /A parameter:
DEL *.* /A
Of course that deletes all files in that dir, so if you want other files to remain you should move them out or back them up first.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f494959%2fhow-to-delete-a-file-ending-in-a-dot-in-windows-7%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
8 Answers
8
active
oldest
votes
8 Answers
8
active
oldest
votes
active
oldest
votes
active
oldest
votes
Here's a short VBScript file to do what you need.
Set obj = CreateObject("Scripting.FileSystemObject")
obj.DeleteFile("C:cygwinusrsharetexmf-distdoclatexhausarbeit-juraREADME.")
This should bypass the issue you're having with the del command and windows explorer. Just save that text as whatever.vbs and double click it.
If the file is flagged as read-only then you'll need to add a bit to that code, let me know.
6
I managed to delete the file in cli using DEL *.* (DEL README. wouldn't work). However the folder still couldn't be deleted. Your script, adjusted for folders, did the trick. Cheers!
– user241543903
Oct 26 '12 at 19:10
add a comment |
Here's a short VBScript file to do what you need.
Set obj = CreateObject("Scripting.FileSystemObject")
obj.DeleteFile("C:cygwinusrsharetexmf-distdoclatexhausarbeit-juraREADME.")
This should bypass the issue you're having with the del command and windows explorer. Just save that text as whatever.vbs and double click it.
If the file is flagged as read-only then you'll need to add a bit to that code, let me know.
6
I managed to delete the file in cli using DEL *.* (DEL README. wouldn't work). However the folder still couldn't be deleted. Your script, adjusted for folders, did the trick. Cheers!
– user241543903
Oct 26 '12 at 19:10
add a comment |
Here's a short VBScript file to do what you need.
Set obj = CreateObject("Scripting.FileSystemObject")
obj.DeleteFile("C:cygwinusrsharetexmf-distdoclatexhausarbeit-juraREADME.")
This should bypass the issue you're having with the del command and windows explorer. Just save that text as whatever.vbs and double click it.
If the file is flagged as read-only then you'll need to add a bit to that code, let me know.
Here's a short VBScript file to do what you need.
Set obj = CreateObject("Scripting.FileSystemObject")
obj.DeleteFile("C:cygwinusrsharetexmf-distdoclatexhausarbeit-juraREADME.")
This should bypass the issue you're having with the del command and windows explorer. Just save that text as whatever.vbs and double click it.
If the file is flagged as read-only then you'll need to add a bit to that code, let me know.
answered Oct 26 '12 at 18:43
OmnipotentEntity
1,112920
1,112920
6
I managed to delete the file in cli using DEL *.* (DEL README. wouldn't work). However the folder still couldn't be deleted. Your script, adjusted for folders, did the trick. Cheers!
– user241543903
Oct 26 '12 at 19:10
add a comment |
6
I managed to delete the file in cli using DEL *.* (DEL README. wouldn't work). However the folder still couldn't be deleted. Your script, adjusted for folders, did the trick. Cheers!
– user241543903
Oct 26 '12 at 19:10
6
6
I managed to delete the file in cli using DEL *.* (DEL README. wouldn't work). However the folder still couldn't be deleted. Your script, adjusted for folders, did the trick. Cheers!
– user241543903
Oct 26 '12 at 19:10
I managed to delete the file in cli using DEL *.* (DEL README. wouldn't work). However the folder still couldn't be deleted. Your script, adjusted for folders, did the trick. Cheers!
– user241543903
Oct 26 '12 at 19:10
add a comment |
Having tried all of these suggestions and more, I still couldn't delete the offending files.
What finally did it was to use the following syntax (in an elevated command prompt):
del "\?<full path to file>"
eg, to use the original example:
del "\?C:cygwinusrsharetexmf-distdoclatexhausarbeit-jura."
I did this when the vbs script solution in the accepted answer did not work. The file is gone now :]
– FRob
Jun 25 '15 at 10:01
This works! Really awesome!
– Paul Vargas
May 29 '17 at 20:56
This should be the accepted answer.
– Gaurav
Jun 9 '17 at 7:26
This works withdel
but doesn't work with some othercmd
builtins likemove
andrename
.
– ivan_pozdeev
Aug 30 '18 at 13:24
add a comment |
Having tried all of these suggestions and more, I still couldn't delete the offending files.
What finally did it was to use the following syntax (in an elevated command prompt):
del "\?<full path to file>"
eg, to use the original example:
del "\?C:cygwinusrsharetexmf-distdoclatexhausarbeit-jura."
I did this when the vbs script solution in the accepted answer did not work. The file is gone now :]
– FRob
Jun 25 '15 at 10:01
This works! Really awesome!
– Paul Vargas
May 29 '17 at 20:56
This should be the accepted answer.
– Gaurav
Jun 9 '17 at 7:26
This works withdel
but doesn't work with some othercmd
builtins likemove
andrename
.
– ivan_pozdeev
Aug 30 '18 at 13:24
add a comment |
Having tried all of these suggestions and more, I still couldn't delete the offending files.
What finally did it was to use the following syntax (in an elevated command prompt):
del "\?<full path to file>"
eg, to use the original example:
del "\?C:cygwinusrsharetexmf-distdoclatexhausarbeit-jura."
Having tried all of these suggestions and more, I still couldn't delete the offending files.
What finally did it was to use the following syntax (in an elevated command prompt):
del "\?<full path to file>"
eg, to use the original example:
del "\?C:cygwinusrsharetexmf-distdoclatexhausarbeit-jura."
answered Apr 16 '14 at 10:28
Micha
55942
55942
I did this when the vbs script solution in the accepted answer did not work. The file is gone now :]
– FRob
Jun 25 '15 at 10:01
This works! Really awesome!
– Paul Vargas
May 29 '17 at 20:56
This should be the accepted answer.
– Gaurav
Jun 9 '17 at 7:26
This works withdel
but doesn't work with some othercmd
builtins likemove
andrename
.
– ivan_pozdeev
Aug 30 '18 at 13:24
add a comment |
I did this when the vbs script solution in the accepted answer did not work. The file is gone now :]
– FRob
Jun 25 '15 at 10:01
This works! Really awesome!
– Paul Vargas
May 29 '17 at 20:56
This should be the accepted answer.
– Gaurav
Jun 9 '17 at 7:26
This works withdel
but doesn't work with some othercmd
builtins likemove
andrename
.
– ivan_pozdeev
Aug 30 '18 at 13:24
I did this when the vbs script solution in the accepted answer did not work. The file is gone now :]
– FRob
Jun 25 '15 at 10:01
I did this when the vbs script solution in the accepted answer did not work. The file is gone now :]
– FRob
Jun 25 '15 at 10:01
This works! Really awesome!
– Paul Vargas
May 29 '17 at 20:56
This works! Really awesome!
– Paul Vargas
May 29 '17 at 20:56
This should be the accepted answer.
– Gaurav
Jun 9 '17 at 7:26
This should be the accepted answer.
– Gaurav
Jun 9 '17 at 7:26
This works with
del
but doesn't work with some other cmd
builtins like move
and rename
.– ivan_pozdeev
Aug 30 '18 at 13:24
This works with
del
but doesn't work with some other cmd
builtins like move
and rename
.– ivan_pozdeev
Aug 30 '18 at 13:24
add a comment |
What a really simple solution that I've found. It's the simplest and fastest and easiest way to achieve this. I am now laughing at how simple it is.
- Install WinRAR
- Follow the Step by Step procedure from the pictures:
-
-
-
-
I don't know if you can do it with 7zip, but WinRAR has it and you don't have to buy it, just install the trial and then uninstall it (or probably portables out there but I don't think they are legit i.e. they are possibly cracked.)
1
Great trick. The only thing that worked for me
– Cynapse
Mar 20 '16 at 18:45
1
7zip works fine. Thx :-).
– Michał Powaga
Nov 6 '16 at 10:14
1
I really like it, because in my experience broken files are often result of using WinRar
– user502144
Nov 11 '16 at 18:39
Very nice one. Winrar created my files, it should be able to delete them
– user1156544
May 29 '17 at 16:17
1
7-zip worked for me
– HackSlash
Sep 19 '17 at 15:38
|
show 1 more comment
What a really simple solution that I've found. It's the simplest and fastest and easiest way to achieve this. I am now laughing at how simple it is.
- Install WinRAR
- Follow the Step by Step procedure from the pictures:
-
-
-
-
I don't know if you can do it with 7zip, but WinRAR has it and you don't have to buy it, just install the trial and then uninstall it (or probably portables out there but I don't think they are legit i.e. they are possibly cracked.)
1
Great trick. The only thing that worked for me
– Cynapse
Mar 20 '16 at 18:45
1
7zip works fine. Thx :-).
– Michał Powaga
Nov 6 '16 at 10:14
1
I really like it, because in my experience broken files are often result of using WinRar
– user502144
Nov 11 '16 at 18:39
Very nice one. Winrar created my files, it should be able to delete them
– user1156544
May 29 '17 at 16:17
1
7-zip worked for me
– HackSlash
Sep 19 '17 at 15:38
|
show 1 more comment
What a really simple solution that I've found. It's the simplest and fastest and easiest way to achieve this. I am now laughing at how simple it is.
- Install WinRAR
- Follow the Step by Step procedure from the pictures:
-
-
-
-
I don't know if you can do it with 7zip, but WinRAR has it and you don't have to buy it, just install the trial and then uninstall it (or probably portables out there but I don't think they are legit i.e. they are possibly cracked.)
What a really simple solution that I've found. It's the simplest and fastest and easiest way to achieve this. I am now laughing at how simple it is.
- Install WinRAR
- Follow the Step by Step procedure from the pictures:
-
-
-
-
I don't know if you can do it with 7zip, but WinRAR has it and you don't have to buy it, just install the trial and then uninstall it (or probably portables out there but I don't think they are legit i.e. they are possibly cracked.)
edited May 28 '17 at 11:46
Glorfindel
1,36041220
1,36041220
answered Aug 23 '15 at 17:45
TechJS
290413
290413
1
Great trick. The only thing that worked for me
– Cynapse
Mar 20 '16 at 18:45
1
7zip works fine. Thx :-).
– Michał Powaga
Nov 6 '16 at 10:14
1
I really like it, because in my experience broken files are often result of using WinRar
– user502144
Nov 11 '16 at 18:39
Very nice one. Winrar created my files, it should be able to delete them
– user1156544
May 29 '17 at 16:17
1
7-zip worked for me
– HackSlash
Sep 19 '17 at 15:38
|
show 1 more comment
1
Great trick. The only thing that worked for me
– Cynapse
Mar 20 '16 at 18:45
1
7zip works fine. Thx :-).
– Michał Powaga
Nov 6 '16 at 10:14
1
I really like it, because in my experience broken files are often result of using WinRar
– user502144
Nov 11 '16 at 18:39
Very nice one. Winrar created my files, it should be able to delete them
– user1156544
May 29 '17 at 16:17
1
7-zip worked for me
– HackSlash
Sep 19 '17 at 15:38
1
1
Great trick. The only thing that worked for me
– Cynapse
Mar 20 '16 at 18:45
Great trick. The only thing that worked for me
– Cynapse
Mar 20 '16 at 18:45
1
1
7zip works fine. Thx :-).
– Michał Powaga
Nov 6 '16 at 10:14
7zip works fine. Thx :-).
– Michał Powaga
Nov 6 '16 at 10:14
1
1
I really like it, because in my experience broken files are often result of using WinRar
– user502144
Nov 11 '16 at 18:39
I really like it, because in my experience broken files are often result of using WinRar
– user502144
Nov 11 '16 at 18:39
Very nice one. Winrar created my files, it should be able to delete them
– user1156544
May 29 '17 at 16:17
Very nice one. Winrar created my files, it should be able to delete them
– user1156544
May 29 '17 at 16:17
1
1
7-zip worked for me
– HackSlash
Sep 19 '17 at 15:38
7-zip worked for me
– HackSlash
Sep 19 '17 at 15:38
|
show 1 more comment
Open an elevated command prompt and type in the following commands, pressing Enter after each one:
cd C:cygwinusrsharetexmf-distdoclatexhausarbeit-jura
del *.*
Y
cd c:
rmdir /s /q C:cygwinusrsharetexmf-distdoclatexhausarbeit-jura
rmdir /s /q C:cygwinusrsharetexmf-distdoclatex
rmdir /s /q C:cygwinusrsharetexmf-distdoc
rmdir /s /q C:cygwinusrsharetexmf-dist
rmdir /s /q C:cygwinusrshare
rmdir /s /q C:cygwinusr
rmdir /s /q C:cygwin
I guessdel *.*
would have sufficed as an aswer...
– Florian Ledermann
Sep 22 '17 at 14:26
add a comment |
Open an elevated command prompt and type in the following commands, pressing Enter after each one:
cd C:cygwinusrsharetexmf-distdoclatexhausarbeit-jura
del *.*
Y
cd c:
rmdir /s /q C:cygwinusrsharetexmf-distdoclatexhausarbeit-jura
rmdir /s /q C:cygwinusrsharetexmf-distdoclatex
rmdir /s /q C:cygwinusrsharetexmf-distdoc
rmdir /s /q C:cygwinusrsharetexmf-dist
rmdir /s /q C:cygwinusrshare
rmdir /s /q C:cygwinusr
rmdir /s /q C:cygwin
I guessdel *.*
would have sufficed as an aswer...
– Florian Ledermann
Sep 22 '17 at 14:26
add a comment |
Open an elevated command prompt and type in the following commands, pressing Enter after each one:
cd C:cygwinusrsharetexmf-distdoclatexhausarbeit-jura
del *.*
Y
cd c:
rmdir /s /q C:cygwinusrsharetexmf-distdoclatexhausarbeit-jura
rmdir /s /q C:cygwinusrsharetexmf-distdoclatex
rmdir /s /q C:cygwinusrsharetexmf-distdoc
rmdir /s /q C:cygwinusrsharetexmf-dist
rmdir /s /q C:cygwinusrshare
rmdir /s /q C:cygwinusr
rmdir /s /q C:cygwin
Open an elevated command prompt and type in the following commands, pressing Enter after each one:
cd C:cygwinusrsharetexmf-distdoclatexhausarbeit-jura
del *.*
Y
cd c:
rmdir /s /q C:cygwinusrsharetexmf-distdoclatexhausarbeit-jura
rmdir /s /q C:cygwinusrsharetexmf-distdoclatex
rmdir /s /q C:cygwinusrsharetexmf-distdoc
rmdir /s /q C:cygwinusrsharetexmf-dist
rmdir /s /q C:cygwinusrshare
rmdir /s /q C:cygwinusr
rmdir /s /q C:cygwin
edited Nov 3 '12 at 14:03
Indrek
20.4k117484
20.4k117484
answered Nov 3 '12 at 13:31
Roman99
611
611
I guessdel *.*
would have sufficed as an aswer...
– Florian Ledermann
Sep 22 '17 at 14:26
add a comment |
I guessdel *.*
would have sufficed as an aswer...
– Florian Ledermann
Sep 22 '17 at 14:26
I guess
del *.*
would have sufficed as an aswer...– Florian Ledermann
Sep 22 '17 at 14:26
I guess
del *.*
would have sufficed as an aswer...– Florian Ledermann
Sep 22 '17 at 14:26
add a comment |
The easiest way to do this is to open a Windows Command Prompt window and use the rd
command with the /S /Q
options. You might have to open the Command Prompt as an administrator for this to work.
- Click the
Start Button (Orb)
and locate the link to open the Command Prompt. If you don't see it, you might have to search for it by typingcommand
orcmd.exe
in the search box at the bottom. - Right click on the
command
orcmd.exe
link and selectRun as administrator
, then clickYes
if prompted to allow it. - In the Command Prompt window, type the command (don't press the Enter key yet):
rd /S /Q "C:Cygwin"
- This command will delete all the files and folders inside the specified folder without prompting, so be sure to double and triple check check that you have specified the correct folder.
- If you want to be prompted to delete the files and sub-folders, type the command without the
/Q
like this:
rd /S "C:Cygwin"
- When you are sure you have typed the command correctly, press the Enter key.
The Cygwin
folder, and all the files and sub-folders within it will be deleted.
Here is the syntax for the rd
command:
C:>rd /?
Removes (deletes) a directory.
RMDIR [/S] [/Q] [drive:]path
RD [/S] [/Q] [drive:]path
/S Removes all directories and files in the specified directory
in addition to the directory itself. Used to remove a directory
tree.
/Q Quiet mode, do not ask if ok to remove a directory tree with /S
If there are
System
, Hidden,
or Read-only
files or folders that cause the rd
command to fail, use the attrib
command with the /S /D
options like this:
attrib -S -H -R "C:Cygwin*.*" /S
to remove those attributes from the files and sub-folders, then re-try the rd
command.
add a comment |
The easiest way to do this is to open a Windows Command Prompt window and use the rd
command with the /S /Q
options. You might have to open the Command Prompt as an administrator for this to work.
- Click the
Start Button (Orb)
and locate the link to open the Command Prompt. If you don't see it, you might have to search for it by typingcommand
orcmd.exe
in the search box at the bottom. - Right click on the
command
orcmd.exe
link and selectRun as administrator
, then clickYes
if prompted to allow it. - In the Command Prompt window, type the command (don't press the Enter key yet):
rd /S /Q "C:Cygwin"
- This command will delete all the files and folders inside the specified folder without prompting, so be sure to double and triple check check that you have specified the correct folder.
- If you want to be prompted to delete the files and sub-folders, type the command without the
/Q
like this:
rd /S "C:Cygwin"
- When you are sure you have typed the command correctly, press the Enter key.
The Cygwin
folder, and all the files and sub-folders within it will be deleted.
Here is the syntax for the rd
command:
C:>rd /?
Removes (deletes) a directory.
RMDIR [/S] [/Q] [drive:]path
RD [/S] [/Q] [drive:]path
/S Removes all directories and files in the specified directory
in addition to the directory itself. Used to remove a directory
tree.
/Q Quiet mode, do not ask if ok to remove a directory tree with /S
If there are
System
, Hidden,
or Read-only
files or folders that cause the rd
command to fail, use the attrib
command with the /S /D
options like this:
attrib -S -H -R "C:Cygwin*.*" /S
to remove those attributes from the files and sub-folders, then re-try the rd
command.
add a comment |
The easiest way to do this is to open a Windows Command Prompt window and use the rd
command with the /S /Q
options. You might have to open the Command Prompt as an administrator for this to work.
- Click the
Start Button (Orb)
and locate the link to open the Command Prompt. If you don't see it, you might have to search for it by typingcommand
orcmd.exe
in the search box at the bottom. - Right click on the
command
orcmd.exe
link and selectRun as administrator
, then clickYes
if prompted to allow it. - In the Command Prompt window, type the command (don't press the Enter key yet):
rd /S /Q "C:Cygwin"
- This command will delete all the files and folders inside the specified folder without prompting, so be sure to double and triple check check that you have specified the correct folder.
- If you want to be prompted to delete the files and sub-folders, type the command without the
/Q
like this:
rd /S "C:Cygwin"
- When you are sure you have typed the command correctly, press the Enter key.
The Cygwin
folder, and all the files and sub-folders within it will be deleted.
Here is the syntax for the rd
command:
C:>rd /?
Removes (deletes) a directory.
RMDIR [/S] [/Q] [drive:]path
RD [/S] [/Q] [drive:]path
/S Removes all directories and files in the specified directory
in addition to the directory itself. Used to remove a directory
tree.
/Q Quiet mode, do not ask if ok to remove a directory tree with /S
If there are
System
, Hidden,
or Read-only
files or folders that cause the rd
command to fail, use the attrib
command with the /S /D
options like this:
attrib -S -H -R "C:Cygwin*.*" /S
to remove those attributes from the files and sub-folders, then re-try the rd
command.
The easiest way to do this is to open a Windows Command Prompt window and use the rd
command with the /S /Q
options. You might have to open the Command Prompt as an administrator for this to work.
- Click the
Start Button (Orb)
and locate the link to open the Command Prompt. If you don't see it, you might have to search for it by typingcommand
orcmd.exe
in the search box at the bottom. - Right click on the
command
orcmd.exe
link and selectRun as administrator
, then clickYes
if prompted to allow it. - In the Command Prompt window, type the command (don't press the Enter key yet):
rd /S /Q "C:Cygwin"
- This command will delete all the files and folders inside the specified folder without prompting, so be sure to double and triple check check that you have specified the correct folder.
- If you want to be prompted to delete the files and sub-folders, type the command without the
/Q
like this:
rd /S "C:Cygwin"
- When you are sure you have typed the command correctly, press the Enter key.
The Cygwin
folder, and all the files and sub-folders within it will be deleted.
Here is the syntax for the rd
command:
C:>rd /?
Removes (deletes) a directory.
RMDIR [/S] [/Q] [drive:]path
RD [/S] [/Q] [drive:]path
/S Removes all directories and files in the specified directory
in addition to the directory itself. Used to remove a directory
tree.
/Q Quiet mode, do not ask if ok to remove a directory tree with /S
If there are
System
, Hidden,
or Read-only
files or folders that cause the rd
command to fail, use the attrib
command with the /S /D
options like this:
attrib -S -H -R "C:Cygwin*.*" /S
to remove those attributes from the files and sub-folders, then re-try the rd
command.
edited Apr 5 '13 at 22:04
answered Apr 5 '13 at 21:07
Kevin Fegan
3,62721433
3,62721433
add a comment |
add a comment |
The way I did it was pretty easy. I have a dual-boot system with Linux, so I just booted into Linux, navigated to the file and deleted it. I'm sure you could do the same with a live CD.
add a comment |
The way I did it was pretty easy. I have a dual-boot system with Linux, so I just booted into Linux, navigated to the file and deleted it. I'm sure you could do the same with a live CD.
add a comment |
The way I did it was pretty easy. I have a dual-boot system with Linux, so I just booted into Linux, navigated to the file and deleted it. I'm sure you could do the same with a live CD.
The way I did it was pretty easy. I have a dual-boot system with Linux, so I just booted into Linux, navigated to the file and deleted it. I'm sure you could do the same with a live CD.
answered Aug 9 '16 at 14:58
cjs
112
112
add a comment |
add a comment |
Use bash rm command from Ubuntu on Windows 10
add a comment |
Use bash rm command from Ubuntu on Windows 10
add a comment |
Use bash rm command from Ubuntu on Windows 10
Use bash rm command from Ubuntu on Windows 10
answered May 30 '17 at 13:42
kreker
1213
1213
add a comment |
add a comment |
There are a number of ways to tackle this issue, but the most simple way is with the DEL command, as mentioned above.
It's important to note, however, that DEL by itself will not work as the files in this case tend to get flagged with the System attribute thus you must issue a special parameter to have them show up.
In order to see them in CMD prompt using DIR, navigate to the folder in question and issue the following command:
Dir /A
That will list all files in that directory regardless of attribute. Then to delete it just issue the following command, issuing the same /A parameter:
DEL *.* /A
Of course that deletes all files in that dir, so if you want other files to remain you should move them out or back them up first.
add a comment |
There are a number of ways to tackle this issue, but the most simple way is with the DEL command, as mentioned above.
It's important to note, however, that DEL by itself will not work as the files in this case tend to get flagged with the System attribute thus you must issue a special parameter to have them show up.
In order to see them in CMD prompt using DIR, navigate to the folder in question and issue the following command:
Dir /A
That will list all files in that directory regardless of attribute. Then to delete it just issue the following command, issuing the same /A parameter:
DEL *.* /A
Of course that deletes all files in that dir, so if you want other files to remain you should move them out or back them up first.
add a comment |
There are a number of ways to tackle this issue, but the most simple way is with the DEL command, as mentioned above.
It's important to note, however, that DEL by itself will not work as the files in this case tend to get flagged with the System attribute thus you must issue a special parameter to have them show up.
In order to see them in CMD prompt using DIR, navigate to the folder in question and issue the following command:
Dir /A
That will list all files in that directory regardless of attribute. Then to delete it just issue the following command, issuing the same /A parameter:
DEL *.* /A
Of course that deletes all files in that dir, so if you want other files to remain you should move them out or back them up first.
There are a number of ways to tackle this issue, but the most simple way is with the DEL command, as mentioned above.
It's important to note, however, that DEL by itself will not work as the files in this case tend to get flagged with the System attribute thus you must issue a special parameter to have them show up.
In order to see them in CMD prompt using DIR, navigate to the folder in question and issue the following command:
Dir /A
That will list all files in that directory regardless of attribute. Then to delete it just issue the following command, issuing the same /A parameter:
DEL *.* /A
Of course that deletes all files in that dir, so if you want other files to remain you should move them out or back them up first.
answered Dec 16 '15 at 22:48
Matthew
1
1
add a comment |
add a comment |
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f494959%2fhow-to-delete-a-file-ending-in-a-dot-in-windows-7%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
This is a shot in the dark, as I'm not sure what steps you've taken, but have you tried deleting it from the cli?
– Sturm
Oct 26 '12 at 18:04
Yes, I do get the exact same error.
– user241543903
Oct 26 '12 at 18:15
You can write a short program to unlink specifically that file. That WILL work.
– OmnipotentEntity
Oct 26 '12 at 18:39
dupliciate: How to delete a folder that name ended with a dot(“.”)
– phuclv
Mar 31 '17 at 15:45
1
Why not simply use wildcards:
del README*
?– Dmitry Grigoryev
Jun 15 '17 at 13:02