This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Using test in Cygwin and Batch-File


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 for you, but sorry, i'm not yet familiar with Unix- and Windows Commandlines...
Thanks!
Kai



-- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]