[URGENT] Create the folder of Flex Desktop App

I have a desktop flex, inside a FileSystemTree and a button application. On click of a button, a function must take the selected path and create a new folder on this path.

I tried several methods, but something does not work. Someone at - it a solution?

Hello

private var file:File;

private void addfolder (): void

{

file = new File ("file:///C:/MyNewFolder");

file.createDirectory ();

}

]]>

Basically you would build the string representing the path that you want to create, for example if you had c:\testfile and wanted to create c:\testfile\abc\newfolder
It would be new File ("file:///C:/testfile/abc/newfolder");
If abc does not exist it will be created
David.

Tags: Flex

Similar Questions

  • Error message: cannot create the folder C:\Documents and Settings\Marlon\Local Application BVRP Software\NetWaiting\MoHlog.txt Settings\

    I recently had a problem with the virus 'Restore Windows'. I was able to get rid of it with Malwarebytes antivirus scanner, but when I turn on my computer I get this error message.
    Cannot create the folder C:\Documents and Settings\ of Settings\Marlon\Local Application BVRP Software\NetWaiting\MoHlog.txt

    I'm no expert, but I feel that my C drive disappeared, or at least has been hidden. My documents, pictures and music files are all empty. My programs (start > all programs) have been removed and deleted the shortcuts on the desktop. When I go to my computer, my personal and shared document files are not accessible. Under the description it says that they are hidden. My local disk (c) is also empty, but there is still very little space which suggests that programs and files have not been deleted.
    Is it possible to recover my files?
    Thank you

    Hello

    MoHlog.txt file is related to the software of modem on the computer, you can uninstall and reinsta it check if it works.

    Also scan your computer for any infection by virus still present on the computer using any scanner online.

    You can also try the system restore to the point before that the computer has been infected by the virus and check if it helps.

    Good luck!

  • create the file using flex

    Hello

    I work in flex.

    I want to create the file using flex 4.

    I use this code

    private var file:File;

    private function addfolder (): void

    {

    file = new File ("file:///C:/MyNewFolder");

    file.createDirectory ();

    }

    the error is

    Type was not found or was not a compilation constant: file.

    anyone helpme

    concerning

    Athi

    Hello

    With flex, you need to display the filereference function record. Because of the security sandbox you cannot programmatically save files or create folders, you need to open a box to browse to windows files, so the user can create a folder or save a file.

    private void testme (): void

    {

    var fi: FileReference = new FileReference();

    fi. Save ('Hello');<=== this="" would="" open="" a="" system="" file="" save="">

    }

    David.
  • Is time Machine always being backed up to the folder My Documents/Desktop now that they have been sucked into the iCloud?

    Is time Machine always being backed up to the folder My Documents/Desktop now that they have been sucked into the iCloud?

    Yes. The files are still on the computer so that they will always be saved by Time Machine.

  • says device cannot create the folder

    have been on a cruise and tried to use their computer to download some photos but wouldn't work - now my camera says * cannot create the folder *-my computer can't see also photos even though my computer says there is only 3 GB of space left on a 16 GB of my camera card is an EOS 60 d - my card a San disk Ultra 30 Mb 10 16 GB

    It seems that the SD card is damaged. But it might be possible to recover the files. There are a lot of tips online on how to do it. You could start here... http://www.PCAdvisor.co.UK/how-to/storage/3481659/how-get-files-off-corrupt-SD-card/

    Good luck, I know how much vacation photos can mean.

  • Cannot create the folder on the storage device

    My flash player works well, but lately, I can't create a folder: it simply indicates: cannot create the folder?

    My flash player works well, but lately, I can't create a folder: it simply indicates: cannot create the folder?

    =====================================
    The dialog box you received usually indicates that there
    are too many files copied to the root directory of the
    flash drive.

    The solution is to remove one or more pictures and
    create new empty folders in their place... then move
    all the photos in the files... problem solved.

  • Re-create the folder guest account

    Hi all

    I deleted the folder guest account. Now when I connect to the guest account, I get a message "you are connected with a temporary profile.

    Is it possible for me to re-create the folder comments once again?

    Thank you

    Why did you even have to activate the account invited in the first place? It is disabled by default for a very good reason security - it allows anonymous access on your computer.

    Turn it off immediately.

    If you want to grant the occasional access to your computer for visitors, create a Standard user account and call it 'Visitor' or somesuch.

    Do NOT use the guest account.

    If you find my answer helpful, please click the button "Vote as helpful"! Thank you!
    My Blog

  • SyncToy 2.1 has stopped working, with the message "unable to create the folder pair. Unable to create the provider. Can I get help to fix it please

    After the last automatic update, I tried to back up my files (did this every week for at least one year). Message "unable to create the folder pair. Unable to create the provider"came. I tried again, same. The pair and tried to reset upward. Same message... anyone have an idea how to fix?

    Hi Steve,.

    The question you have posted is related to SyncToy and would be better suited in the SyncFX - SyncToy community. Please visit the link below to find a community that will provide the support you want.
    http://social.Microsoft.com/forums/en-us/SyncToy/threads

    Hope this information helps.

  • Just recently I have not been able to move the folder on my desktop. I have to copy and paste it into a new folder, and then delete the old on.

    Just recently I have not been able to move the folder on my desktop. I save videos to my office then then move in different folders, but now need to copy and paste, then remove the video from office.  Around the same time, when I try to use help I have Windows Help cannot start.  So please HELP.  Using Win7.

    Hello

    1. Did you of recent changes made to your computer that caused the problem?
    2. It happens that the Office? Have you tried with Documents and other readers?

    Step 1: File system [SFC] Checker

    Try to run a scan of the file system [SFC] checker on the computer that will replace missing or corrupt files & check if the problem persists.

    How to use the System File Checker tool to fix the system files missing or corrupted on Windows Vista or Windows 7

    http://support.Microsoft.com/kb/929833

    Step 2: Run a virus scan to check if there are infections on the computer:

    Microsoft safety scanner

    http://www.Microsoft.com/security/scanner/en-us/default.aspx

    Note: If infections are detected during the scan, there is a risk of data loss because infected files will be deleted.

    Step 3: Follow the instructions in the article to fix the problem of files and folders in Windows:

    Diagnose and repair Windows files and folders problems automatically

    http://support.Microsoft.com/mats/windows_file_and_folder_diag/

    For more information, follow the instructions in the article to improve the performance of Windows 7:

    Optimize Windows 7 for better performance

    http://Windows.Microsoft.com/is-is/Windows7/optimize-Windows-7-for-better-performance

    It will be useful.

  • Creating the folder and by assigning the role access list, approach programmatic

    Hi all

    I have a requirement to create the folder and assigning RAL in the folder created by the UCM (11.1.1.8) program

    I found RIDC API to use for creating folders, can I use the same for the assignment of RAL, pointers?

    Thank you

    You get errors?

    This blog can be useful: adding a file in folders of the WebCenter RIDC content frame. Niels Krijger

    Jonathan

    http://jonathanhult.com

  • Create the folder under computer virtual &amp; model

    Using powershell, I want to create a folder in Machines virtual & view sandrine models a data center which has the same name as existing in cluster.  I can get the command new folder works but it is default to create the folder in the view of data centers.

    Tthanks!

    If I understand your question, you want to create a new folder called 'blue'.

    The trick is to know that there are some hidden (from the point of view customer VI) folders that you need to know to make it work.

    In the case of the view 'Machines virtual & templates' folders called 'vm' in each data center there.

    This script shows you how to create a folder 'blue '.

    
    $dcName = 
    $dc = Get-Datacenter -Name $dcName
    $parent = Get-Folder "vm" -Location $dc
    New-Folder -Location $parent -Name 
    

    PS: with the managed object browser, you can see the full hierarchy including these "hidden" folders

    Point a browser at https:///mob

  • Screen of transition between the views in Flex Hero App for Playbook

    Hello.

    I created an application using the Flex using Flash Builder (Burrito) hero. I should also point out that I created the application as a mobile application ( ).

    Now, the problem is that when the application starts, I put a start page by default in the file Blackberry - tablet.xml. This shows. But then the application loads the default app (myApp.mxml) view. The code is as follows:

    
    http://ns.adobe.com/mxml/2009"
                    xmlns:s="library://ns.adobe.com/flex/spark"
                    width="1024" height="600" firstView="views.myAppHome">
    
                    
                    
                    
    
    

    From there, it goes directly to the views.myAppHome. What happens, however, is that between the blackberry file boot image - tablet.xml and the background of the views.myAppHome.mxml file, I get a brief moment where the default background of the file shows myApp.mxml. Is any way to get rid of this? Can I just put a similar to the start page background image in the file myApp.xml? Or should I take altogether on the myApp.mxml file and continue straight to the views.myAppHome.mxml?

    * I did this way based on a tutorial several months ago. This tutorial, however, had additional features that I removed. Currently, I have an opinion, but will probably add another any further on the road.

    Any help would be appreciated!

    Thank you!

    RAD_

    I encountered the same problem and I added an extra MobileApplication splashscreen:

  • Create the folder in the categories

    Hi all

    I asked to create a Package for Indesign according to the Version folder Structure.

    But the condition is.

    If the path with the Version_3 folder, then the package is posted at this location only.  First choice

    or

    If the path with the Version_2 folder, then the package is posted at this location only.  Second choice

    or

    If the path with Version_1 folder, then the package is posted in this location alone //Third preference

    Try the Code:

    var myDoc = app.activeDocument;
    var myFilePath = myDoc.filePath + "";
    var myOutput_Name = myDoc.name.replace(/\.indd/gi, "")
    
    
    var myFinalPath = myFilePath.replace(/DOCUMENT/i, "CLIENT_ORIGINAL")
    
    
    var test3 = myFinalPath + "/VERSION_3";
    var test2 = myFinalPath + "/VERSION_2";
    var test1 = myFinalPath + "/VERSION_1";
    
    
    //-------------------------Help Needed Here only-----------------------------------
    if(Folder(test3.exists) != null){
            var to = new File(test2 + "/" + myOutput_Name);
        }
    
    
    else if(Folder(test2.exists) != null){
            var to = new File(test1 + "/" + myOutput_Name);
        }
    else if(Folder(test1.exists) != null){
            var to = new File(test1 + "/" + myOutput_Name);
        }
    //-------------------------Help Needed Here only-----------------------------------
    
    
    alert(to)
    var myOutput_Folder = Folder(to).create()
    //~ if(myOutput_Folder.exists == true)
    //~ {
    //~     myOutput_Folder.remove();
    //~     myOutput_Folder.create();
    //~     }
    
    
    //------------------Package Concept is started here-----------------
    app.activeDocument.packageForPrint (
            to,
            copyingFonts = true, 
            copyingLinkedGraphics = true,
            copyingProfiles = false,
            updatingGraphics = true,
            includingHiddenLayers = true,
            ignorePreflightErrors = true,
            creatingReport = false,
            versionComments = "comment",
            forceSave = true,
             );
    

    Thanks in advance

    Siraj

    Hello

    You can try this,

    {if ((test3) Folder. Exists)}

    var to = new file (test3 + "/" + myOutput_Name);

    }

    else {if (Folder (test2) .exists)

    var to = new file (test2 + "/" + myOutput_Name);

    }

    else {if (Folder (test1) .exists)

    var to = new file (test1 + "/" + myOutput_Name);

    }

  • Creating the folder Microsoft Office on the Dock

    Hi all

    I enabled VMWare Fusion so I can see my Windows programs in the Applications folder on my MacBook Pro.  I created a folder (standard blue folder) and all desktop icons 2013 places in the file.  So, when I go into the Applications folder on my MacBook Pro, all my desktop icons 2013 are in a single folder.

    My question - is it possible to customize the standard blue folder?  With Office Mac 2011, the folder is a black folder looking for Nice.  Is it possible to customize the standard blue folder that I created so that it looks like the Office 2011 Mac folder even if I'm not actually under Office Mac 2011?

    Thank you.

    Something like the attachment?  It can be copied and pasted into the image files on the sheet to read the information.

  • The creative cloud to Desktop App can only be installed on my Macbook pro

    I bought the Photoshop + Lightroom creative cloud applications. I can download the installion for Cloud Barnard for the desktop app and I can start the installation process, but it is interrupted at halfway through with a message saying "have encountered the following problem: creative cloud desktop could not be installed. There is no evidence for any solution. I tried using Opera instead of Safari, but the same thing happens. Is there anyone who knows what is the solution for this problem? Sincerely from Lars

    ACC.png

    Rename the folder OOBE with OOBEOLD (Mac HD/Library/Application Support/Adobe/OOBE folder)

    Run the Adobe cleaner ( http://helpx.adobe.com/content/dam/help/en/support/AdobeCreativeCloudC leanerTool.dmg )

    Remove the Adobe application Manager/Adobe Creative cloud.

    Restart the computer and redownload Adobe Creative cloud and install it.

Maybe you are looking for

  • How to find where to add personas went?

    I have an acer iconia A200 with Android OS 4.0.3 with installed firefox. I installed personas, but can't find it to use it. There is no gear on the bottom of the page to the tap. How can I find? I looked in all areas with Open firefox.

  • HP ENVY 15 Notebook PC: Which Intel WLAN adapt to choose for replacement?

    Hello I am looking for an Intel WLAN with Bluetooth adapter to replace mine with (laptop HP ENVY 15, product number: K2T39AV). I wonder if the product is compatible with my HP laptop: http://www.Intel.com/content/www/us/en/wireless-products/dual-band

  • How to prevent registration message when the program ended vi is used

    I use the LabVIEW vi to quit smoking and make me Save / don't save/cancel dialogue whenever the user leaves the program.  The reason is that the objects on the screen have been resized.  The properties of vi for the appearance of the window are scrol

  • Market problem laptop Acer problem

    Hi all I wonder if anyone has met, or heard of this problem. I have a laptop Acer Aspire 5745 w / 640GB HDD and 8 GB of memory running with Win 7 Home. I have about 3 years. A year or 2 there, he began to develop a market problem. I noticed that most

  • Weird message when clicking on the internet (IE, FIREFOX and CHROME)

    When I want to connect to the internet with or any of the foregoing, I get this message. Run DLLS There was a problem starting C:\Program Files (x 86) music Toolbar\Datamngr\apcrtldr.dll. I click on it and open the browser, I have chosen, no problem.