cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
open with... help
open with... help
Jan 27, 2015 at 5:37pm UTC
Nanyo
(88)
hello I am trying to open a .ps1 file(powershell file) with a C++ program. The problem I meet is that the .ps1 file is opening in Powershell ISE. I want to make it open with Powershell command line. Is there a function or a bunch of code that do so?
Thanks!!
Jan 27, 2015 at 9:03pm UTC
Computergeek01
(5613)
Powershell command line help page:
https://technet.microsoft.com/en-us/library/hh847736.aspx
It looks like you want to specify the 'PSConsoleFile' flag. Permanent changes in the file associations are done in the registry on a per user basis.
Topic archived. No new replies allowed.