Thank you
I will try this out when and if I will have time to get back to this issue
Search found 24 matches
- 2023-Dec-01, 1:38 pm
- Forum: Windows VBScript
- Topic: How to use paths with pauses in PowerShell code inserted to VBS file?
- Replies: 12
- Views: 76628
- 2023-Aug-31, 11:23 pm
- Forum: Windows PowerShell
- Topic: Closing a PowerShell window with other keys [SOLVED]
- Replies: 2
- Views: 7461
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: 7461
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: 7772
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: 7470
- 2023-Aug-09, 10:46 am
- Forum: Windows PowerShell
- Topic: How to close all CMD windows with PS1 script? [SOLVED]
- Replies: 2
- Views: 7601
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: 7601
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: 7470
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: 7601
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: 12
- Views: 76628
Re: How to use paths with pauses in PowerShell code inserted to VBS file?
You are right
Kudos
Kudos