Webdrive Command Line Interface Guide

Webdrive Command Line Interface Guide

QuickStart Guide Command Line Options There are several tasks that can be performed via command line interface in WebDrive including mounting and dismounting connections and activating and deactivating licenses. The command line utility WebDriveCLI.exe can be found in the installation folder, for Windows it’s ‘c:\Program Files\WebDriveApp\bin’. To get a list of command line options just run WebDriveCLI.exe without any arguments in a command prompt. To use command line arguments on Mac you can execute WebDriveCLI via the following command ‘./Applications/WebDrive.app/Contents/bin/WebDriveCLI --activate <regcode>’ Here are some example command line options, and a batch file example of mounting a drive and copying files. Activate license with a registration code WebDriveCLI --activate <registration code> Deactivate license with a registration code WebDriveCLI --deactivate <registration code> Display current license information WebDriveCLI --licenseinfo Mount a drive WebDriveCLI --mount "<connection name>" --nowait Dismount a drive WebDriveCLI —-command dismount –-sitename "<connection name>" --wait Flush the Cache WebDriveCLI --command flushcache --sitename "<connection name" [--flushfiles] [--flushfolders] This will flush files or folders from the cache while a connection is mounted, this command will not work if the drive isn’t currently mounted 2 © South River Technologies southrivertech.com Sample Window Batch File to mount drive and copy a file and disconnect @echo off set webdrive="c:\program files\webdriveapp\bin\WebDriveCLI" set sitename=GoogleDrive @echo mounting site '%sitename%' rem mount the site, don't open explorer '--startup' and return after drive has mounted '--nowait' %webdrive% --mount %sitename% --startup --nowait @rem check process return code, anything other than 0 means it failed to mount if %ERRORLEVEL% GEQ 1 echo Error mounting drive if %ERRORLEVEL% GEQ 1 goto EXIT @echo drive mounted successfully rem copy files etc. copy c:\temp\webdrivebigexe.exe w:\ /Y echo dismounting '%sitename%' and waiting for any uploads to complete ... %webdrive% --command dismount --sitename %sitename% --wait --silent echo dismount complete :EXIT 3 © South River Technologies southrivertech.com Contact Information South River Technologies, Inc. 1910 Towne Centre Blvd Suite 250 Annapolis, Maryland 21401 USA Toll Free: 1-866-861-9483 Main: 443-603-0290 Fax: 410-266-1191 Website: https://www.webdrive.com Online Support: https://helpdesk.webdrive.com 4 © South River Technologies southrivertech.com .

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    4 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us