How to create a shortcut with relative path

Hi all

I'm a Linux user, so I don't have enough experience to solve this problem.

How can I create a shortcut with relative path?

Usually it is easy to create a shortcut with the absolute path for example:
Windows accepts shortcut path with absolute c:\bin\app.exe, but he does not accept the following relative path:
.\bin\app.exe

Hi mbnoimi,.

Thank you for using the Microsoft Answers Forums!

To make a shortcut path parent here is a simple solution. Create a shortcut to cmd.exe running the start command to open the current directory. Then set the MDC in the
The shortcut properties.

Follow these steps:

Make a new shortcut to: cmd.exe /c start.

Now, right-click on it and get the properties of the shortcut (shortcut tab).

The shortened full path must have been set to this:
%windir%\system32\CMD.exe /c start.

Set the directory to "start in" (i.e. DLG) to be a relative path:
(Example for a shortcut on the desktop

)
...\SendTo

Click on "change icon...". "and set" look for icons in this. "
"file:" to:
%SystemRoot%\system32\shell32.dll

and press ENTER. Standard folder icon will probably be in the
bottom right.

Now you can copy this file and simply change the "start in:" directory
to book new related shortcuts.

NOTE: The steps above are just an example so try this at your own risk. And check if it works.

Hope this information was useful.

Let me know if it worked.

All the best!

Thank you and best regards,

R uma - Microsoft technical support.

Visit our Microsoft answers feedback Forum and let us know what you think.

Tags: Windows

Similar Questions

  • Creating a shortcut with relative paths

    I'm trying to set up a folder so that I can copy a group of files from USB drives, and I want to place a shortcut to open the Powerpoint Viewer into a subfolder of this folder to copy.   When I put in place a regular shortcut, it creates the full path: 'C:\Users\xx\Documents\Thumb Drive Files\With CAD Drawings\Product présentation Files\pptview.exe training', and when they are copied on a USB key, it will not work because it seeks the path 'C:', rather than the relative path in the folder, \With CAD Drawings\Product Training Presentation Files\pptview .exe.  I don't remember how to set this up with relative paths.

    You can't go with shortcut, you use a batch file on the root of the drive that has an order of relative path for the first command in it.

  • Urgent: how to create a shortcut with a relative path?

    I put a set of files and folders nested on a server on a network location.  (Use of office machines Vista; I don't know that the server is running.  The files are a text file and two Office 2007 files).  Users will copy this set-up files on their computer (there is a program of VBA macro in a Word document, they need).  They need tomorrow (Friday) and the shortcut path gives me fits!

    The hierarchy looks like:

    MainDir
    File.txt
    SubDir1
    Shortcut to the Word file
    SubDir2
    Word file
    Excel file

    I don't think even the paths associated with the shortcut until I looked a little deeper.  Because I put all the files and folders together on my computer, when I did a drag - move in the folder on the server, the target properties and start in the shortcut always pointed at my computer!  So now, I'm afraid that a user copy this on their machine will have a shortcut that points to ~ my ~ computer, instead of the file on their computer.

    I deleted the shortcut located on the server and creates a new one from the Word file in the directory on the server.  Better - I think - but it still points to the location of the server.  And it is even more likely that, when the user opens the shortcut, it will try to open the file on the server, vice the file on their computer.

    How can I create a shortcut to this Word file that will pick up the relative path from around where to reside?  I can just click > properties and change the target and start in paths?  Or do I need a VBScript or VBA?

    I have to get this done fast!  A kick - in the right direction is greatly appreciated.

    Ed

    Hi Ed,

    It is not possible to create a shortcut with a relative path.

    You can try the following allows to bypass and check if it helps:

    Create a shortcut to cmd.exe running the start command to open the current directory. Then set the MDC in the

    The shortcut properties.

    a. make a new shortcut to: cmd.exe /c start.

    b. now right-click on it and get the properties of the shortcut (shortcut tab).

    c. the shortened full path must have been set to this:

    %windir%\system32\CMD.exe /c start.

    d. set the directory of "start in" (i.e. DLG) to be a relative path:

    (Example for a shortcut on the desktop)

    ...\SendTo

    e. click on "change icon...". "and set" look for icons in this file: "to: %SystemRoot%\system32\SHELL32.dll and press ENTER.

    Standard folder icon will probably be in the lower right.

    f. now you can copy this file and simply change the "start in:" to make new related shortcuts directory.

    NOTE: The above steps are just an example, so try this at your own risk. And check if it works.

    You can also read the following article and check:

    Folder redirection fails when you specify the mapped network drive or the Environment Variable

    http://support.Microsoft.com/kb/321805

    You can check out the following link and also post your request in the Technet forum for further assistance:

    http://social.technet.Microsoft.com/forums/en-us/winserverPN/threads

    Hope this information is useful.

  • How to create a shortcut to the desktop as with IE?

    I changed my browser "Firefox" to "Internet Explorer and I would like to know how to create a shortcut to my desktop."

    You can drag the favorite icon on the left end of the address bar on the desktop to create a shortcut.

    You can also use an extension.

  • I have more than one partition on my hard drive, how to create a shortcut to a particular drive from the desktop?

    I fitted with a 1 TB drive to my macbook, then partitioned several times, all good so far, everything works.

    I use two connections, staff and work. My 'work' connection I have one partitioned drive named "work" which I use as an archive / storage for all work related data, far from any current activity. How to create a shortcut for just this partition to 'work' on the desktop?

    I tried Finder > Preferences > general - show these items on the desktop, hard drives of ticks. But it shows then all partitioned drives.

    The partitions must be included in the side bar of the Finder to choose. You can also click with the right button on a volume and select 'add to dock '. I don't know how to add an alias on the desktop.

  • How to create a shortcut for all users during installation

    Hi people,

    We have a desktop application that is distributed with Java Webstart and works on Win7 machines. Initially, users all connected using a connection by default, so creating shortcuts was not a problem. Now, because of new networking strategies, each user has his own connection.

    The problem is that the shortcut to the application is created in the user profile (for example "C:\Users\JohnDoe\", so that other users in the same machine can not run the application unless he or she installs the application again.)

    Is there a way to create this shortcut for all users using JNLP API or configuration in the xml file?

    If anyone has need of the solution: during installation I save the jnlp file in a directory accessible to all the world and then start the application using "javaws path\to\file.jnlp". More details in How to create a shortcut for java webstart available for all users on Windows 7?-stack overflow

  • How to create a shortcut to toggle the sound device?

    Anyone have any suggestions on how to create a shortcut to toggle the USB audio device in Device Manager?

    A shortcut is to enable this device, and the other shortcut is disable this device.

    Thanks for all the suggestions

    Hi oem7110,

    · Why you want to create a shortcut to enable or disable an audio device from Device Manager?

    You will be able to create the shortcut to Device Manager but no shortcut to enable/disable a device in Device Manager:

    a. right-click on the space empty where you want to create a shortcut

    b. click the shortcut

    c. in the type of space empty in devmgmt.msc

    d. click Next and follow the instructions in the wizard.

    With regard to:

    Samhrutha G S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • How to remove a shortcut with the command line?

    How to remove a shortcut with the command line?

    How to make a backup of the local users and groups with command line?

    You delete a shortcut, just as you would remove any other file.  A shortcut will end with the extension ".lnk".  So assuming you are trying to remove the shortcut named "Shortcut.lnk" which appears to the user 'Bob's Office, you use the button Delete (del) or 'clear' command by specifying the full path to the file.  (Remember to put filename in quotes if there is a space anywhere in the path or name) as in:

    del "C:\documents and settings\Bob\Desktop\Shortcut.lnk".

    What kind of a backup 'users and groups' you want to do?  If there is a backup of the users and groups as written in the registry, a good registry as C:\WINDOWS\ERUNT backup program that will make the command line.  If you are trying to backup all users and their data as well, then you are better off with a backup program.

    HTH,
    JW

  • How to create a shortcut to desktop on Windows 7, like I did in Windows XP?

    In XP Pro, I created a shortcut on the desktop and pinned it to the toolbar. He was terribly helpful because I had several shortcuts on my desktop I've used often throughout each day. If I could remember how I created the shortcut to the desktop in XP Pro I could figure out how do it again to 7, but which is perhaps where I'm stuck - I don't remember. Perhaps the first question is whether a shortcut on the desktop can be created and pinned to the toolbar in 7? So if it's possible, how do we? All suggestions, ideas and comments that all care to offer will be greatly appreciated. Thanks, K.

    Hi kthr.

    I see you want to create the shortcut on the desktop and pin it in the tool in windows 7. I'll help you with this problem.

    1. What is the brand and model of the computer?

    2. have you made changes on the computer recently?

    Method 1.

    Follow these steps to create a desktop shortcut.

    1 - click Start, point to programsand then right click on the program that you want to create the shortcut to.

    2 - Click on create a shortcut.

    Method 2.

    Follow this link for pin a program.

    Pin a program to the taskbar: http://windows.microsoft.com/en-US/windows7/Pin-a-program-to-the-taskbar

    Let us know if you need assistance with any windows problem. We will be happy to help you.

  • How to add several tracks with offset path?

    Hello

    I would like to create a script that can create multiple strokes with offset path (incremental or material (user will enter value))

    Is it possible to add several traces? I have found no examples in the script reference or elsewhere.

    Note: Mixtures does not give exactly the same results because sometimes especially when you are dealing with fonts outline paths is to be wrongly mixed a way.

    I'd be happy if someone give at least the main command loop.  I'll try to rest and will share here because I find the solution.

    Thank you

    Best regards.

    question.jpg

    OK, I'm going to assume your sub windows through the capture in the opening screen post.

    This is a completely different approach.

    This example uses executeMenuCommand so is only compatible with CS6 +.

    and Windows is only used from VB

    //-------------------------------------------------------------------
    
    // Offset Path in apperence panel
    
    // Script by Qwertyfly
    // contact [email protected]
    // version 0.1 beta
    
    //-------------------------------------------------------------------
    
    //number of offset paths
    var Qty = 5;
    
    //amount to offset
    var Offset = -5;
    
    //units to offest in
    var Unit = "px"; 
    
    //time to wait in milliseconds before sending keys.
    // more time is slower but more stable
    // I was able to run this with it set to 0, but a little bit of a pause is a good idea.
    var wait = 10;
    
    //-------------------------------------------------------------------
    function FillDialog_Windows(distance){
        var VB = [
            'WScript.Sleep ' + wait + '',
            'Set WshShell = WScript.CreateObject("WScript.Shell")',
            'WshShell.SendKeys "' + distance + '"',
            'WshShell.SendKeys "{ENTER}"'
            ].join('\n');
        var VBgo = new File('~/go.vbs');
        VBgo.open('w');
        VBgo.write(VB);
        VBgo.close();
        VBgo.execute();
    }
    function MakeStroke(offset){
        app.executeMenuCommand('Adobe New Stroke Shortcut');
        FillDialog_Windows(offset);
        app.executeMenuCommand('Live Offset Path');
    }
    
    for(var i = 1; i		   
  • 5.6.1 pages: How to create a table with more than 999 lines?

    5.6.1 pages: How to create a table with more than 999 lines?

    The table on Pages v5.6.1 line selector is limited 3-digit, as it is in Pages ' 09 v4.3. Either use LibreOffice Writer, who does not have any constraint line on processing tables 3-digit, or any application spreadsheet for top 3-digit row needs.

  • How to create Hlp files with labwindows 9.0

    Hello

    I used to create the dll with Labwindows 8.5 and use them with TestStand... The advantage is that with the help file, I can add information to the Fp file and loading the DLL with TestStand, the "?" button to open the help file...

    But the problem is that I can't find help with Labwindows 9.0 generation...

    Does anyone know how to create file hlp with Labwindows 9.0?

    The procedure with Labwindows 8.5 has been:

    Modification of the PS file, then generate the Option-> windows help

    Thank you very much

    Ronan

  • How to create a shortcut icons in windows XP Home Edition of 2002 for starting the comp.

    I'm just learning how to move things on this computer. I am looking for step by step instructions how to create a shortcut icons posted on my desktopp for fast entry to various installed programs and the desired Web sites. Can you help / teach me how to - thanks.

    If you have a program in the start menu. All programs, (some other places as well), just: right-click | Send to | Desktop (create shortcut).

    For a Web site, save in my favorites first. Then, just left-click on it and drag it to the desktop or the taskbar.

    Bruce Hagen
    MS - MVP October 1, 2004 ~ September 30, 2010
    Imperial Beach, CA

  • How to create an app with space name?

    Hi all

    How to create an application with the space, for example "Hello Word" name When I run my Simulator, I got ' Hello$ 20World "instead. I use the plugin for eclipse for development. I can see the Application descriptor for my application, and it shows the thin space. I tried to change the Blackberry project properties tab generate file output name, but it doesn't help in any way. Please advise...

    Goto Blackberry project properties

    Click the general tab

    Write in title = "Hello World".

    and you can see your title of the modified project

    I hope that you ask for it only!

  • How to create a shortcut on the desktop using Windows 8?

    I have Windows 8 System. How to create a shortcut to Word and Excel? I do not want on the task bar, I want them on my desk. Any help would be greatly appreciated.

    Thanks for the help!

    On Mon, 15 Sep 2014 16:34:30 + 0000, sjblume wrote:

    I have Windows 8 System. How to create a shortcut to Word and Excel? I do not want on the task bar, I want them on my desk. Any help would be greatly appreciated.

    Just swipe their EXEs on the desktop. When you release the mouse button
    keys, choose "Create shortcut here."

Maybe you are looking for

  • If I share a photo on iCloud use more space

    MY picture is on iCloud and I want to share it. It does not overlap the file or point to it indicated need more space or not.

  • the airport does not connect to windows 10.

    Dear community, Eversince I've upgraded to a new deskptop (imac sold and exchanged it for an alienware area51 r2) and since I installed windows 10 on my apple airport computer has stopped working... I have tryd many airport uttilitys programs for win

  • All my Inbox messages are crumpled using yahoo

    When I login on the homepage of Yahoo, some overlap of script.When I sign in my mail messages from the Inboxseem to be on each other making it impossible to read

  • service of Firefox without closing the

    I use CCCleaner at the end of each session of my PC. Since the FF5 update, I frequently get a message of CC saying he can't clean up because FF is still ongoing. It was after I closed FF. I look in the Manager of tasks, Apps and FF is not there. Howe

  • HP-P6-2133W graphic questions.

    Well first of all... It has an APU which is supposed to be able to use double graphics, right? If I were to add a video card, the GPU of the APU shouldn't continue to work alongside the video card? So, activate it using the tool of Vision from AMD? W