Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Unable to delete file after installing Cygwin

06 Nov 2012   #1
ysg

Windows 7 Enterprise 32bit
 
 
Unable to delete file after installing Cygwin

Hello,

I installed cygwin in C:\cygwin\... Unfortunately, for one reason or another, my whole cygwin install became horribly buggered up (my home directory was not recognized and I could not access many of my commands/applications that I had installed/built). Now, I figured that I'm going to nuke everything from orbit (just delete the cygwin directory in my C drive) and start from scratch (besides, I would have loved to make an update or two to some of the apps). This became painfully difficult, as some directories and files could not be deleted. I'm running Win 7 and I am an admin.

This is the error that I get (with an exclamation point) when I try to delete a file:

Invalid MS-DOS function.

nul
Type: File
Size: 3.77 KB
Date modified: 10/30/2012 1:01 PM

Buttons: "Try Again" "Cancel"

If you need more information, please let me know and I'll try to provide it as best as I can. But I'd love to delete this directory and re-install, if you could help me, I'd greatly appreciate it.


My System SpecsSystem Spec
.

06 Nov 2012   #2
mitchell65

Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
 
 

Restore your system to a date before you installed the software!
System Restore

Just out of interest why do you want Window 7 to "look" like Linux? Just curious!
My System SpecsSystem Spec
06 Nov 2012   #3
ysg

Windows 7 Enterprise 32bit
 
 

Quote   Quote: Originally Posted by mitchell65 View Post
Restore your system to a date before you installed the software!
System Restore

Just out of interest why do you want Window 7 to "look" like Linux? Just curious!
No. I do have extensive Linux experience and for certain tasks find it much easier to accomplish them from a *nix command line. It's a nice addition to Windows that makes the experience overall better.
My System SpecsSystem Spec
.


06 Nov 2012   #4
mitchell65

Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
 
 

Quote   Quote: Originally Posted by ysg View Post
Quote   Quote: Originally Posted by mitchell65 View Post
Restore your system to a date before you installed the software!
System Restore

Just out of interest why do you want Window 7 to "look" like Linux? Just curious!
No. I do have extensive Linux experience and for certain tasks find it much easier to accomplish them from a *nix command line. It's a nice addition to Windows that makes the experience overall better.
Thanks for that, nice to add a bit more to my knowledge base. When you said "No" does that mean you can't do a system restore?
My System SpecsSystem Spec
06 Nov 2012   #5
ysg

Windows 7 Enterprise 32bit
 
 

Quote   Quote: Originally Posted by mitchell65 View Post
Quote   Quote: Originally Posted by ysg View Post
Quote   Quote: Originally Posted by mitchell65 View Post
Restore your system to a date before you installed the software!
System Restore

Just out of interest why do you want Window 7 to "look" like Linux? Just curious!
No. I do have extensive Linux experience and for certain tasks find it much easier to accomplish them from a *nix command line. It's a nice addition to Windows that makes the experience overall better.
Thanks for that, nice to add a bit more to my knowledge base. When you said "No" does that mean you can't do a system restore?
Haha, I said "No" to your question asking me if I wanted to make Windows look like Linux .

I'd like to try first in safe mode to delete those files (should work). I can't do it right now because I'm busy at work.
My System SpecsSystem Spec
06 Nov 2012   #6
mitchell65

Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
 
 

Quote   Quote: Originally Posted by ysg View Post
Quote   Quote: Originally Posted by mitchell65 View Post
Quote   Quote: Originally Posted by ysg View Post
No. I do have extensive Linux experience and for certain tasks find it much easier to accomplish them from a *nix command line. It's a nice addition to Windows that makes the experience overall better.
Thanks for that, nice to add a bit more to my knowledge base. When you said "No" does that mean you can't do a system restore?
Haha, I said "No" to your question asking me if I wanted to make Windows look like Linux .

I'd like to try first in safe mode to delete those files (should work). I can't do it right now because I'm busy at work.
But just deleting the files/folders will not repair your registry! Do a system restore and be safe!
My System SpecsSystem Spec
06 Nov 2012   #7
Sir George

Windows 7 Professional x64
 
 

Quote   Quote: Originally Posted by ysg View Post
Hello,

I installed cygwin in C:\cygwin\... Unfortunately, for one reason or another, my whole cygwin install became horribly buggered up (my home directory was not recognized and I could not access many of my commands/applications that I had installed/built). Now, I figured that I'm going to nuke everything from orbit (just delete the cygwin directory in my C drive) and start from scratch (besides, I would have loved to make an update or two to some of the apps). This became painfully difficult, as some directories and files could not be deleted. I'm running Win 7 and I am an admin.

This is the error that I get (with an exclamation point) when I try to delete a file:

Invalid MS-DOS function.

nul
Type: File
Size: 3.77 KB
Date modified: 10/30/2012 1:01 PM

Buttons: "Try Again" "Cancel"

If you need more information, please let me know and I'll try to provide it as best as I can. But I'd love to delete this directory and re-install, if you could help me, I'd greatly appreciate it.
The way you state the situation is you "did not" use an uninstall routine, correct? If that is the case, sometimes, reinstalling the software and then uninstalling it using the proper uninstall process will set things right.

If it were me, I would go with reinstalling and then use the process described in the following link to uninstall;

http://cygwin.com/faq/faq-nochunks.html#faq.setup.uninstall-all

I have no idea what kind of problems you may have self-inflected by what you state in the rest of your post, so good luck.

But that's just my .02 cents.
My System SpecsSystem Spec
07 Nov 2012   #8
mitchell65

Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
 
 

I would still opt for a system restore. Then you can install again. Better safe than sorry IMHO!
My System SpecsSystem Spec
Reply

 Unable to delete file after installing Cygwin




Thread Tools





Similar help and support threads
Thread Forum
Unable to delete a file
After advice have carried out full clean install of W7 64 bit Profiles left in default location on C:\ The old profile was on E:\ I am unable to delete that folder .... went through it a subfolder at a time deleted all except one tmp file This is blocking me from deleting the folder...
Installation & Setup
Unable to delete file on my desktop
I recently decided to install cabal on my laptop again. I used internet download manager to install it. However, when I run the installer, explorer.exe becomes unresponsive and I have to kill it. Right clicking it gives the same result. I am unable to check the size of it. I've try defragmentation...
General Discussion
Unable to delete a file,can't delete it can't shred it,
I looked at my firewall events earlier and i saw a file had been trying to connect to the internet but had been blocked by my firewall. Whenever i install a program i am unsure of i block the exe file from connecting to the internet until i'm happy its a safe program. The file is...
General Discussion
file sharing permission issue involving ssh, cygwin
Hi. I apologize if this forum is inappropriate, I do not know if I am having a Unix problem or a Windows problem here. I have two machines, WORKER1 and WORKER2, both running Windows 7 Enterprise 64 bit. I have the latest version of Cygwin and OpenSSH installed on each, and am running sshd from...
Network & Sharing
Unable to delete file
Keep getting this error, no matter how many attempts I make to delete this file. http://i.imgur.com/okfgb.png I do not have video open at all. Please help
General Discussion
Unable to delete a file in Win 7
Hello, I've seen it's a few other threads about how to delete un-deletable files but it doesn't seem to be the same problem as I have. About a week ago I downloaded a patch for a game. I was never able to open this patch because it says I don't have permission. And now I've realized I can't...
General Discussion

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 16:30.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App