Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Login
  • Contact Us
English (UK)
US English (US)
GB English (UK)

You Bring the MFT Questions

Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

Popular Topics: Public,

  • Home
  • Public
  • Vendor - Specific
  • Globalscape EFT

How to export a list of EFT users

Written by Georgia Martin

Updated at May 17th, 2023

  • Public
    Vendor - Specific
+ More

Question

How can I export a list of EFT users?

 

Answer

  1. Copy the script below into Notepad
  2. Modify the server administrator login information as necessary
  3. Save the script with a '.VBS' extension
  4. At a command prompt, use CSCRIPT to run the script or, in Windows XP and newer operating systems, double-click the file to execute the script. 

 

**Be sure to edit the script to change the Server, Port, Username, and Password to your Server's settings. Remove any extra blank lines introduced when you copy and paste the text.**

 

'
' FILE: CreateUserListSpreadSheet
' CREATED: 13 OCT 2004 GTH
' PURPOSE: List the users of a site and create an excel spreadsheet.
' Legal notice! 
' This script provided as a courtesy, BUT USE IT AT YOUR OWN RISK. 
' You can use this script free of charge, private or commercial. 
' No warranty, expressed or implied, is made by GlobalSCAPE as to the 
' accuracy of this script or its fitness for a particular use. 
' The act of distribution does not constitute any such warranty, 
' and no responsibility is assumed by GlobalSCAPE in the use of this script. 
'
Set SFTPServer = WScript.CreateObject("SFTPCOMInterface.CIServer")
CRLF = (Chr(13)& Chr(10))
   txtServer = "localhost"
   txtPort =  "1100"
   txtUserName = "eft"
   txtPassword = "eft"
' On Error Resume Next
SFTPServer.Connect txtServer, txtPort, txtUserName, txtPassword
If Err.Number <> 0 Then
   WScript.Echo "Error connecting to '" & txtServer & ":" & txtPort & "' -- " & err.Description & " [" & CStr(err.Number) & "]", vbInformation, "Error"
  WScript.Quite(255)
Else
   WScript.Echo "Connected to " & txtServer
End If
set Sites=SFTPServer.Sites
Set oExcel = WScript.CreateObject("Excel.Application")
oExcel.visible = true
Set oWorkbook = oExcel.Workbooks.Add
For i = 0 to SFTPServer.Sites.Count-1
   set theSite=Sites.Item(i)
   Set theSheet = oWorkbook.Worksheets.add
   theSheet.name = theSite.Name
   theSheet.Cells(1, 1) = "Users:"
   arUsers = theSite.GetUsers()
   For j = LBound(arUsers) to UBound(arUsers)
      theSheet.Cells((j+2), 1) = arUsers(j)
   Next
  theSheet.Columns("A:A").EntireColumn.Autofit
Next
Set oExcel = nothing
SFTPServer.Close
Set theSite = nothing
Set SFTPServer = nothing

eft transfer export users

Was this article helpful?

Yes
No
Give feedback about this article

Related Articles

  1. Changing Root Folder of EFT While Retaining Permissions

     383 views of this article

  2. EFT Upgrade Information

     368 views of this article

Copyright © 2025 Pro2col Ltd

Terms of Sale

Privacy Policy

Support T's & C's


Knowledge Base Software powered by Helpjuice

Expand