Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 424193
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T19:15:20+00:00 2026-05-12T19:15:20+00:00

Can anybody help me in finding out how to verify that _tmkdir succeeded. For

  • 0

Can anybody help me in finding out how to verify that _tmkdir succeeded.
For example i wish to create a file within another folder. This folder i will create at runtime. So i will give the following command.

sFilePath = sFilePath + _T("\\P-Series Communication Logs");
_tmkdir( sFilePath );

where sFilePath would initially contain a software installation path which will be obtained from registry.

i wish to know if _tmkdir succeeded or not.

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T19:15:20+00:00Added an answer on May 12, 2026 at 7:15 pm

    You can check the return value of _tmkdir to see if the call succeeded. If it failed, the errno global variable indicates the reason for failure:

    int result = _tmkdir(sFilePath);
    if (result == 0) {
        // succeeded
    }
    else {
        // failed
        if (errno == EEXIST) {
            // already exists!
        }
    }
    

    For more information, look at the MSDN documentation for _tmkdir here and errno here.

    I hope this helps!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can anybody help me with retrieving some elements from the following example text: sdfaasdflj
Can anybody help with converting an SDL_Surface object, a texture loaded from a file,
Can anybody help or point me in the right direction for a tutorial/example for
Can anybody help me out with this exception. I have tried couple of fixes
can anybody help/advice that is there any way to parse HTML tags appear in
Can anybody help me out in how to activate 'close' button of askquestion() of
Can anybody help me to find out how to call rrd_update_r function of the
Can anybody please help me finding any good tutorial/sample code about integrating Spring3-MVC and
Can anybody help me understand why are there two loops here? <?php // create
Can anybody help me out, I'm stuck, don't know how to write a php

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.