Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1387ed0

Browse files
committed
This %TEMP% is a mere cause of problems (e.g. --os-cmd in MSSQL the BULK INSERT with '%TEMP%\foo' does not work), stick with C:/WINDOWS/Temp
1 parent 4ba22b5 commit 1387ed0

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

plugins/generic/misc.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,7 @@ def __init__(self):
5151
def getRemoteTempPath(self):
5252
if not conf.tmpPath:
5353
if kb.os == "Windows":
54-
if kb.dbms == "Microsoft SQL Server":
55-
conf.tmpPath = "%TEMP%"
56-
else:
57-
conf.tmpPath = "C:/WINDOWS/Temp"
54+
conf.tmpPath = "C:/WINDOWS/Temp"
5855
else:
5956
conf.tmpPath = "/tmp"
6057

0 commit comments

Comments
 (0)