folders created with 'mkdir' don't appear in Explorer

T

Tim.T

I've often encountered this little mystery and it still baffles me. When I
use the 'mkdir' command to create a folder on a particular drive, and then
start using 'xcopy' to copy files to that folder, the folder vanishes in
Explorer but is still visible using the 'dir' command. Before I start using
'xcopy' the folder is there, but as soon run the 'xcopy' command it
disappears and doesn't return. I've tried it twice now on 2 different drives
and both folders are 'missing' in Explorer but are there in the command
prompt. This is what I did:

First:

'mkdir f:\g-drive' (creates a folder on F-drive. The folder appears in
Explorer.)

Then:

'xcopy g: /s /e /v /f f:\g-drive' (copies all files and folders from
G-drive to the location 'f:\g-drive'. As the command is running the folder
then disappears in Explorer.)

Only thing I've found that gets the folders to appear is to reboot, but I
don't see why I should have to do that!

Tim
 
T

TOM7601

Tim.T said:
I've often encountered this little mystery and it still baffles me. When I
use the 'mkdir' command to create a folder on a particular drive, and then
start using 'xcopy' to copy files to that folder, the folder vanishes in
Explorer but is still visible using the 'dir' command. Before I start using
'xcopy' the folder is there, but as soon run the 'xcopy' command it
disappears and doesn't return. I've tried it twice now on 2 different drives
and both folders are 'missing' in Explorer but are there in the command
prompt. This is what I did:

First:

'mkdir f:\g-drive' (creates a folder on F-drive. The folder appears in
Explorer.)

Then:

'xcopy g: /s /e /v /f f:\g-drive' (copies all files and folders from
G-drive to the location 'f:\g-drive'. As the command is running the folder
then disappears in Explorer.)

Only thing I've found that gets the folders to appear is to reboot, but I
don't see why I should have to do that!

Tim

Does this also happen if you use Explorer to open the drive, then
right-click to create a new folder?
 
T

Tim Meddick

Hi Tim,
After creating the folder from within command prompt with the
mkdir command. Come out of the parent folder in explorer so that you cannot
see the folder that should be there. Then go to the top menu and click View
Refresh. This MUST be done from the top menu (not right-click in the
right-hand 'files' panel) and give it a couple of seconds (you'll see the
folders in the folder's bar flash a while). Then open the parent folder
again and your newly created folder should have appeared there. This will
obviate the need for you to reboot to see it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top