Find the right delimiter

I developed an application based cross-platform LabVIEW. It will work on Mac OSX, Linux and Windows. It must reliably detect the operating system, it runs using delimiters of right for access roads (I generate filenames / files using other inputs on the front panel).

I have been using a craft of all kinds to do this. I use a server VI reference and use the node name property of the BONE, he wire in a search / replace string VI and count the number of times wherever a 'Windows' substring is replaced. If the number of replacements is greater than 0, it's Windows. Otherwise, I have test Linux. Do the same thing. Then if it is neither Windows nor Linux, I suppose it's Mac OS x.

This hack who has worked for the screws running on Mac OSX and Windows, doesn't seem to work for the application compiled on Windows LabVIEW PDS (the absence of a gcc cross-compiler style for LabVIEW is a kind of a topic thought for me right now since NEITHER forces developers to choose an operating system by creating unnecessary barriers for cross-platform compilation, but we won't go into that). There is no other point in my code which detect the right delimiter to use ("": "for Mac HFS," / "for Linux file systems and"------"to Windows FAT32 and NTFS).

I imagine that there are people here who have tried anything of the sort. Is there an operating system detects and find the good Delimiter.vi that someone can have and want to share?

Sometimes the use of strings is inevitable, in the relatively few cases, there are a few useful screws in vi.lib to help in cross-platform problems.

Tags: NI Software

Similar Questions

Maybe you are looking for

  • Using a Mac as a media server

    I would use a Mac Mini as the entrance to multimedia server of my sound system. I need to make the Mac Mini iTunes DLNA server that can connect to the device that acquires different sources and distributes the sound for different areas of households

  • Dear Sir, can get back you cult - Mozilla add-on

    Dear Sir, can get back you cult - Mozilla add-on ( http://suncult.sourceforge.net/ ). It is not possible to get it for a long time now! It is so important for me. Or tell me is it now the similar module, I try to find it, but I can't. Best regards Mi

  • Portege R500-10I: error message - PwdBank.exe read of address F927AB58

    Our Portégé R500-10i don't stop error on screen with the error messages: Access violation at address 00425086 in module 'PwdBank.exe. Read of address F927AB58 Everyone has seen this before, or can anyboy help me solve this problem?

  • Sound Recorder-how do for editing audio files

    Sound recorder Let's say that I accidentally left the sound recorder continue to save in the next song for a few seconds, how can I go back and change or delete, this partial song I leave the tower. In other words, I recorded the song I wanted, succe

  • Incoming call to Smartphones blackBerry - unique ring only previously diverted to vmail

    Hello I'm having a problem with incoming calls: I get a ring (regardless of the type of ringing) in the normal profile before that the incoming call is diverted to vmail. The phone is not in silent/unavailable mode and started to vibrate/ring, low vo