MacOS – How to copy file/folder beginning with dot from Mac to PC without hidden attribute

macossmb

I have Mac (OSX Lion) and PC (Windows 7) with a shared folder. To mount Windows shared folder I use "Connect to Server" in Finder. All files and folders are copied ok except for the files that begin with dot (e.g .htaccess). In Windows these files are created with hidden attribute.

How to copy file/folder beginning with dot without hidden attribute?

Best Answer

Let's assume for this example that your ".htaccess" file is located in the root directory of your mounted Windows share. Let's also say the Windows volume is called "WindowsShare". Finally, let's say you want to copy this file to your Desktop.

Open Terminal. Type in cd /Volumes/WindowsShare. Then type in cp .htaccess ~/Desktop. You can modify this as needed based on your file locations and file names.