Results 1 to 4 of 4

Thread: Creating shortcuts to launch programs

  1. #1
    Join Date
    Dec 2006
    Beans
    Hidden!
    Distro
    Ubuntu

    Creating shortcuts to launch programs

    Hi,

    Here's a tricky one for you......

    Creating a shortcut to launch a program is USUALLY a fairly easy, straightforward task.......


    BUT (and it's a very big but)...........

    What do you do when the target file that is in a folder location such as this?

    (The bold type is the command entered)
    (The red is the complete folder that the target file is contained in)
    So the file is actually in "SQuirrel SQL Client"....WITH SPACES BETWEEN THE WORDS.

    cd usr
    /usr$ cd local
    /usr/local$ dir
    bin etc games include lib man sbin share SQuirreL\ SQL\ Client src
    :/usr/local$

    Last edited by mistypotato; March 8th, 2009 at 02:07 AM.

  2. #2
    Join Date
    Mar 2006
    Location
    Maine
    Beans
    360

    Re: Creating shortcuts to launch programs

    Quotes around the path. As in:
    cd "/usr/local/path with spaces in it/"

  3. #3
    Join Date
    Oct 2006
    Location
    Essex, UK
    Beans
    942
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Creating shortcuts to launch programs

    Try putting the file name between quotes, i.e. 'filename'
    Athlon 3500+, 1Gb ram, Geforce 6200TC, Gigabyte GA-K8N51GMG-9-RH

  4. #4
    Join Date
    Dec 2008
    Location
    California
    Beans
    32
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: Creating shortcuts to launch programs

    Quote Originally Posted by mistypotato View Post
    "SQuirrel SQL Client"....WITH SPACES BETWEEN THE WORDS.

    ...
    SQuirreL\ SQL\ Client
    To use a file or dir that has spaces, just use a \ right before the white space.

    an example from my own computer:
    Code:
    cd /media/FreeAgent\ Drive/Random/Random\ Awesome\ Vids/
    This takes me to the location "/media/FreeAgent Drive/Random/Random Awesome Vids/"

    or use ""s around the whole thing

Bookmarks

Posting Permissions

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