FG
💻 Software

Adding Command-Line Switches To Windows Shortcuts

Fresh7 days ago
Mar 15, 202646368 views
Confidence Score0%
0%

Problem

Is there a way to, in general, create a Windows shortcut to a file and instruct Windows to pass certain switches to the application before passing the filename? For example: I have an Excel file, abc.xlsx. If I want to create a shortcut to open this file read-only, I would change the target to , bu…

Error Output

"C:\Program Files\Microsoft Office\Office12\EXCEL.EXE" /r abc.xlsx

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Adding Command-Line Switches To Windows Shortcuts

Low Risk

Use a batch (cmd/bat) file for this purpose. Do not create a shortcut to Excel, but rather create a shortcut to your batch file. This file will have the necessary logic. Look at the example image, which is VS.NET command prompt which uses same bat f…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment