Results 1 to 5 of 5
  1. #1
    How to link to files in other folders

    Member Since
    May 06, 2011
    Posts
    3
    Unhappy How to link to files in other folders
    I am running a statistical program that is running in the following sub dir:

    Code:
    MacintoshHD/Users/Myname/Dropbox/Stuff/Subfolder
    And I want to reference a file located in another folder.

    Code:
    MacintoshHD/Users/Myname/Dropbox/OtherStuff/OtherSubfolder
    When I program:
    Code:
    read "/Dropbox/OtherStuff/OtherSubfolder
    I get file not found.

    In Linux this would have worked (I think). In windows I would say
    Code:
    read "d:/Dropbox/ blah blah blah"
    Do I need to put in the full path with the MacintoshHD part as well?

    Many thanks

    Rich

  2. #2
    How to link to files in other folders
    Raz0rEdge's Avatar
    Member Since
    Jul 17, 2009
    Location
    MA
    Posts
    8,188
    Specs:
    27" i7 iMac, 24" iMac, 13" Macbook Air, iPhone 5 & 5S, iPod Nano 7th Gen, iPad 2 16GB WiFi, iPad 3
    Is "read" a program you've installed or are you trying to read/view the file? If so, you want to use "cat" or "more" or "less" to do that..

    So your command would be something like:
    Code:
    cat ~/DropBox/OtherStuff/OtherSubFolder/OtherFile
    You say you want to link folders, but are reading..could you explain a little more on what you are trying to do?

    Regards

  3. #3
    How to link to files in other folders

    Member Since
    May 06, 2011
    Posts
    3
    Actually I just wanted to put in the path in a program to another file.

    After messing around the following seems to work:

    Code:
    /Users/myname/Dropbox/folder/subfolder/anothersub/file

    I switched to OS X from ubuntu linux and in linux I would not have had to put in the "Users/myname" part in the path.

    As I am on the only user on my Mac, this seems redundant.

  4. #4
    How to link to files in other folders
    Raz0rEdge's Avatar
    Member Since
    Jul 17, 2009
    Location
    MA
    Posts
    8,188
    Specs:
    27" i7 iMac, 24" iMac, 13" Macbook Air, iPhone 5 & 5S, iPod Nano 7th Gen, iPad 2 16GB WiFi, iPad 3
    Just as in Linux, you can prefix your path's with "~" to get your home directory. Even on Linux, your home directory as a user was still in /home/<username>/, that's no different here in OS X..

    So if anything coming from Linux means that a lot more of the OS X's FreedBSD roots should make a lot more sense..

    Regards

  5. #5
    How to link to files in other folders

    Member Since
    May 06, 2011
    Posts
    3
    Quote Originally Posted by Raz0rEdge View Post
    Just as in Linux, you can prefix your path's with "~" to get your home directory. Even on Linux, your home directory as a user was still in /home/<username>/, that's no different here in OS X..

    So if anything coming from Linux means that a lot more of the OS X's FreedBSD roots should make a lot more sense..

    Regards

    Oh duuhh!! I'm an idiot - I completely forgot that! Thanks! That'll make it easier!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. link mp4 files
    By gaz9turner in forum Movies and Video
    Replies: 3
    Last Post: 02-12-2012, 12:46 AM
  2. Replies: 1
    Last Post: 08-22-2011, 02:17 AM
  3. How to link .FLV files
    By Sawday in forum Movies and Video
    Replies: 5
    Last Post: 11-14-2009, 12:43 PM
  4. What happened to emailing link of large files on your iDisk?
    By TwistyO in forum OS X - Apps and Games
    Replies: 1
    Last Post: 02-10-2009, 12:27 PM
  5. Too Many Folders and Files
    By RandyT. in forum Switcher Hangout
    Replies: 2
    Last Post: 07-08-2008, 08:21 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •