How to Change the Program or File That Opens When You Click a Shortcut

To change the program or file that opens when you click a shortcut in Windows, right-click the shortcut, select Properties, open the Shortcut tab, replace the path in the Target box with the path of the item you want, then select Apply and OK.

The change affects only that one shortcut. The original program or file stays where it is, and nothing is deleted. The steps apply to Windows 11 and Windows 10, and the same Properties window exists in older versions such as Windows 7. If you want every file of one type, such as all PDFs, to open in a different program, you need the default apps setting instead, which is covered further down.

What a Shortcut Is and What the Target Does

A shortcut is a small link file, with the hidden file extension .lnk, that points to something else on your computer. Windows marks it with a small arrow in the lower-left corner of the icon. Microsoft’s Shell Links documentation explains that a link file stores the location of the item it opens, a working folder, any extra arguments, the starting window size, the icon, a comment, and an optional keyboard shortcut.

The Target is the stored location, also called a path. A path is the full address of a file, such as C:\Users\YourName\Documents\Budget.xlsx. When you double-click the shortcut, Windows opens whatever is at that address. Change the address and the same icon opens something else.

The name under the icon is the shortcut’s own file name, so it does not change when you change the target. The picture may or may not change. If the shortcut uses the target’s own icon, which is the default, Windows shows the new item’s icon after you save. If someone picked a custom icon for the shortcut earlier, that icon stays.

Make Sure It’s a Shortcut

  • Confirm the icon is a shortcut. Look for the small arrow on the icon. A real file or folder on the desktop has no arrow and no Shortcut tab.
  • Know where the new item is stored. You need its full path, including the file name and extension. If you can’t see extensions such as .exe or .pdf, turn on file extensions in Windows.
  • Copy the current Target value and paste it into Notepad before you change it. That is the simplest way to undo the change later.
  • Expect a permission prompt for some shortcuts. Shortcuts stored in shared locations, such as the Public Desktop that every account on the PC can see, may need administrator approval to save.

How to Change What a Shortcut Opens in Windows 11 or Windows 10

These steps replace the target of an existing desktop shortcut.

  1. Find the program or file you want the shortcut to open. In File Explorer, browse to the item.
  2. Copy its path. In Windows 11, right-click the item and select Copy as path. In Windows 10, hold Shift while you right-click the item to see Copy as path. The path is copied with quotation marks around it.
  3. Right-click the shortcut you want to change and select Properties. If you don’t see it in Windows 11, select Show more options first. You can also select the shortcut and press Alt + Enter.
  4. Select the Shortcut tab if it is not already open.
  5. Click inside the Target box and press Ctrl + A to select the current path.
  6. Press Ctrl + V to paste the new path over it.
  7. Check the Start in box. This is the working folder the program uses when it starts. If it still shows the old program’s folder, replace it with the folder that holds the new item, or clear it.
  8. Select Apply. If Windows says you need administrator permission, select Continue or Yes if you are allowed to make changes on this PC.
  9. Select OK to close the window.
Windows 11 shortcut Properties window with a new path in the Target box on the Shortcut tab
Target chooses what the shortcut opens; Start in sets its working folder. This example points to Windows Notepad. Choose Apply, then OK.

The picture below shows the Target box on the Shortcut tab. It was captured in Windows 7, so the window styling differs from Windows 11, but the box has the same name and position.

Paste the new file path into the Target box on the Shortcut tab of the Properties window

Copying the Target From Another Shortcut

If you already have a second shortcut that opens the item you want, you can copy its target instead of finding the file. Right-click that second shortcut, select Properties, click inside the Target box, press Ctrl + A, then Ctrl + C, and select Cancel. Then paste that value into the Target box of the shortcut you are changing.

Rules for Typing a Target

  • Put quotation marks around any path that contains a space, for example "C:\Program Files\App Name\app.exe". Without them, Windows may read the path as two separate pieces.
  • Include the file extension, such as .exe, .docx, or .pdf.
  • Anything after the closing quotation mark is treated as an argument, which is an extra instruction passed to the program. Remove arguments left over from the old program unless the new one supports them.
  • A target can also be a folder path, such as C:\Users\YourName\Pictures, which opens that folder in File Explorer.
  • If the path does not exist, Windows shows an error when you select Apply and does not save the change. Fix the path and try again.

The Other Boxes on the Shortcut Tab

You don’t need to change these to retarget a shortcut, but it helps to know what they do, because they stay set after you change the Target:

Setting What it does
Shortcut key A key combination, such as Ctrl + Alt + N, that opens the shortcut. Clear it if it no longer fits the new item.
Run Opens the window in a normal size, minimized, or maximized.
Comment A note about the shortcut, which Windows can show as a tooltip when you point at it.
Open File Location Opens the folder that holds the current target, which is a quick way to check the path.
Change Icon Picks a different picture for the shortcut.
Advanced Has the Run as administrator check box. Turn it off if the new program doesn’t need it.
Advanced Properties dialog for a Windows shortcut with Run as administrator
The Advanced button holds the Run as administrator setting for the shortcut.

It’s worth checking when to run as administrator in Windows 11 before selecting that check box.

Open a File With a Specific Program From One Shortcut

A shortcut that points to a document opens it in the default app for that file type. If you want one shortcut to open a file in a different program without changing the default for every file, put the program first and the file second in the Target box:

"C:\Path\To\Program.exe" "C:\Path\To\File.txt"

The first quoted path is the program. The second is passed to it as the file to open. This works with programs that accept a file name as an argument, which most document and media programs do. For example, "C:\Windows\System32\notepad.exe" "C:\Users\YourName\Desktop\notes.csv" opens a CSV file in Notepad instead of Excel. Check the program maker’s documentation if the file does not open.

Shortcut Target or Default App: Which One Do You Need?

These two settings are easy to confuse. The shortcut target controls one icon. The default app controls which program opens every file of a given type, such as all PDF files, no matter how you open them.

Comparison of changing a shortcut target versus changing the default app for a file type in Windows
Illustration: a shortcut target affects one icon, while a default app affects every file of that type.
Goal Where to change it What is affected
One icon should open a different program or file Shortcut Properties > Shortcut > Target That shortcut only
One icon should open a file in a non-default program Target with the program path, then the file path That shortcut only
One file should open in another program right now Right-click the file > Open with That one time, unless you choose Always
All files of one type should open in a different program Settings > Apps > Default apps Every file of that type for your account

Change the Default App for a File Type

If your real goal is “every .pdf should open in a different program,” don’t edit shortcuts. Microsoft’s Change Default Apps in Windows page gives the route:

  1. Open Settings and select Apps > Default apps.
  2. Type the file extension, such as .pdf, in the search box at the top.
  3. Select the result, then choose the app you want and confirm.

You can also work from the app side: under Set defaults for applications, select an app to see every file and link type it can open, and change the ones you want. The steps for changing file associations in Windows 11 and changing the default PDF viewer in Windows 11 go into more detail.

Open One File in Another Program With Open With

To open a single file in a different program without changing anything permanently, right-click the file and select Open with, then pick a program. Select Choose another app to see the full list. In Windows 11, select Just once to use that program this time only, or Always to make it the default for that file type. If the program you want isn’t listed, select Choose an app on your PC and browse to its .exe file.

In Windows 10, the equivalent of Always is the Always use this app to open check box. To find a program that isn’t listed, select More apps > Look for another app on this PC and browse to its .exe file.

Windows 11 Open with dialog with Just once and Always buttons
Select an app, then choose Just once to open the file this time only, or Always to change the default.

Default app settings apply only to your Windows account, and an app must be installed before it appears as a choice.

Alternative: Create a New Shortcut Instead

Editing the target is quick, but a fresh shortcut is often cleaner because it gets the right name and icon automatically. Microsoft lists several ways on its Customize the Desktop Icons in Windows page.

  • From the desktop: right-click an empty area, select New > Shortcut, and follow the prompts to pick the file, folder, or web page.
  • For an app: select Start, select All, then drag the app from the list to the desktop.
  • For a file or folder: right-click it and select Show more options > Send to > Desktop (create shortcut). Some Windows installs show Send to right away.
  • For a web page: open the page in your browser and drag the View site information icon at the left end of the address bar onto the desktop.

Once the new shortcut works, you can delete the old one. Deleting a shortcut removes only the link, not the program or file it pointed to. More detail is in the steps for making a desktop shortcut in Windows 11, and there’s a browser-specific walkthrough for a Google Chrome shortcut on the desktop.

Confirm the Change, Tidy Up, or Undo It

Double-click the shortcut. The new program or file should open. If the old one still opens, reopen Properties and check that the Target box shows the new path; the change is not saved if you closed the window with Cancel.

To make the icon match its new job:

  • Rename it: right-click the shortcut, select Rename, and type a new name.
  • Change the picture: in Properties, on the Shortcut tab, select Change Icon. Changing icons is covered in more detail in the steps for changing app icons in Windows 11.

To undo the change, open Properties again and paste the original value back into the Target box, along with the original Start in value. If you did not save the old path, create a new shortcut to the original program using one of the methods above.

If the Target Box Is Grayed Out or Missing

The Target Box Is Grayed Out

Some shortcuts do not expose an editable target. This is common with apps installed from the Microsoft Store and some game launchers, where the shortcut points to an app entry and not to a file path. In that case you cannot retarget it from Properties. Create a new shortcut to the item you want instead.

There Is No Shortcut Tab

The item is probably not a standard shortcut. A real file or folder shows tabs such as General and Security only. A link to a website, such as one made with New > Shortcut and a web address, shows a Web Document tab with a URL box in place of a target. Edit the address there, or create a new shortcut.

Windows Says the Name in the Target Box Is Not Valid

The path is wrong or the quotation marks are in the wrong place. Check for a missing extension, a typo in a folder name, or a quotation mark that was not closed. Pasting the path with Copy as path avoids most typing mistakes.

You Are Asked for Administrator Permission

The shortcut is stored somewhere your account cannot change freely, such as a location shared by all users. Approve the prompt if you manage the PC. On a work or school computer, the request may be blocked, and your IT administrator would need to make the change.

The Shortcut Opens the File in the Wrong Program

The target is correct, but the default app for that file type is not the one you want. Either change the default app in Settings > Apps > Default apps, or use the program-then-file target format described above. If a similar extension is involved, such as .jpg and .jpeg, check both.

The Shortcut Stopped Working After You Moved a File

According to Microsoft’s documentation, Windows tries to find a moved or renamed item the next time you use the shortcut, and asks you for a location if it cannot. If that fails, open Properties and paste the item’s new path into the Target box.

Shortcut Target Questions

Does changing a shortcut’s target change the original program?

No. A shortcut is a separate link file. Editing its Target box changes where that one link points. The program or file it used to open is not moved, edited, or uninstalled.

Can I change the target of a taskbar or Start menu icon?

The Target method is meant for shortcut files you can right-click, such as those on the desktop or in a folder. For the taskbar, the more reliable route is to unpin the old item and pin the new one. The steps for pinning to the taskbar in Windows 11 show how.

Why does the shortcut still show the old name or icon?

The name is the shortcut’s own file name, so it never updates on its own. The icon updates only if the shortcut was using the target’s icon; a custom icon stays. Use Rename and Change Icon to update them.

Should I change someone else’s shortcuts?

Only change shortcuts on a computer you own or manage, or with the owner’s agreement. A shortcut that opens something unexpected can confuse the person using the PC, and on a work or school device it may break a setup your organization depends on.

Is it the same for Microsoft Office files?

Yes. A desktop shortcut to an Office document is a normal shortcut. Microsoft’s page on how to create a desktop shortcut for an Office program or file shows how to make one, and you can edit its target afterward with the steps in this article.

Open Properties on the shortcut you want to change, save the current Target value somewhere safe, then paste in the new path and test it. If the box is grayed out, create a new shortcut and delete the old one.