Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Microsoft DOS  (Read 3215 times)

0 Members and 1 Guest are viewing this topic.

Clare  Gillies

  • Guest
Microsoft DOS
« 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.

Sal

  • Guest
Re: Microsoft DOS
« Reply #1 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