Now I just needed it to be launched via AHK. How?
The code is simply.
Code: Select all
Import-Csv yourfile.csv |Out-GridView
Code: Select all
Import-Csv yourfile.csv |Out-GridView
Code: Select all
SetKeyDelay, 0, 0
Run, C:\WINDOWS\system32\WindowsPowerShell\v1.0\powershell_ise.exe
Sleep, 3000
string=Import-Csv yourfile.csv |Out-GridView
clipboard = %string%
ControlSend,, {Enter},ahk_exe powershell_ise.exe
Send ^v
Sleep, 200
ControlSend,, {Enter},ahk_exe powershell_ise.exe
Return
Code: Select all
Run, powershell -NoExit -Command "Import-Csv D:\Desktop\yourfile.csv | Out-GridView"
tmplinshi wrote:Code: Select all
Run, powershell -NoExit -Command "Import-Csv D:\Desktop\yourfile.csv | Out-GridView"
Code: Select all
Run powershell -NoExit -Command "Import-Csv \"D:\Desktop\your file.csv\" | Out-GridView"
Code: Select all
Run powershell -NoExit -Command "Import-Csv 'D:\Desktop\your file.csv' | Out-GridView"
Cool stuff.tmplinshi wrote:It's because of the spaces in your path. You can either use:or:Code: Select all
Run powershell -NoExit -Command "Import-Csv \"D:\Desktop\your file.csv\" | Out-GridView"
Code: Select all
Run powershell -NoExit -Command "Import-Csv 'D:\Desktop\your file.csv' | Out-GridView"
Users browsing this forum: Google [Bot] and 372 guests