Ask questions about creating Graphical User Interfaces (GUI) in PowerShell and using WinForms controls.
Forum rules
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
This topic is 5 years and 2 weeks old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked
apowershelluser
Posts: 194
Last visit: Mon Apr 15, 2024 3:21 pm
Answers: 2
Post
by apowershelluser » Tue Mar 26, 2019 2:29 pm
function LoadFile{
$global :File = test-path -path C:\Windows\Utilities\Sapien.zip
}
while ( $true )
{
LoadFile
if ( $global :File -eq $false )
{
$Options = @ (
"/E" ,
"/l"
)
$rclog = Robocopy "C:\users\tech\Documents\SAPIEN" \xxx $Options
$rclog | out-file C:\users\tech\Documents\SAPIEN\Filecount.txt
#Compress-Archive -Path C:\users\test\Documents\SAPIEN -DestinationPath C:\Windows\Utilities\Sapien.zip -CompressionLevel NoCompression -Update
Write-Host "Kompressor Completed..."
}
else {
}
Start-Sleep -Seconds 10
}
I don't appear to be getting any toast notifications but I know they work as this example works just fine and my
https://www.addictivetips.com/windows-t ... indows-10/
and my .zip file is being created
I essentially want to zip my sapien folder to another directory and then have a toast notification stating it's complete.
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times
Post
by jvierra » Tue Mar 26, 2019 2:37 pm
Why would you need toast to tell you that when a folder can be compressed in a few seconds. It seems like overkill.
apowershelluser
Posts: 194
Last visit: Mon Apr 15, 2024 3:21 pm
Answers: 2
Post
by apowershelluser » Tue Mar 26, 2019 2:42 pm
Regardless right?
The toast notification is not working for me
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times
Post
by jvierra » Tue Mar 26, 2019 2:49 pm
Are you asking about "toast" or about "NotifyIcon"?
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times
Post
by jvierra » Tue Mar 26, 2019 3:41 pm
???? Olga B? She just posted the following:
""
Hello,
I can't reproduce your issue. I created Tray app using your code. It works as expected.
Also it can be Windows issue. Try to re-start machine or re-logon
""
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times
Post
by jvierra » Tue Mar 26, 2019 3:42 pm
If you posted the code used to open the notification it would be easier to understand what you are doing.
apowershelluser
Posts: 194
Last visit: Mon Apr 15, 2024 3:21 pm
Answers: 2
Post
by apowershelluser » Tue Mar 26, 2019 3:45 pm
jvierra wrote: ↑ Tue Mar 26, 2019 3:41 pm
???? Olga B? She just posted the following:
""
Hello,
I can't reproduce your issue. I created Tray app using your code. It works as expected.
Also it can be Windows issue. Try to re-start machine or re-logon
""
I’m referring to the image she posted. Those are toast notifications correct?
This topic is 5 years and 2 weeks old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked