rocknrollstar Posted June 12, 2009 Posted June 12, 2009 All I wanted to do was copy the contents of a usb drive to a pc hd for a backup. I used the following batch file, so that I didn't have to use Windows GUI which takes ages: set params=/D /E /C /F /H /K /Y /I set SOURCE=I:\ set DEST=C:\freecom__backup xcopy "%SOURCE%" "%DEST%" %params% pause Now, the folder c:\freecom_backup can be browsed via the command line, but simply isn't visable in Windows Explorer. I have set "View Files and Folders" in the tools-->folder options-->view tab to be visible (see attached), so it should be working and visible in Explorer. Also, I was able to set the folder as a shared folder, but it can't be viewed on the network either. Attached is a photo of proof: the folder can't be seen in Explorer, but can via command prompt. Note that this photo is showing the folder as a mapped folder, as the screen shot was taken from a different computer. Same thing shown on actual computer though! Any thoughts on why I can't see the folder?
EduTech Posted June 12, 2009 Posted June 12, 2009 This is going to sound really weird probably, but i have seen this happen with folders in the past! opening the USB using Linux or OSX and i bet you will be able to see that folder! If so, i would copy the folder delete it of the drive and then copy it back again James. 1
SYNACK Posted June 12, 2009 Posted June 12, 2009 Could it be marked as a protected system folder as the screenshot did not reveil whether the sow protected os files box was checked or not. 1
rocknrollstar Posted June 13, 2009 Author Posted June 13, 2009 Could it be marked as a protected system folder as the screenshot did not reveil whether the sow protected os files box was checked or not. Turns out that it is a protected system folder. Question is, how do I change it to a normal folder? And why did it become a system folder in the first place?! I've set admin permissions on the folder, and tried to make it not-read only, but it still looks like a system folder (the icon is lighter and almost see through). Thanks for your help.
SYNACK Posted June 13, 2009 Posted June 13, 2009 (edited) It will probably have the system attribute set which may have copied over from the source via the command, You should just need to use the attrib command to reset the attributes of the folder: You cannot view or change the Read-only or the System attributes of folders in Windows Server 2003, in Windows XP, or in Windows Vista attrib -S -H c:\freecom_backup /S Edited June 13, 2009 by SYNACK 1
rocknrollstar Posted June 13, 2009 Author Posted June 13, 2009 It will probably have the system attribute set which may have copied over from the source via the command, You should just need to use the attrib command to reset the attributes of the folder: You cannot view or change the Read-only or the System attributes of folders in Windows Server 2003, in Windows XP, or in Windows Vista attrib -S -H c:\freecom_backup /S Thanks SYNACK, I gave this a go, but got a file not found error (see attachement). Any ideas?
kmount Posted June 13, 2009 Posted June 13, 2009 Could be wrong but it looks like you've got two underscores in your path.
EduTech Posted June 13, 2009 Posted June 13, 2009 Just curious, if you take the tick out of the tickbox for "hide protected operating system files" does this then allow you to see the folder? James. 1
SYNACK Posted June 13, 2009 Posted June 13, 2009 Thanks SYNACK, I gave this a go, but got a file not found error (see attachement). Any ideas? I agree with kmount above, upon closer inspection it looks like you have two underscores in the foldername rather than the one that was in the command line above so something like: attrib -S -H c:\freecom__backup /S or attrib -S -H "c:\freecom__backup" /S if that does not work try removing the /S switch.
rocknrollstar Posted June 13, 2009 Author Posted June 13, 2009 Just curious, if you take the tick out of the tickbox for "hide protected operating system files" does this then allow you to see the folder? James. James, the only way I can see the folder is if I have that tickbox ticked. It is definitely some sort of system folder, as it looks ghost-like. Not sure how it got like that!
EduTech Posted June 13, 2009 Posted June 13, 2009 James, the only way I can see the folder is if I have that tickbox ticked. It is definitely some sort of system folder, as it looks ghost-like. Not sure how it got like that! Oh right, it must say "show protected Operating System Files" in XP then, i looked on windows 7. Synack post should do the trick though. James.
rocknrollstar Posted June 13, 2009 Author Posted June 13, 2009 I agree with kmount above, upon closer inspection it looks like you have two underscores in the foldername rather than the one that was in the command line above so something like: attrib -S -H c:\freecom__backup /S or attrib -S -H "c:\freecom__backup" /S if that does not work try removing the /S switch. Solved! There are 2 underscores, which was a problematic typo. However, the command attrib -S -H "c:\freecom__backup" worked (only when I took off the /S). Thanks very much for your help SYNACK, kmount and James. Cheers
AngryTechnician Posted June 13, 2009 Posted June 13, 2009 And why did it become a system folder in the first place?! Because you used xcopy with the root of a drive (I:\) as the source. The root directory of a drive is treated as a system directory, so your destination inherited that attribute. 1
rocknrollstar Posted June 13, 2009 Author Posted June 13, 2009 Thanks AngryTechnician, that's really useful to know. Little by little I seem to get there, wherever 'there' is....
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now