QUAW#36327 personenimport Quawonen
svn path=/Website/branches/v2016.3/; revision=32414
This commit is contained in:
25
CUST/QUAW/import/WebDavQUAW.js
Normal file
25
CUST/QUAW/import/WebDavQUAW.js
Normal file
@@ -0,0 +1,25 @@
|
||||
//WebUploadFile "C:\file.txt", "http://server/folder/file.txt", "domain\user", "password"
|
||||
|
||||
//Use this function call and constant to upload a directory and all it's subdirectories
|
||||
//Const basedir = "c:\temp"
|
||||
//WebDownloadFile("", "http://localhost/FlexFilesOpDit01/CNT/C717/115/SLNKDWF.dll");
|
||||
WebdavURL = "https://webdav.quawonen.com/Facilitor/";
|
||||
|
||||
//====================== WebDAV upload single file
|
||||
|
||||
WebDownloadFile("OU_Normale_gebruikers_*.csv", WebdavURL + "ADExport/OU_Normale_gebruikers_*.csv", "quawonen\sa_facilitor_webdav", "2uva8efregeTr&s");
|
||||
|
||||
//====================== WebDAV upload single file
|
||||
function WebDownloadFile (file, url, user, pass)
|
||||
{
|
||||
WScript.Echo("Downloading: " + url);
|
||||
objXMLHTTP = new ActiveXObject("MSXML2.ServerXMLHTTP")
|
||||
objXMLHTTP.open("GET", url, false, user, pass);
|
||||
objXMLHTTP.send(null);
|
||||
|
||||
var oStream = new ActiveXObject("ADODB.Stream");
|
||||
oStream.Open;
|
||||
oStream.Type = 1;
|
||||
oStream.Write(objXMLHTTP.responseBody)
|
||||
oStream.SaveToFile(file, 2);
|
||||
}
|
||||
2
CUST/QUAW/import/gen_import_prs.bat
Normal file
2
CUST/QUAW/import/gen_import_prs.bat
Normal file
@@ -0,0 +1,2 @@
|
||||
CScript WebDavQUAW.js
|
||||
cscript ..\..\..\utils\gen_import\gen_import.wsf QUAW 41>>genimport.log 2>>&1
|
||||
Reference in New Issue
Block a user