Re: Automate a task for an FTP Site



On 26 Aug 2006 10:25:21 -0700, wrote in
microsoft.public.scripting.vbscript:

Is there a script that can do the following?

* I have a folder on my computer with X amount of XML files
* I need to create one folder on the FTP site for each one of the XML
files (the name of the folder will be the same name of the XML file,
less the .xml extension)

Obviously I don't want to manually create each folder. Since the files
are on my computer already, is there a script that can do it
automatically?

I have never used native FTP in VBS; this tip by Jerold Schulman
<http://www.jsifaq.com/SF/Tips/Tip.aspx?id=8297> might get go started.

On the other hand, the CLI I use (4NT) provides transparent FTP support
and I use that quite a lot. Skeleton:

FOR %fn IN (*.XML) MD "ftp://server/%@NAME[%fn]";

Couldn't be simpler. 4NT's FTP (and HTTP) support is documented at
<http://jpsoft.com/help/ftpservers.htm>. 4NT is a commercial product.

--
Michael Bednarek http://mbednarek.com/ "POST NO BILLS"
.



Relevant Pages

  • Re: Copy all files of type .xml
    ... I didn't see if you require the use of FTP, but if not and both are windows ... workstations that you can access and the folder is shared somehow, ... >>> I need to copy all the .xml files in a source folder on a server to a ... >>> folder on a client machine. ...
    (microsoft.public.scripting.vbscript)
  • Re: Scripts for uploading/downloading and zipping/unzipping folders
    ... I do most of these quite regularly, using the transparent ftp support in ... >I need a few sample scripts for the following tasks: ... >- to upload a folder via ftp ... >- to zip and upload a folder via ftp ...
    (microsoft.public.scripting.vbscript)
  • Re: Drag and Drop Index .pub files into mapped FTP folder 2 cng we
    ... folder on my hard drive where I can direct the output on a consistent basis. ... when you upload to the web...and I know where to look when it is time to FTP ... website you saw, and viewed MY COMPUTER, the index_files folder, contained ... when I save the Publisher .pub file, ...
    (microsoft.public.publisher.webdesign)
  • Re: Cannot get Cerverus ftp server to work
    ... When i create a user Cerverus asks me for virtual root folder and i add ... Those seem to be permissions that the FTP server is allowing for its ... If the O/S is using the FAT32 file system that the FTP folder is created on, ...
    (comp.security.firewalls)
  • Re: hmt will not load in FTP client after proxy server problems.
    ... After you make the changes in your Publisher file on your computer, ... You say your FTP ... to upload the new html files to your site, and they should overwrite the old ... output to a folder on your computer, from which you will use the ftp client ...
    (microsoft.public.publisher.webdesign)