Save the file on the user's desktop

Hi all, just a simple question (I hope!)

I am writing a program and I want to save the file .txt output to the office. Of couse, different computers will have on their desktop to different directory paths (for example C:/Documents and Settings/Bob/Desktop - the user name will be different in all cases).

Is there a specific command that you can use to specify what system you are looking for the office, regardless of the rest of the path of the directory? If it makes no sense at all.

Thank you!

Yes.Use get the system directory in a file i/o under file constants.

Tags: NI Software

Similar Questions

  • VWorkspace Appportal autologin creates deuplicate shortcuts on the user's desktop

    Hello team, I use vWorkspace Apportal autologin to publish the Application on the user's desktop when they log into VDi.

    application publishing happens correctly. But when each user logs in a new session of apportal vdi creates duplicate apps icons, means old icon not deleted at logoff user.

    each session create duplicate icons. Please share your solution to workaround if someone in the face of this before.

    Thank you

    Ravi

    Hi Ravi,

    Kevin Robinson here the support Manager, may suggest trigger you a request for assistance with us, this question is familiar to us, but most probably we need a remote webex to take another look.

    Thank you

    Kevin

  • Customization of the user and Desktop Integration to connect security non - ADF

    Hi all
    Our application has its own connection authorization. I have some doubts about the MDS (personalization of the user between sessions) and integration of ADF Office for an application that doesn't use the ADF security.

    (1) is ADF Desktop integration taken in charge for the connection of non - ADF security. If so, is there a working example or how to establish a session to the user of the excel workbook with the username of connection of our application.

    (2) of this thread ( customization through the MDS user Sessions ), I understand that, if we write our own customization class, persistence of the MDS in the sessions should not be a problem. However, how we store this persistence to a database. Any example pointers / functional would be really useful.


    Thank you
    Bala

    Hi Balasumbramanian,

    I just write a 3 part series on SDM that should help you with the second http://www.oracle.com/technology/pub/articles/adf-development-essentials/index.html question. See, in particular, the third article ("part 10")

    John

  • How to specify the location of the folder on the user's desktop?

    I write a script that will be stored on a server that is shared and accessible via an action by several users. The script would eventually save pictures in a folder already created on their respective computers. This record would have the same name for everyone, but as each user access path would be different because of their usernames, how to make the backup location in the script just point to this folder on the desktop of users regardless of username?

    Edit: Wait, wouldn't be a matter of making something like this: "~/Desktop/StandardUpload/"?

    That's exactly it.  ~/Desktop/StandardUpload/ or whatever the path.  I use it all the time for my team scripts runs.   There are ways to get data from specific user name, but if you're not interested, it works perfectly

  • Is possible to save the user who uses the download action in an interactive report.

    Hello

    In my application I want to save that downloads information from the interactive reports in any format, is this possible?

    Concerning

    Hi Eva,

    The event would be onClick of one of the download buttons (either CSV, HTML, PDF). Al of these download buttons have an id that starts with 'apexir_dl_' but including the suffix of ASD file extention (so the Download CSV link would be "apexir_dl_CSV").

    The PL/SQL procedure for the actual record is accurately described in the link Tony posted.

    Kind regards

    Vincent

  • Failed to save the UI resource file...

    Hi all

    I have to pass a CVI 6a 2013 CVI.

    After working the binding DLLS/LIBs now everything compiles and links fine and the exe works as expected.

    But there are some users that I have to edit resource files. As soon as I open one of them (a few seconds) or when I want to change one little thing, and then save the file I get the error message next message (see attachment):

    Unable to save the user interface resource file '... uir ' (the file is not a user interface file or damaged)

    What is the problem and how to solve?

    Any idea is welcome.

    Best regards

    Andreas

    Hi all

    Thanks for your ideas.

    I oversaw that effort to push the standard of the button Save of the cvi after I clicked away the strange error messages.

    Strange but true: If the IUR files are saved now (in the appropriate format) and error messages no longer appear.

    I think that there is a small bug (or format or any change...) in 2013 CVI when overtaking of the UIR of CVI 6 files.

    Good day.

    Andreas

  • Need administrator permission to save the file on the internet - how?

    In Windows 7 and using the Explorer 8 - I am trying to save a .jpg file from the internet to a folder on my hard drive. Received the message: "you don't have permission to save in this location. Contact the administrator for approval. "Could not find the answer on what to do next. Thank you

    You try to save in a location protected (as a system folder).  When you try to save the image, choose "Desktop" is the place where to store the image.

    If this was helpful, please vote. If it solves the problem, please click on propose as answer. Thank you!

  • Save the choice by the user in the menu drop-down

    Hey guys

    How is everyone today? I hope you are all okay

    I am facing a problem, I made a menu drop-down with 2 options, each option changes something in the way of the application of notification showing, once the application is closed, it returns by default (no selected value... which makes sense, because I do not know how to record yet)... so is there anyway to save the user's selection in the menu?

    Here is the code

         DropDown {
                id: drop
                enabled: false
                Option {
                    text: "Every 15 minutes"
                    value: 1
                }
    
                Option {
                    text: "Every 30 minutes"
                    value: 2
                }
                onSelectedValueChanged: {
                    if(selectedValue == 1){
                        //because it's milliseconds
                        timer.interval = 900000
                        timer.start();
                    }
                    if(selectedValue == 2){
                        //because it's milliseconds
                        timer.interval = 1800000
                        timer.start();
                    }
                }
            }
    

    Thanks a lot guys

    Hi Alem... from your code snippet:

    if (theOptions[count].value == settings.getUserSelectDrop)
    {
        drop.selectedIndex = count;
    }
    

    The problem I see here is that getUserSelectDrop is a function, not a variable, and so he needs parenthesis after it else Qt will stop execution of JavaScript as soon as he's trying to run it.

    Try this:

    if ( theOptions[count].value == settings.getUserSelectDrop() )
    {
        drop.selectedIndex = count;
    }
    

    The other thing I would say is that getUserSelectDrop() reads the value of the settings file every time through the loop, who has a bit of a drop in performance. I recommend to save the value of a local variable only once before the loop, then use for comparisons instead:

    var userSelectDrop = settings.getUserSelectDrop();
    for(var count = 0; count < theOptions.length; count++)
    {
        if (theOptions[count].value == userSelectDrop)
        {
            drop.selectedIndex = count;
            break;
        }
    }
    

    Note also in this last code that I added a break statement, if the value matches to avoid the loop to test all the values more unneccesarily.

  • Password Manager won't save the username

    Sometimes, the password manager does not save the username, but just the password. A way to insert the username, or forcing the Manager to save it? I have experimented with this and are unable to save the user name.

    It might be 5% of my password sites. Could not get an any of them to work right. They are all different types of sites.

    Thank you

    You can try the 'saved Password Editor' found on the page modules. I find it rather useful myself.

       B.R.
    

    PS:
    Sorry I don't have the web address on the top of my head right now, but you can find it by going to Manager modules - tools > Add-ons - and type 'Saved password editor' in the search bar.
    MANUELA

  • Asking the user to change the password after the first login.

    Is someone can you please tell me what the procedure is to require users to change their password when they first register an APEX application?
    Please provide detailed examples.
    I guess I have to write a process, probably in the login page and then create my own page to enter the old and new passwords. I then define the branching right, etc. in order to integrate this page with the rest of the application. Is there a standard way to do this? It seems to me that it should be.
    Thank you.

    If you use the authentication method the APEX, try the following:

    The form of departure in the APEX that displays all of the applications that you have installed, right side, administration section, manage users explicit application, click this item.

    If you add a user, then click on the button create and enter the relevant information.

    If you already have an existing user and I want to just change them, click on the user icon.

    To set the password needs to be reset during its first use, under the control of the accounts, click the menu drop down require the change of password on first use and select Yes.

    Save the user, and the first time the user logs in the APEX, they will have to reset their password.

    Is that clear enough to follow?

    On a side note, I STRONGLY recommend that change you your scheme of authentication or Custom database driven, since the APEX authentication scheme is used mainly for developers...

    Thank you

    Tony Miller
    Webster, TX

  • When I save a file (using "Save as" in Firefox) on the desktop the address bar reads: file:///C:/Users/Name/Desktop...

    ORIGINAL TITLE: File evil

    When I save a file (using "Save as" in Firefox) on the Office the address bar reads: file:///C:/Users/Name/Desktop...how can I fix it?

    Hi Goldie,

    1. not the problem only occurs when you save the file in Firefox?
    2. don't you make changes to the computer before the show?

    I suggest you try to save the file using Internet Explorer on the desktop and see if it works.

    If the problem is with the shortcut of Firefox, then I suggest you to post.
    https://support.Mozilla.org/en-us/questions

  • Unable to save the files to the desktop, the error msg says I don't have permission to do this and to cantact admin but I m user having admin status.

    IN WINDOWS 7, cannot save the files to the desktop, the error msg says I don't have permission to do this and to cantact admin but I m user having admin status. ALL SUGGESTED SOLUTUTION? THE FILE in question is created with ms word 2007. I can record on other places lik e in drive D: etc.

    I could open your Explorer of files and go to C:\Users\Vanbee (or any folder of your user name), then right click on the folder on the desktop it there and go to properties.  On the Security tab, make sure that you have a full control on the folder.

  • I was working on a doc Excel, open from my email account, I forgot to save the file on my desktop

    I was working on a doc Excel, open from my email account, I forgot to save the file on my desktop where the original file was. I kept while I was working, so where my file went?  saved on my profile Inbox or where?  Please I need for my work, tonight.  Help!

    Hi MelanieCline-Thera,

    Please take a look at a similar thread (substitute just Word for Excel):

    http://answers.Microsoft.com/en-us/Office/Forum/officeversion_other-word/lost-a-saved-file-that-i-worked-on-from-an-email/a07f5d65-2473-49C2-a6c3-64942d75662f

  • Cannot delete the file. 'trial' "impossible to find this element". It is neither located in C:\Users\master\desktop.

    I have a folder called test on my desk that I created to try the xcopy commands.  Anyone who has nothing to do with it.  I think that when I created the folder I could add a space somewhere in the file name.  He is currently empty that I deleted a word of her documents.

    However I can't remove it.   It says cannot delete the file. "Cannot find this item. It is neither located in C:\Users\master\desktop.  Have already tried to delete the file in safe mode but not no luck.  Also if I navigate to the path C:\Users\master\desktop folder is not there and I hid the displayed files.  If I right click a properties to create the size is 0bytes and created a modification dates are suppressed.  How can I delete the file?


    '\\?\%userprofile%\desktop\trial*' of RD/s
    '\\?\%Public%\desktop\trial*' of RD/s
     
    Note the * appended to the name.
    --
    ..
    --
    "J.Summers" wrote in message news: a8ec7720-22a6-465f-bbbe-a27df3ace7a2...
    > Ok, I tried both commands and came to the same thing.
    >
    > Other ideas please?
    >
     
  • Save the .txt file - works in a desktop not on device application

    Hello everyone. Im trying to save the text in a TextArea in a .txt file and have been able to do in a desktop Air application but cannot make it work for the BP. I made sure to make access_shared, the problem is in my code.

    private function saveFile():void
                {
                    if (currentFile) {
                        if (stream != null)
                        {
                            stream.close();
                        }
                        stream = new FileStream();
                        stream.openAsync(currentFile, FileMode.WRITE);
                        stream.addEventListener(IOErrorEvent.IO_ERROR, writeIOErrorHandler);
                        var str:String = mainTextField.text;
                        str = str.replace(/\r/g, "\n");
                        str = str.replace(/\n/g, File.lineEnding);
                        stream.writeUTFBytes(str);
    
                        stream.close();
                        dataChanged = false;
                    }
                    else
                    {
                        saveAs();
                    }
                }
    
    private function saveAs():void
                {
                    var fileChooser:File;
                    if (currentFile)
                    {
                        fileChooser = currentFile;
                    }
                    else
                    {
                        fileChooser = defaultDirectory;
                    }
                    fileChooser.browseForSave("Save As");
                    fileChooser.addEventListener(Event.SELECT, saveAsFileSelected);
                }
    
                private function saveAsFileSelected(event:Event):void
                {
                    currentFile = event.target as File;
                    saveFile();
                    dataChanged = false;
                    currentFile.removeEventListener(Event.SELECT, saveAsFileSelected);
                }
    

    I got the Save pop-up dialog box but nothing happens.

    Oops. turns out it was as simple as

    private function saveFile():void
                {
                    var fileRef:FileReference = new FileReference();
                    fileRef.save(mainTextField.text, "myfile.txt");
                }
    

Maybe you are looking for

  • Equium P200-1ED crash again and again

    My laptop freezes when im works very little. After a complete reformat just yet, it crashes when executing small programs like SmartFTP, windows live messenger, etc. It's a repeaded problem and I'm not too sure what I can do about it. Anyone got any

  • Satellite P100 - 324 PSPA6E - need LAN driver Vista

    I speak a little English.Where is LAN driver VISTA for Satellite P100 - 324 PSPA6E?If we adjust driver Windows XP? Nowhere do I find Windows VISTA driver but it not discovered map net LAN windows me Please help me!I thank me for help :))

  • SHA-1 ADS on Windows file

    I noticed the change of Alternative Data Stream (ADS) SHA-1 on some Windows files, example cmd.exe was the change of SHA - 1 on its ADS. When a file of windows ADS Sha - 1 never would need to change, it would only change when there is an update to Wi

  • Can what type of video card I buy to upgrade a Pavilion a1000y? What are the specs?

    I upgraded my desktop HP Pavilion to Win7 a1000y and the default value of the monitor is VGA. the resolution is not good for the big screen that I use. I'll try to find the PCI slot specifications and/or specifications of a video card, that I can add

  • Get integer values of visa series read

    Hello I am having trouble getting the integer values correct of the reading series string that I get. For example if I send 0P3 I get 48,112,51 as elements of an array. I used the string to byte array function to convert the string I've read on the s