From 1f99a776fbeccaf6e888b7ffc97724bd1ec89782 Mon Sep 17 00:00:00 2001 From: jblu Date: Tue, 26 Jul 2022 14:07:01 -0500 Subject: [PATCH] added some rest scripts --- powershell/REST API/REST-Basic-Connection-Template.ps1 | 0 powershell/REST API/REST-Get-Server-Information.ps1 | 0 powershell/REST API/REST-testing.ps1 | 0 python/REST API/REST-connection.py | 0 python/REST API/REST-move-user.py | 0 python/eftcom-getusedspace.py | 9 +++++++++ 6 files changed, 9 insertions(+) mode change 100755 => 100644 powershell/REST API/REST-Basic-Connection-Template.ps1 mode change 100755 => 100644 powershell/REST API/REST-Get-Server-Information.ps1 mode change 100755 => 100644 powershell/REST API/REST-testing.ps1 mode change 100755 => 100644 python/REST API/REST-connection.py mode change 100755 => 100644 python/REST API/REST-move-user.py create mode 100644 python/eftcom-getusedspace.py diff --git a/powershell/REST API/REST-Basic-Connection-Template.ps1 b/powershell/REST API/REST-Basic-Connection-Template.ps1 old mode 100755 new mode 100644 diff --git a/powershell/REST API/REST-Get-Server-Information.ps1 b/powershell/REST API/REST-Get-Server-Information.ps1 old mode 100755 new mode 100644 diff --git a/powershell/REST API/REST-testing.ps1 b/powershell/REST API/REST-testing.ps1 old mode 100755 new mode 100644 diff --git a/python/REST API/REST-connection.py b/python/REST API/REST-connection.py old mode 100755 new mode 100644 diff --git a/python/REST API/REST-move-user.py b/python/REST API/REST-move-user.py old mode 100755 new mode 100644 diff --git a/python/eftcom-getusedspace.py b/python/eftcom-getusedspace.py new file mode 100644 index 0000000..82f1c7d --- /dev/null +++ b/python/eftcom-getusedspace.py @@ -0,0 +1,9 @@ +import win32com.client as win32 +from pathlib import Path + +server = win32.gencache.EnsureDispatch('SFTPCOMInterface.CIServer') +server.ConnectEx('192.168.4.14', 1100, 0, 'a', 'QjIlmT4H') + +a = server.ICIClientSettings.GetUsedSpace + +print(a) \ No newline at end of file