Link to home
Create AccountLog in
Avatar of Thad Bonczar
Thad BonczarFlag for United States of America

asked on

copy files to hidden folder with batch file

In Windows 7 Enterprise, how can I copy files into C:\Users\Public\Public Desktop from a batch file?  I've tried the ATTRIB -H command & it doesn't see the folder.
Avatar of msifox
msifox
Flag of Germany image

The batch needs admin rights and the path must be specified in "double quotes".

Please note that in Windows 7 not all command windows started by admin have admin rights.
To get a command window with admin rights: tap the Windows button, hold down ctrl and shift, type cmd, wait unti cmd.exe is shown, press enter, now release all keys.
ASKER CERTIFIED SOLUTION
Avatar of oBdA
oBdA

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of Thad Bonczar

ASKER

GREAT solution!  Works as desired.