Get Windows Folder Paths on Win 2000

I downloaded the windows_folder_path.vi from NI site, where I can see that "This VI is supported on Windows 2000, XP, and Vista."
If I use it in an executable that searches for Application Data folder, it works under XP, but it doesn't under a fresh Win 2000 SP4 installation.
A pop-up with the message:
Entry poin Not found
The procedure entry point SaferGetPolicyInformation could not be located in the dynamic link library ADVAPI32.dll
is shown.
When I press the OK button, another popup
LabVIEW: Resource not found.
An error occurred loading VI 'windows_folder_path.vi'.
LabVIEW load error code 3: Could not load front panel.
I'm confused because here (MSDN, Microsoft Developer Network) I can see that  the SaferGetPolicyInformationfunction requires WinXP or Vista
Isn't this vi expected working properly under Win 2000?
In the next days I'll do the same test on a Vista machine, and I hope.... 
How can I get the Application Data path on WinXP, 2000 and Vista? With different languages OS this folder has a different name (Application Data, Dati Applicazioni, ...) so I can't build the path by myself.
I don't know if this helps, but I'm developing with LabVIEW 8.2.1and WinXP Pro
Vix
In claris non fit interpretatio
Using LV 2013 SP1 on Win 7 64bit
Using LV 8.2.1 on WinXP SP3
Using CVI 2012 SP1 on Win 7 64bit, WinXP and WinXP Embedded
Using CVI 6.0 on Win2k, WinXP and WinXP Embedded
Solved!
Go to Solution.

Use the registry functions of LV to get direct access.
The folders for the current logged in user is under:
HKEY_CURRENT_USER\Software\Microsoft\Windows\Curre​ntVersion\Explorer\Shell Folders, the value is AppData
The Fodlers for all users is under:
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Curr​entVersion\Explorer\Shell Folders, the value is Common AppData
Message Edited by waldemar.hersacher on 10-22-2008 10:10 AM
Waldemar
Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
Don't forget to give Kudos to good answers and/or questions

Similar Messages

  • When installing or uninstalling iTunes I get 'The folder path 'My Music' contains an invalid character' and fails

    When installing or uninstalling iTunes I get 'The folder path 'My Music' contains an invalid character' and fails

    Download the Windows Installer CleanUp utility from the following page (use one of the links under the "DOWNLOAD LOCATIONS" thingy on the Major Geeks page):
    http://majorgeeks.com/download.php?det=4459
    To install the utility, doubleclick the msicuu2.exe file you downloaded.
    Now run the utility ("Start > All Programs > Windows Install Clean Up"). In the list of programs that appears in CleanUp, select any iTunes entries and click "Remove", as per the following screenshot:
    Quit out of CleanUp, restart the PC and try another iTunes install. Does it go through properly this time?

  • How to get KD Folder path

    Hi,
    How to get the full path for a given folder ID in KD ?
    I am using Java IDK 5.3
    Looking for a method like this:
    String fullPath = getFolderPath(200);
    Thanks.

    Besides, the HTML input type="file" lets the client choose a file to upload and it only sends the file contents along the request body from the client to the server. I have reread your question over three times, but I really, really don't see any relation between that HTML code line and your actual problem. Aren't you confusing the client-server relation and the concepts behind it?
    At least I can tell you that you can't get the folder path in the server side (as asked in the topic subject), although some browsers (e.g. IE) will do this, but this is faulty and you shouldn't rely on this. Just obtain the file contents from the request body. There are parsers for this as well, such as Apache Commons FileUpload.

  • Get Window 10 app states Win 10 install impossible - no supported network device.

    The "Get Windows 10" app says that Windows 10 can't be installed on my Pavilion dv6 7014nr because I have no supported networking devices. Obviously I have generic, working networking devices. Windows Device Manager says that all of my networking devices have current drivers. The OS device manager says all of my devices have current drivers except my display adaptor--GeForce GT-650m.  I am reluctant to install the current driver because it does not come form HP and I do not want to break my laptop.  Besides, it not a networking device. A 6/24/15 forum post said the Get 10 app was reporting many HP laptops were being told they were not compatible with WIN 10 and the HP was investigating. What does this ambiguous networking device comment refer to?  Is there a next step?  Has HP any general advice for those who fail the MSoft prep app?

    same problem in my case too

  • How to get sub folder path

    I am trying to get sub string from a string with powershell
    $completeString = "C:\Development\Work\ABC-SharePoint\ABC\css\ABC\XYZ"
    $startingString = "ABC"
    I want "ABC\css\ABC\XYZ"
    note: ABC is multiple times in string

    this also worked
    $completeString.Substring($completeString.IndexOf($startingString  + "\"))
    You might want to add a leading backslash to the substring test:
    $completeString = "C:\Development\WorkABC\ABC-SharePoint\ABC\css\ABC\XYZ"
    $startingString = "ABC"
    $completeString.Substring($completeString.IndexOf($startingString + "\"))
    ABC\ABC-SharePoint\ABC\css\ABC\XYZ
    [string](0..33|%{[char][int](46+("686552495351636652556262185355647068516270555358646562655775 0645570").substring(($_*2),2))})-replace " "

  • Programatically get windows version (XP or Win 7)

    Can't seem to find this one.  Need to know what version Windows is running within my LabView 13 program and behave differently if Win7 vs. XP.  I tried fishing in the .net classes and there are so many - couldn't find OS version there.  This must be easy - anybody?  Thanks

    This should do it:
    (The property node class is /VI Server/Application)

  • Get Folder path

    Hi,
    Windows xp,
    Database 10g,
    Forms 10g,
    Is there any way to get os folder path usiing webuitl dialog or at least check the current folder exists or not.
    Thanks,

    Where do you want to verify if a specific directory or file exists? On the client or on the middle tier? You could try to create a file in the directory you want to check (or try to open the file in read mode to check if a file exists) with client_text_io (client) or text_io (middle tier). By that you would also be sure that you have read/write privilages in the directory. If you don't want to create / read a file (on the client) there is the possibility to create a java bean which checks this with the File class (isFile() or isDirectory())
    http://docs.oracle.com/javase/1.4.2/docs/api/java/io/File.html#isDirectory()
    http://docs.oracle.com/javase/1.4.2/docs/api/java/io/File.html#isFile()
    cheers

  • Getting folder Path if I know the FolderID

    Hi
    I can get the folder path If I know the folderID I use a pretty elaborate method to do this.
    I have been trying to use the andfilter clause and get an invalid cast exception.
    Could any one please help
    DimSearchFactory AsISearchFactory
    SearchFactory = ptSession.GetSearchFactory
    DimsearchRequest AsIPortalSearchRequest
    searchRequest = SearchFactory.CreatePortalSearchRequest
    DimintFolders() AsInteger
    ReDimintFolders(0)
    intFolders(0) = 200
    DimfieldsToReturn(0) AsField
    fieldsToReturn(0) = PortalField.FOLDER_PATH 'PortalField.ForID(propertyID)
    searchRequest.SetFieldsToReturn(fieldsToReturn)
    DimFilterClause AsIFilterClause
    FilterClause = SearchFactory.CreateAndFilterClause
    FilterClause.AddStatement(PortalField.OBJECT_ID, Operator.Equals, CInt(3044))
    searchRequest.SetDocFoldersToSearch(intFolders, True)
    DimobjectTypes() AsObjectClass = {ObjectClass.DocumentFolder}
    searchRequest.SetObjectTypesToSearch(objectTypes)
    searchRequest.SetQuery(SearchFactory) This is where it errors out Invalid Cast exception
    DimsearchResponse AsISearchResponse = searchRequest.Execute()

    Looks like there's a "path" property in this bad boy
    http://www.plumtree.com/edoc/References/ndocs/Plumtree.Remote.PRC.DocumentFolderProperty.Path.html
    http://www.plumtree.com/edoc/References/javadocs/com/plumtree/remote/prc/DocumentFolderProperty.html
    System.Object Plumtree.Remote.PRC.ObjectProperty Plumtree.Remote.PRC.DocumentFolderProperty
    I think (think....) I have a piece of sample code for this somewhere. Let me ask one of our guys if we have something handy.
    Thanks,
    Eric

  • ITunes fails to install update "folder path program files contains an invalid character"

    I'm trying to get the newest version of itunes, but I keep getting "the folder path program files contains an invalid character." I've seen on here before attempts to use Microsoft fix it and Windows Clean up which I've tried and both haven't helped. I've gone to youtube and tried to delete the appropriate folders under the registry edit. Nothing seems to work. I need the new itunes to update my iphone because of the recent hardware crash via the new update.

    At what stage in the process does this occur?
    For general advice see Troubleshooting issues with iTunes for Windows updates.
    The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down the page in case one of them applies.
    The further information area has direct links to the current and recent builds in case you have problems downloading, need to revert to an older version or want to try the iTunes for Windows (64-bit - for older video cards) release as a workaround for installation or performance issues, or compatibility with QuickTime or third party software.
    Your library should be unaffected by these steps but there are also links to backup and recovery advice should it be needed.
    tt2

  • How to read folder path using FileUpload.

    Hi,
    Is it possible to read the folder path in webDynpro.
    My requirement is: I have to read all the files in the given folder path.
    Please help me on this....
    Thanks,
    RPN.

    Hi,
    I don't think you can get the folder path.
    http://www.cs.tut.fi/~jkorpela/forms/file.html#value
    Can you give more info on why exactly do you need the folder path?
    Regards,
    Omri

  • How to obtain windows system path..

    Hello Everyone,
    is there any way I can obtain the windows system folder path (i.e. C:/Windows or D:/Windows or else) from java? similar like System.getProperty("user.dir") but instead, it returns the system windows folder path..?
    Thanks.

    You can try to call System.getenv("windir") or System.getenv("SystemRoot") if you are using JDK 1.5
    Kaj

  • Trying to remove an old version of I Tunes and keep getting the message "The folder path I Tunes contains an invalid character' . It won't let me go any further, have tried deleting/repairing the program but keep getting the same message?

    trying to remove an old version of I tunes, but keep getting the message 'The folder path I Tunes contains an invalid character'
    It won't let me go any further, have tried deleting/repairing but get the same message and am blocked from continuing?

    Hi Barbara,
    I had a similar problem recently and using the "more like this" feature I discovered an answer. To a problem posed by Holo7,  who like myself was a newbie on this platform,  b noir proposed a solution to Holo7's problem that also worked with my problem. It involves downloading a version of MS Windows Instal Cleanup and using it to completely remove all traces of the old version.
    If you look at my problem (follow OldGit66) and the link to Holo7's problem then you will find b noir's answer which I think may help you. I am new around here so you might want to wait for one of the higher status correspondents.
    Regards
    John

  • I am trying to download the latest iTunes update.  Keep getting error message stating "The folder path 'My Documents' contains an invalid character".  I can't uninstall iTunes for the same reason.  HELP!

    I am trying to download the latest iTunes update; keep getting error message that says "The folder path 'My Documents' contains an invalid character".  This also happens when I try to uninstall iTunes.  HELP!

    OK, never mind!  I saw another question on the right side that addressed the problem, and it worked perfectly!  Went to Major Geeks' page, downloaded the Windows Installer Cleanup Utility, and was able to reinstall the updated version of iTunes!  This community is super!

  • How to get the absolute path of logicalhost server domain on Windows Sun

    i am reading a file from Xsql Folder, that is located in the logicalhost Sun\AppServer\domains\domain1\applications\j2ee-apps.(IN Sun Application Server)
    I am pretty sure that using the absolute path will solve this issue, so my first question is: How to get the absolute path of logicalhost server domain on Windows?
    i tried with System.getProperty("com.sun.aas.instanceRoot").
    but i am able to retrive Sun\AppServer\domains\domain1 upto this .i am unable to retrive Sun\AppServer\domains\domain1\applications\j2ee-apps.
    please suggest me how u can get absolute path in sun application server

    Take a look here

  • How to get the absolute path of logicalhost server domain on Windows?

    My logicalhost server domain behaves strangely. I am reading a file from collaboration definiton, that is located in the logicalhost/is/domains/domain1/config folder. I thought, that this folder is used as an application root folder so I can read files like ./file from there. And it worked.
    But then I've installed the domain as a Windows service, restarted the PC. When the domain1 gets started, I get exceptions saying that the file can't be found. Then I restart the domain (in domainmgr.bat) and it works again.
    I am pretty sure that using the absolute path will solve this issue, so my first question is: How to get the absolute path of logicalhost server domain on Windows?
    And my second question is: Why does this happen?

    The default folder for a Windows Service is the system32 folder contrary to the instance root folder when starting it as a normal process.
    That's the why, haven't tried the how, but you should be able to get the value by calling System.getProperty("com.sun.aas.instanceRoot").
    Hope this helps
    Paul

Maybe you are looking for