Skip to content

Commit 00f05b3

Browse files
Update apccontrol.bat
Escape % char
1 parent 03706fb commit 00f05b3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Apcupsd (Windows)/apccontrol.bat

+3-3
Original file line numberDiff line numberDiff line change
@@ -115,12 +115,12 @@ GOTO :done
115115

116116
:onbattery
117117
%POPUP% "Power failure. Running on UPS batteries."
118-
powershell.exe -Command ".\Send-TelegramNotification.ps1 -Message 'Power failure. Running on UPS batteries. %F0%9F%94%8B'"
118+
powershell.exe -Command ".\Send-TelegramNotification.ps1 -Message 'Power failure. Running on UPS batteries. %%F0%%9F%%94%%8B'"
119119
GOTO :done
120120

121121
:offbattery
122122
%POPUP% "Power has returned. No longer running on UPS batteries."
123-
powershell.exe -Command ".\Send-TelegramNotification.ps1 -Message 'Power has returned. No longer running on UPS batteries. %F0%9F%94%8C'"
123+
powershell.exe -Command ".\Send-TelegramNotification.ps1 -Message 'Power has returned. No longer running on UPS batteries. %%F0%%9F%%94%%8C'"
124124
GOTO :done
125125

126126
:mainsback
@@ -207,4 +207,4 @@ rem
207207
GOTO :done
208208

209209
:done
210-
rem That's all, folks
210+
rem That's all, folks

0 commit comments

Comments
 (0)