dans ce code :
pourquoi le "$objNotifyIcon.BalloonTipTitle" prends la valeur de "is" et "$objNotifyIcon.BalloonTipText" prends la valeur de "this", et comment le résoudre?
Code:
@echo off
call:winAlert Info , C:\Users\LenovoX250\Desktop\favicon.ico , this is my personal title. , this is my personal paragraph.
pause
goto :eof
:winAlert
set icon=%1
set iconPath=%2
set title=%3
set paragraph=%4
echo [void] [System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms"); $objNotifyIcon = New-Object System.Windows.Forms.NotifyIcon; $objNotifyIcon.Icon = [System.Drawing.SystemIcons]::Information; $objNotifyIcon.BalloonTipIcon = "%icon%"; $objNotifyIcon.Icon = "%iconPath%"; $objNotifyIcon.BalloonTipText = "%title%"; $objNotifyIcon.BalloonTipTitle = "%paragraph%"; $objNotifyIcon.Visible = $True; $objNotifyIcon.ShowBalloonTip(10000); > alert.ps1
powershell.exe -ExecutionPolicy Bypass -File "C:\Users\LenovoX250\Desktop\alert.ps1"
exit /b
pourquoi le "$objNotifyIcon.BalloonTipTitle" prends la valeur de "is" et "$objNotifyIcon.BalloonTipText" prends la valeur de "this", et comment le résoudre?