Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Dears,
I have this PowerShell command. Please help me how to input to VS.
(Get-Content "D:\Settings.ini") | ForEach-Object { $_ -replace 'OPENAFTEREXPORT=false','OPENAFTEREXPORT=true' } | Set-Content "C:\Settings.ini"I'm trying with this way:
Put above command line to .ps1 file then open it with these code:
Script = "R:\Testing.ps1"
Shell("PowerShell.exe " & """" & Script & """", vbNormalFocus)Script = "R:\Testing.ps1"
Process.Start("PowerShell.exe", Script)Thank you very much!
Solved! Go to Solution.