I am now using Mac OS 10.8, and want to write a script (.sh) to copy some files from Mac to the shared folder of a Win7 computer. I can access the Win7 computer shared folder via Finder, but I do not know the location of the Win7 shared folder when I write the script.
All shares and removable drives automatically get mounted in
To show the path of a share in finder you can either right click on the title of the finder window to open a path list leading to the current location.
You can also show the full path in finder by running the following two commands in terminal:
defaults write com.apple.finder _FXShowPosixPathInTitle -bool YES