Microsoft SDK for Java

Application.getStartupPath

Retrieves the path that the application was run from.

Syntax

public static String getStartupPath()

Return Value

Returns a String object that contains the full path to the executable file that started the application.

Remarks

The path returned by getStartupPath can differ depending on how the application is started. If you start your application using an .exe file, this method returns the path to the .exe file.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.