Update schtask_as.py

Signed-off-by: Kahvi-0xFF <46513413+Kahvi-0@users.noreply.github.com>
This commit is contained in:
Kahvi-0xFF
2024-06-11 03:41:48 -04:00
committed by Marshall Hallenbeck
parent e7689542f2
commit 447bded268
+1 -4
View File
@@ -200,10 +200,7 @@ class TSCH_EXEC:
<Command>cmd.exe</Command>
"""
if self.__retOutput:
if self.location is None:
fileLocation = "\\Windows\\Temp\\"
else:
fileLocation = self.location
fileLocation = "\\Windows\\Temp\\" if self.location is None else self.location
if self.file is None:
self.__output_filename = f"{fileLocation}{gen_random_string(6)}"
else: