Skip to content

Set working directory while launching app from command line #1407

@KarthikeyanVedi

Description

@KarthikeyanVedi

I'm developing an Electron app and using Squirrel for windows installation. I have added the MyApp.exe to PATH pointing to the location %localappdata%\MyApp\MyApp.exe

When the app is run from command line D:\Project\WorkSpace> MyApp the application launches but the working directory of the application is C:\...\AppData\Local\MyApp\app-1.0.0 is it possible to set the working directory of MyApp.exe to D:\Project\WorkSpace ? which is the actual working directory MyApp was run by the user.

I understand that any argument passed to MyApp.exe in the root app directory will be passed to MyApp.exe with in the app-version folder, but can the CWD be set by default without the user having to passing additional args.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature:requestedSuggestions to enhance the library

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions