Using test in Cygwin and Batch-File

2006-08-16 Thread Kai Schlichting
Hi! I wanna test, if a path in Cygwin exists, and if not, it should be created. I tried to write a Batch-File, but dont know how to fill the if statement: if not %cygwin%\test -d /myfolder/myfolder2 %cygwin%\mkdir /myfolder/myfolder2 How would you solve the Problem? I think, its easy

RE: Using test in Cygwin and Batch-File

2006-08-16 Thread Dave Korn
On 16 August 2006 23:46, Kai Schlichting wrote: Hi! I wanna test, if a path in Cygwin exists, and if not, it should be created. I tried to write a Batch-File, but dont know how to fill the if statement: if not %cygwin%\test -d /myfolder/myfolder2 %cygwin%\mkdir /myfolder/myfolder2