![]() ![]() This example starts a process that prints the C:\PS-Test\MyFile.txt file. Start-Process -FilePath "sort.exe" Example 2: Print a text file The command usesĪll the default values, including the default window style, working folder, and credentials. This example starts a process that uses the Sort.exe file in the current folder. Examples Example 1: Start a process that uses default values Starting the process in a new window, or using alternate credentials. You can use the parameters of Start-Process to specify options, such as loading a user profile, Start-Process starts the program that's associated with the file, similar to the Invoke-Item That can be opened using a program on the computer. To specify the program that runs in the process, enter an executable file or script file, or a file Start-Process creates a new process that inherits all the environment variables that are defined ![]() The Start-Process cmdlet starts one or more processes on the local computer. Starts one or more processes on the local computer. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |