Announcement

Collapse
No announcement yet.

Pass long command line to lftp.exe via cmd

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Pass long command line to lftp.exe via cmd

    I am trying to pass a command through cmd, but with NO success!! Any ideas?

    The commmand is passed to lftp and works when I enter it manually:


    "lftp -e 'mirror -R /cygdrive/c/Photos/ /public_html/Test' -u username,password servername"


    My AMS code:
    result = File.Run("cmd.exe", "lftp -e 'mirror -R /cygdrive/c/Photos/ /public_html/Test' -u username,password servername", SW_SHOWNORMAL, false);

  • #2
    According to what you posted as working, that should probably be written as
    Code:
    result [COLOR="#FF0000"]=[/COLOR] File[COLOR="#FF0000"].[/COLOR]Run([COLOR="#800080"]"cmd.exe"[/COLOR][COLOR="#FF0000"],[/COLOR] [COLOR="#800080"]"lftp -e 'mirror -R /cygdrive/c/Photos/ /public_html/Test' -u "[/COLOR] [COLOR="#FF0000"]..[/COLOR] username [COLOR="#FF0000"]..[/COLOR] [COLOR="#800080"]","[/COLOR] [COLOR="#FF0000"]..[/COLOR] password servername[COLOR="#FF0000"],[/COLOR] SW_SHOWNORMAL[COLOR="#FF0000"],[/COLOR] [COLOR="#0000FF"]false[/COLOR])[COLOR="#FF0000"];[/COLOR]
    Ulrich

    Comment

    Working...
    X