X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org X-Mail-Handler: MailHop Outbound by DynDNS X-Report-Abuse-To: abuse AT dyndns DOT com (see http://www.dyndns.com/services/mailhop/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX1+nt/zgP1XB7jtO6AHUj0Ab Date: Mon, 28 Nov 2011 15:33:57 -0500 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: system mkdir Message-ID: <20111128203357.GB8758@ednor.casa.cgf.cx> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On Mon, Nov 28, 2011 at 01:31:26PM -0700, Fitzy wrote: >?Hello, >? I have a program which I wrote using Visual Studio 2010, everything >works fine there. >Now I'm trying to get it all running properly under Cygwin. ?It is >compiling successfully, but the following does not work: >system("mkdir temp"); >I use this to create a temporary directory to which temporary files >are written. ?It is then deleted when the program is finished. >?Under VS this command works, under Cygwin it does nothing. ?I've >tried various alternatives >"sudo mkdir temp" etc... >?But can't find anything that will programatically create a directory >under Cygwin. > >?Does anyone know how to do this? Yes. Use the mkdir() function. That is, in fact, very similar to how it should be done in Visual Studio too. cgf -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple