Windows 11: Using Command Line Path for Microsoft Office 365, Edge, Chrome, and Firefox

Abstract: Resolve command line execution failures for Office 365, Edge, Chrome, and Firefox by using correct binary paths instead of shell shortcuts.

Created: 2026-10-12 by
Use the correct executable paths to launch Microsoft Office 365, Edge, Chrome, and Firefox from the Windows 11 command line. This method bypasses shell shortcuts and ensures direct execution of binaries located in Program Files or AppData directories for reliable automation and scripting.

Locating Microsoft Office 365 Executables

Microsoft Office 365 applications are typically installed in the Program Files\Microsoft Office\root\Office16 directory. However, the exact path can vary depending on whether you installed the 32-bit or 64-bit version of Office, or if it was deployed via Click-to-Run. The most common executables include WINWORD.EXE for Word, EXCEL.EXE for Excel, and OUTLOOK.EXE for Outlook.

To verify the installation path, open File Explorer and navigate to C:\Program Files\Microsoft Office\root\Office16. If this folder is empty or does not exist, check C:\Program Files (x86)\Microsoft Office\root\Office16 for the 32-bit installation. Once identified, you can construct a command to launch the application directly. For example, launching Word would look like this:

"C:\Program Files\Microsoft Office\root\Office16\WINWORD.EXE"

If you need to pass arguments, such as opening a specific document, append the file path after the executable path. Ensure both paths are enclosed in double quotes if they contain spaces. This approach works reliably across most modern Office 365 deployments on Windows 11.

Launching Microsoft Edge from Command Line

Microsoft Edge is pre-installed on Windows 11 and resides in the system program files directory. The primary executable is msedge.exe, located at C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe. Note that even on 64-bit systems, Edge often installs to the (x86) folder due to its underlying architecture components.

You can launch Edge with various command-line flags to control its behavior. For instance, opening a new window with a specific URL requires the --profile-directory flag if you want to use a specific user profile, though simply passing the URL often suffices for default usage. Here is the basic command structure:

"C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe" https://www.example.com

For more advanced scenarios, such as running Edge in kiosk mode or incognito state, you can add flags like --kiosk or --incognito immediately after the executable path but before the URL. This provides granular control over the browser session when automating tasks via PowerShell or batch scripts.

Running Google Chrome via Command Prompt

Google Chrome is stored in the local application data folder rather than Program Files, specifically at %LOCALAPPDATA%\Google\Chrome\Application\chrome.exe. Using the environment variable %LOCALAPPDATA% makes your script portable across different user accounts without hardcoding the full path. To launch Chrome, you can reference this path directly in your command prompt or script.

Similar to Edge, Chrome accepts URLs and flags. A typical command to open a webpage might look like this:

"%LOCALAPPDATA%\Google\Chrome\Application\chrome.exe" https://www.google.com

It is important to note that if Chrome is already running, this command will usually bring the existing window to focus rather than opening a new instance, unless you specify the --new-window flag. This behavior is standard for single-instance browsers and helps manage system resources efficiently. You can also specify a custom user data directory using the --user-data-dir flag to isolate sessions.

Executing Mozilla Firefox from the Terminal

Mozilla Firefox follows a similar installation pattern to Chrome, residing in the %LOCALAPPDATA% directory under Mozilla\Firefox\firefox.exe. This location allows multiple versions or profiles to coexist, although the default installation points here. Launching Firefox from the command line is straightforward and supports standard web navigation parameters.

The command to open Firefox with a specific site is structured as follows:

"%LOCALAPPDATA%\Mozilla\Firefox\firefox.exe" https://www.mozilla.org

Firefox also supports various command-line options, such as -private for private browsing mode or -no-remote to force a new instance even if one is already running. These options are useful for testing environments or when you need to ensure a clean session without interference from existing tabs or extensions. If you encounter issues launching these browsers, refer to our guide on Fix: Weblink Won't Open in Firefox, Edge, but Works in Chrome to troubleshoot common permission or association errors.

Automating with PowerShell and Batch Scripts

Once you have identified the correct paths, you can integrate these commands into PowerShell scripts or .bat files for automation. In PowerShell, you can use the Start-Process cmdlet to launch these applications with elevated privileges if necessary. For example:

Start-Process -FilePath "C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe" -ArgumentList "https://example.com"

This method is cleaner than using raw strings and handles quoting automatically. When writing batch scripts, ensure you escape any special characters and use long paths if short names are not available. Always test your scripts in a non-production environment first to verify that the paths resolve correctly on your specific Windows 11 configuration. Additionally, be aware that some browsers may require administrative rights if you are trying to modify system-wide settings, though simple URL launches generally do not.

Troubleshooting Common Path Issues

If a command fails to launch an application, the most common cause is an incorrect path or missing permissions. Verify the existence of the executable by navigating to the folder in File Explorer. If the path is correct but the application still fails, check for corrupted installations or conflicting security software. For memory-related issues that might affect browser performance during automated launches, see our article on Windows 11 Memory Error: Paging File Disabled in Chrome and Firefox.

Frequently Asked Questions

Why does my Office executable path differ between machines?

Office paths vary based on the installation type (Click-to-Run vs. MSI) and architecture (32-bit vs. 64-bit). Always check both Program Files and Program Files (x86) to locate the correct binary.

Can I launch multiple browsers simultaneously from one script?

Yes, you can run multiple instances concurrently by executing each command in a separate thread or process. Use PowerShell jobs or background processes to avoid blocking the script while each browser loads.

What happens if I don't enclose paths in quotes?

Without quotes, the command interpreter splits the path at spaces, causing errors because it treats parts of the directory name as separate arguments. Always wrap paths containing spaces in double quotes.

How do I find the Firefox executable if it's not in %LOCALAPPDATA%?

If Firefox was installed per-machine for all users, it might be in C:\Program Files\Mozilla Firefox\firefox.exe. Check this location if the local app data path yields no results.

Do these commands work on Windows 10 as well?

Yes, these paths and command structures are largely identical for Windows 10, provided the same versions of the software are installed. Minor variations may occur if older legacy versions are present.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More