Computer Hope

Other => Other => Topic started by: Clare  Gillies on March 31, 2004, 05:38:52 PM

Title: Microsoft DOS
Post by: Clare  Gillies on March 31, 2004, 05:38:52 PM
 ???
I want to check if a directory exists, create it if it doesn't and then put an ftp'd text file in it. In dos for a bat file.
Title: Re: Microsoft DOS
Post by: Sal on April 06, 2004, 02:25:03 PM
How about using a conditional statement to check for the existense of the directory and create if necessary

then copy the file?

If exist c:\directory goto sub1
MD c:\directory
:sub1 copy c:\ftp.txt c:\directory\

Sal