rocknrollstar (13th June 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:
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.set params=/D /E /C /F /H /K /Y /I
set SOURCE=I:\
set DEST=C:\freecom__backup
xcopy "%SOURCE%" "%DEST%" %params%
pause
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?

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.
rocknrollstar (13th June 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.
rocknrollstar (13th June 2009)
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.

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
Code:attrib -S -H c:\freecom_backup /S
Last edited by SYNACK; 13th June 2009 at 03:02 PM.
rocknrollstar (13th June 2009)

Could be wrong but it looks like you've got two underscores in your path.

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.
rocknrollstar (13th June 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:
orCode:attrib -S -H c:\freecom__backup /S
if that does not work try removing the /S switch.Code:attrib -S -H "c:\freecom__backup" /S

rocknrollstar (13th June 2009)
Thanks AngryTechnician, that's really useful to know.
Little by little I seem to get there, wherever 'there' is....
There are currently 1 users browsing this thread. (0 members and 1 guests)