New
#51
do i need restart after editing variables? after I added c:\windows or %systemroot% and then use $env:path -split ';'
c windows still not showing up.
edit: its working now with
Code:$Shell = New-Object -ComObject shell.application $SavedPaths = ( $Shell.Windows() | select -expand LocationURL ) Get-Process explorer | Stop-Process $SavedPaths | ForEach { explorer $_ }
issue is after restarting explorer it requires user to press enter to execute the last line "$SavedPaths | ForEach { explorer $_ }" in order to open up previous folders. how can we get it enter that line automatically?