TechSpot

Help with bat file create

By CRITTER
Jun 17, 2005
  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,418   +77

    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.

Similar Topics

Add New Comment

You need to be a member to leave a comment. Join thousands of tech enthusiasts and participate.
TechSpot Account You may also...