create directory/ change directory
Richard Kreiss
rkreiss at verizon.net
Fri Jun 2 07:17:37 PDT 2017
> -----Original Message-----
> From: Filepro-list [mailto:filepro-list-
> bounces+rkreiss=verizon.net at lists.celestial.com] On Behalf Of Ron Fischer
via
> Filepro-list
> Sent: Thursday, June 1, 2017 5:01 PM
> To: filepro-list at lists.celestial.com
> Subject: create directory/ change directory
>
> HiI am having a problem trying to create a directory then change to
created
> directory and then create a new directory.
> cd Q:\Data
> mkdir directory1
> cd directory1mkdir directory2
> what is happening is directory1 is created in fp directory on drive Q and
nowhere
> is directory2 to be found I am using system commands to perform above
> commands with no success.
> Any help will be most appreciated.
> Windows 7Filepro 5.6
I would suggest that you do one of the following:
Use cd /d q:\data (drive letter and directory(folder) to get to the drive.
Use md (not makdir) as that may or may not be in the path.
MD direcotory1
MD directory1\directory2
Keep in mind that the first md will create the directory in the current
directory or root of the drive you are on.
Option 2
Q:\
Cd data
MD direcotory1
MD directory1\directory2
There is a third option, create a batch file with the parameters as
variables passed to the batch file from filePro or have filePro write the
batch file and the run it or just have filePro create the folders for you as
needed.
I have an output that does this. It checks to see if the directory(folder)
exists, if it doesn't, the folder is created.
Contact me off list id you would like this code.
Richard Kreiss
GCC Consulting
More information about the Filepro-list
mailing list