Search found 23 matches
- 2023-Aug-31, 11:23 pm
- Forum: Windows PowerShell
- Topic: Closing a PowerShell window with other keys [SOLVED]
- Replies: 2
- Views: 3581
Re: Closing a PowerShell window with other keys
This seem to be working A-OK Write-Host "To close this window press either:" Write-Host " Enter" Write-Host " Space" Write-Host " Esc" function Wait_For_Pressing_Of_A_Specified_Key { do { $keyInfo = [Console]::ReadKey($true) } while ($keyInfo.Key -notin @( [Co...
- 2023-Aug-31, 4:47 pm
- Forum: Windows PowerShell
- Topic: Closing a PowerShell window with other keys [SOLVED]
- Replies: 2
- Views: 3581
Closing a PowerShell window with other keys [SOLVED]
I have this script - but it only closes the PS window when I press Enter [thus ignoring addition of being able to use also Space and Esc ]: Write-Host "To close this window press either:" Write-Host " Enter" Write-Host " Space" Write-Host " Esc" do { $key = $H...
- 2023-Aug-21, 9:35 am
- Forum: Windows PowerShell
- Topic: Inserting PS1 to Tray notification area of Windows for its execution purposes
- Replies: 0
- Views: 3581
Inserting PS1 to Tray notification area of Windows for its execution purposes
Is there a way to put PS1 file or LNK leading to it in the Tray notification area of Windows 10, so that it would be executable like some pinned EXE to Taskbar?
Or any other script file format for that matter?
Or any other script file format for that matter?
- 2023-Aug-20, 9:39 am
- Forum: Windows PowerShell
- Topic: Stop visible countdown from scrolling down content in PowerShell window
- Replies: 1
- Views: 3676
- 2023-Aug-09, 10:46 am
- Forum: Windows PowerShell
- Topic: How to close all CMD windows with PS1 script? [SOLVED]
- Replies: 2
- Views: 3736
Re: How to close all CMD windows with PS1 script?
The problem all along has been an active countdown in CMD window [used it my test files]- it was making any CMD window with it being immune to being closed with PowerShell Even as simple BAT as this one @echo off timeout /t 10 pause will not be closed until the timeout in it is finished, even if PS1...
- 2023-Aug-09, 10:00 am
- Forum: Windows PowerShell
- Topic: How to close all CMD windows with PS1 script? [SOLVED]
- Replies: 2
- Views: 3736
Re: How to close all CMD windows with PS1 script?
This (Get-Process notepad.Kill() close both files opened in Notepad and an empty Notepad window opened by executing of C:\Windows\System32\notepad.exe But this (Get-Process cmd).Kill() closes only this CMD windows that were opened by going to C:\Windows\System32\cmd.exe or C:\Windows\SysWOW64\cmd.ex...
- 2023-Aug-03, 9:47 am
- Forum: Windows PowerShell
- Topic: Stop visible countdown from scrolling down content in PowerShell window
- Replies: 1
- Views: 3676
Stop visible countdown from scrolling down content in PowerShell window
I have this A-OK working script Write-Host "Line of text at the very top" Write-Host Write-Host Write-Host Write-Host Write-Host Write-Host Write-Host Write-Host Write-Host Write-Host Write-Host Write-Host Write-Host Write-Host Write-Host Write-Host Write-Host Write-Host Write-Host Write-H...
- 2023-Jul-25, 4:17 pm
- Forum: Windows PowerShell
- Topic: How to close all CMD windows with PS1 script? [SOLVED]
- Replies: 2
- Views: 3736
How to close all CMD windows with PS1 script? [SOLVED]
Is there way to close all CMD windows [including hidden ones] using strictly PowerShell code?
These two do not work
even when executed with privileges
These two do not work
Code: Select all
Stop-Process -Name cmd.exe -Force
Code: Select all
Stop-Process -Name CMD -Force
- 2023-Jul-18, 12:48 am
- Forum: Windows VBScript
- Topic: How to use paths with pauses in PowerShell code inserted to VBS file?
- Replies: 10
- Views: 38331
Re: How to use paths with pauses in PowerShell code inserted to VBS file?
You are right
Kudos
Kudos
- 2023-Jul-17, 8:56 pm
- Forum: Windows VBScript
- Topic: How to use paths with pauses in PowerShell code inserted to VBS file?
- Replies: 10
- Views: 38331
Re: How to use paths with pauses in PowerShell code inserted to VBS file?
Oh, come on...
Do you really expect power users to turn informative system sound for blockade due to some unknown and only sometimes occurring glitch somehow related to PowerShell? And you assume they do not know how to do that?
But once again: I do appreciate the time spent by you on this issue
Do you really expect power users to turn informative system sound for blockade due to some unknown and only sometimes occurring glitch somehow related to PowerShell? And you assume they do not know how to do that?
But once again: I do appreciate the time spent by you on this issue