Help with bat file create

By CRITTER
Jun 17, 2005
Topic Status:
Not open for further replies.
  1. I have a file that is in a dated sub-dir. This folder contains file I need to ftp from a server to a local pc as input to a software pkg. This sub-dir gets created every night so a new dated sub-dir is created. I can't do a wildcard ftp due to I only want certain dates. How do i create a date prompt to be used by the user to pull only the dir's they want? Here is my simple script.

    open 999.9.9.9 xxxxx xxxxx
    LCD M:\Mail Merge\Letters\Files
    cd /disk4/Files
    BINARY
    GET Files.txt
    QUIT

    the /disk4/Files will now have a date ie. /disk4/Files/{date}/{files needed}

    Thank you for your help,
    Charlie
  2. gbhall

    gbhall TechSpot Chancellor Posts: 2,327   +49

    fairly trivial for a VBS programmer

    create the batch file on the fly as part one of your job, then execute it in the second part. The actual basic programe to create a suitable batch file does not seem much of a problem, although your post is not clear enough to form a specification.
Topic Status:
Not open for further replies.


Add New Comment

TechSpot Members
Login or sign up for free,
it takes about 30 seconds.
You may also...


Get complete access to the TechSpot community. Join thousands of technology enthusiasts that contribute and share knowledge in our forum. Get a private inbox, upload your own photo gallery and more.