Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Recent
    • Tags
    • Users
    • Register
    • Login

    Detecting C: or D:

    Scheduled Pinned Locked Moved SDK Help
    2 Posts 0 Posters 204 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H Offline
      Helper
      last edited by

      THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

      On 25/02/2005 at 06:50, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   8.027 
      Platform:   Windows  ;   
      Language(s) :     C++  ;

      ---------
      hi i have a problem on some machines to detect if harddiskdrive 😄 (on some machines d:) exist. this directories were selected with a fileselector dialog using

        
      Filename fnDir;  
      if (fnDir.FileSelect(FSTYPE_ANYTHING, GE_DIRECTORY))  
      {  
      ...  
      }  
      

      TRUE was returned and fnDir contents 'c:'

      i tried the following but nothing worked safe:

      1. Tried

        
      BrowseFiles *bf = BrowseFiles::Alloc();  
      bf->Init(fnDir, FALSE);  
      bf->IsDir();   
      

      usually it returns TRUE for 😄 but on some machines (windows xp, same C4D version, same configuration of preferences, ...) it returns FALSE

      so i tried
      2. using

      GeFExist(fnDir,TRUE)
      

      and i saw the same.

      does anybody know what could be the reason for that behaviour?

      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        On 28/02/2005 at 12:59, xxxxxxxx wrote:

        I don't know what could cause this. However, a foolproof way to detect whether a directory exists and is writable would be to create a small dummy file and then delete it immediately.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post