Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. batch

batch

Scheduled Pinned Locked Moved Database
questionhelp
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sardinka
    wrote on last edited by
    #1

    I have a batch file where I am put a file into ftp site. The problem is that my file name are changing every day. How do I supply this file into batch file? Or is any other way to do this? open ftp.site user test pass test lcd C:\ cd .. put test.txt bye

    A 1 Reply Last reply
    0
    • S sardinka

      I have a batch file where I am put a file into ftp site. The problem is that my file name are changing every day. How do I supply this file into batch file? Or is any other way to do this? open ftp.site user test pass test lcd C:\ cd .. put test.txt bye

      A Offline
      A Offline
      Anonymous
      wrote on last edited by
      #2

      There are a couple of possible solutions: 1. Create a simple program that creates a fresh FTP script each day. Example BAT file: @echo off echo open ftp.site > myftpscript.txt echo user test >> myftpscript.txt echo _etc_ >> myftpscript.txt echo put %%1 >> myftpscript.txt echo bye >> myftpscript.txt ftp -n -s:myftpscript.txt 2. Use "mput *.txt" instead of "put test.txt" to transfer all matching files from your source directory. Hope this helps. Andy PS: This was probably the wrong forum to post this question to. :)

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups