How do I create Directories on a local drive?

I was just curious how to throw a command to a computer to create files and directories. If somwone can paste an example for me, I could probably take off from there after that. I just have no idea how to create files through java...

hi,
According to the answer given by "acg6764", the directory is created in the location where ur program is running, if u want to create a file or a directory in some other location sitting the present location, u can do like this:
assume u r running the program c:\java\CreateDir.java
and u want to create directory in c:\
then u have to create the file object like:
File file = new File("c:/");
file.mkdir();
best of luck,
Balaji.SN

Similar Messages

  • How do i create directories in Mavericks

    Trying to create directories to install an app.  But for the life of me, I don't know how in Mavericks.
    Can anyone help???
    Thanks!
    John

    Go into the Finder and either choose New Folder from the File menu, or press the Shift, Command, and N keys, or control-click the window and select New Folder.
    (103538)

  • How to check Created directories in Oracle 10g

    Actuall i created a directory
    CREATE OR REPLACE DIRECTORY DIR_TEXTFILES AS 'D:\TEXTFILES';
    but i can such directories in d:\ of my laptop
    as a beginner to oracle i dont know these thing....Pls Experts help me...

    No brother...Actually am learning how to insert a textfile into a Column of type CLOB
    for that i created a table
    and a procedure like this
    SQL> desc sunil_textfiles;
    Name Null? Type
    ID NOT NULL NUMBER(38)
    DATA_TEXTFILES CLOB
    CREATE OR REPLACE DIRECTORY DIR_TEXTFILES AS 'D:\TEXTFILES';
    CREATE OR REPLACE PROCEDURE
    PR_TEXTFILES(PR_ID IN NUMBER,PR_FILENAME IN VARCHAR2)
    AS
    L_CLOB CLOB;
    L_BFILE BFILE;
    BEGIN
    INSERT INTO SUNIL_TEXTFILES VALUES (PR_ID,EMPTY_CLOB())
    RETURNING DATA_TEXTFILES INTO L_CLOB;
    L_BFILE := BFILENAME('DIR_TEXTFILES',PR_FILENAME);
    DBMS_LOB.FILEOPEN( L_BFILE );
    DBMS_LOB.LOADFROMFILE(L_CLOB,L_BFILE,DBMS_LOB.GETLENGTH(L_BFILE));
    DBMS_LOB.FILECLOSE( L_BFILE );
    END;
    EXEC PR_TEXTFILES(1,'D:\TEXTFILES\TEXTLOADING.TXT');
    but i dont know where to put this textloading.txt file...which i need to insert on that clob column
    help me..

  • How I can disable Firefox from browsing Local drives of servers for remote desktop users in Windows Server 2008 R2 SP1??

    Hi ..
    Recently I came across a security hazard in firefox. it displays C and D rives content when "C:\" or "D:\" is typed in browser address bar. is there any workaround for restricting domain users to restrict this on firefox 12 ??
    Thanks

    Hiya,
    It could sound like that one indeed. There are a few options to go for, however it should be fairly easy to find out :)
    Create a test GPO and apply to a limited amount of users. GPUpdate and verify that the GPO has been applied using rsop.msc
    Then open the application to test and see if it has the desired effect. You might need to change more than one setting, depending on the application and desired behavior.

  • How can I create a Lion USB Thumb Drive with the 11E2068 build?

    It seems that the Lion build from the Mac App Store is not compatible with my Macbook Pro Retina 15''. It's seems I would need the the build 11E2068 for my USB thumb drive to work properly.
    I don't want to go through the internet recovery and loose 8 hours.
    Is there anyway for my to get that build(11E2068) on my USB thumb drive?
    Thanks,

    keg55's given you article that allows you to capture the installer. These are the critical portions:
    Once that data has been downloaded, Lion Recovery restarts your Mac, immediately installs the OS, and then deletes the installer data. The trick is to interrupt that process—safely—so you can grab the installer data and keep it. Here are the steps to take:
    IMO, Apple needs to rethink this process. Unless users with machines that had Lion preinstalled, like yourself, let Apple know this process is terrible, they'll not change their minds.
    7.  IMPORTANT: Monitor the download’s progress. As the progress bar gets near the end, get ready, because once the status reads About 0 seconds remaining, the progress bar will disappear, the installer will spend a minute or two cleaning up, and then your Mac will restart. As soon as the screen goes dark, unplug your external drive. If you wait too long, your Mac will boot into the Mac OS X installer on that drive, starting the installation process. Interrupting that process can leave your Mac unable to install OS X unless you restart it and—I’m not joking—zap PRAM.

  • How to download a clob file from a table to my local drive?

    Hii Everyone,
    I'm havig a table of this structure
    Create table r_dummy
    c_clob_file clob
    How to download this file into my local drive?Please give me some hints.Can this be done using dbms_lob??
    Regards
    Raghu.

    You need to share a directory on your local drive and give permissions for the database server to write a file on your local drive. Or you may create the file on your database server and copy the same to your local drive.
    conn / as sysdba
    create or replace directory ext_tab_dir as 'C:\ExtTab_Dir';
    /* you may need to give a network path in place of C:\ExtTab_Dir if you want to create the file on your local drive. The directory should be created manually by you on the file system*/
    grant read, write on directory ext_tab_dir to scott;
    conn scott/tiger
    declare
            clb clob;
            l_output utl_file.file_type;
            len integer(6);
            vstart integer(6):=1;
            bytelen integer(6):=32000;
            my_vr varchar2(32000);
            x integer(6);
    begin
             l_output := utl_file.fopen('EXT_TAB_DIR','Clob_File.txt','w',32767);
            select c_clob_file into clb
             from r_dummy;
             len:=dbms_lob.getlength(clb);
             x:=len;
            while vstart < len and bytelen > 0
            loop
                dbms_lob.read(clb,bytelen,vstart,my_vr);
                utl_file.put(l_output,my_vr);
                utl_file.fflush(l_output);
                vstart:=vstart+bytelen;
                x:=x-bytelen;
                if x< 32000 then
                   bytelen := x;
                end if;
            end loop;
            utl_file.fclose(l_output);
    exception when others then
            utl_file.fclose(l_output);
            raise;
    end;
    /Edited by: Preta on Sep 29, 2010 10:53 AM

  • Create sub folders in "local" - Map a network drive.

    I am using Docs2Go and when I save a document, a see an option to save on "local"; thats where I save them. finding these documents is becoming difficult. How can I create sub folders in local disk so that documents can be organised.
    Secondly, after connecting through VPN, Can I map a network shared drive.

    Can't be done.

  • How to create a system recovery USB drive?

    My U845-S406 crashes every 15 minutes with a BSOD referencing iastor.sys.
    Multiple diagnostics say it is all good.
    Multiple virus softwares say it is clean.
    It crashes even quicker in safe mode.
    I have the latest Toshiba raid drivers, but updated to a more recent Intel set.  The error changes to iastora.sys, and goes back to iastor.sys when I switch back to the Toshiba drivers.
    I booted holding down 0, and told it to restore; but it promptly crashes.
    I made a W7 disk and tried to load it, but it promptly crashes.
    As a last resort before throwing the computer out,  I want to create a system recovery USB drive, format the harddrive and try recovering from the USB; but I don't have the Toshiba Recovery Media Creator (or any Toshiba software at all...)  I downloaded a copy and ran it, but it says I don't have a HDD Recovery Area.
    I know I have one because 1) I can access it by hold down 0, and 2)Partition Wizard showes it.
    So, how can I create a system recover USB drive (or make Recovery Media Creator find the HDD recovery Area...)
    Interestingly, the other day it spent 90 minutes installing a W7 update without a problem, but crashed immediately when done.  Maybe that means something.

    Satellite U845-S406
    Downloads here.
    Please zip up a few of the corresponding *.dmp files from the C:\Windows\Minidump folder and attach them to your reply.
    So the procedure in the section Creating recovery media (p. 53 in the User's Guide) doesn't work? Exactly where does it go wrong?
       Satellite/Satellite Pro U800W Series User’s Guide
    -Jerry

  • Image: display from local drive, upload to server file system, and display from server

    Hello,
    I am using jdev 11.1.2.4.0...
    The requirement is that users would like to upload images from their local drive to server drive and they would like display images from server drive later.
    We don't want to keep images in database. I am not sure what the solution should be; however, I plan to ....
    1. create a table to keep an information of images -- image_id, image_location (server drive), image_filename
    2. create a page where users can enter image information and specific filename from a local drive (I think I will use inputFile component) and provide the preview button to display an image on screen before save it. To save data is to save information to the database and copy an image file to the server drive (the destination location for image files is predefined.)
    3. create another page where users can browse information from the database and display an image for a selected record by getting from the server.
    I need suggestions on...
    1. how to display an image on page from the local drive?
    2. how to copy a file from a local drive to a server?
    3. how to display an image on page from the server drive?
    Thank you.
    nat

    See:
    http://tompeez.wordpress.com/2011/11/26/jdev11-1-2-1-0-handling-imagesfiles-in-adf-part-1/
    http://tompeez.wordpress.com/2011/11/26/jdev11-1-2-1-0-handling-imagesfiles-in-adf-part-2/
    http://tompeez.wordpress.com/2011/12/16/jdev11-1-2-1-0-handling-imagesfiles-in-adf-part-3/
    Where Timo saves images to the database, you save it to the file system (examples on how to do this from Java are available plenty if you just Google for it). Similar to Timo you then use the image tag to display images. The difference is that you can directly add the URL from the database table.
    The benefit of using a database to host images is that you are not dependent on file server structures though
    Frank

  • I have transfered my library my library to a NAS drive. How do I stop Itunes from creating the default folder on the local drive?

    I've transferred my Itunes Media Library to a NAS drive, and pointed Itunes (using the advanced preferences tab) to the relevant folder on the NAS drive. I have done this to free up disk space on a computer I primarily use for work but which I use both at home and at work. The NAS drive is at home. (To clarify, I am not expecting Itunes to function at work, only at home when access to the NAS drive is available).
    Under certain circumstances Itunes will start-up at work and when it does it will create the folder structure for the Itunes Media Library in the default location (on the local drive) instead of looking for the location I have specified (the NAS drive) which it should not be able to find when I am at work and telling me that it can't find it (which would be fine).
    How do I stop Itunes from recreating the default folder structure and defaulting the file path to the standard media library location on my local drive? Every time this happens I have to re-point Itunes to the NAS drive location, which often requires me to reconsolicate libraries which is tedious and time consuming. It seems that in the process of one of these consolidations I have lost some of the media files. They are still in the library (ie. visible in the Itunes window) but Itunes can't find the media associated with that file - identifying them with an excamation mark "!".
    Any help with this would be appreciated, as I have read several forums and threads, and despite trying several different approaches I have been unable to address the problem, which appears to be exacerbated by the laptop being remote from the NAS drive.

    angelofromnsw wrote:
    Can I put the ".itl" and other database files on the NAS, and if so where would I put them? I'm thinking that if the library file is only available at home then the ITunes library won't get corrupted at work when it can't find the media, in the event that I accidentally start up itunes eg. while opening an attachment or disc that can be read by Itunes.
    iTunes will start up and you will have an empty library.
    Can I put the ".itl" and other database files on the NAS, and if so where would I put them?
    Yes.
    Quit iTunes.
    Copy the /Music/iTunes/ folder on the NAS.
    Move the /iTunes media/ folder currently on the NAS into  the /iTunes/ folder you just copied to the NAS.
    Hold Option, launch iTunes, select Choose library... and select the iTunes folder on the NAS.
    You can delete /Music/iTunes/ folder on the internal drive.
    If you launch iTunes while NOT comnnected to the NAS, iTunes will recreate the /Music/iTunes/ folder and you will have an empty library.
    WHen you are again connected to the NAS, just do step 4 above.
    Do you know what the advantages and disadvantages are of having the database files like the ".itl" files stored locally versus on the NAS?
    Keeping everyhing together inside the iTunes folder makes it "cleaner" and simpler to manage everything.

  • HT4191 iPhone Local Storage "My iPhone" - How do you create this folder for use by the Notes app on a iPhone or iPad?  If I want to keep some notes only on my device and not in a cloud environment associated with an e-mail account.

    iPhone Local Storage "My iPhone" - How do you create this folder for use by the Notes app on a iPhone or iPad?  If I want to keep some notes only on my device and not in a cloud environment associated with an e-mail account.  I've seen reference to the  "My iPhone" local storage put no mention on how you create this folder or access this folder within the Notes app.  I realize storing information in a local storage like this provides no syncing between other iDevices but that is exactly what I'm looking for.  I'm running iOS7.0.4 on a iPhone 5S, and a iPad Air.  Any help would be greatly appreciated.

    If you go to Settings > Notes > Default Account you will see "On My iPhone" as the default account and the only choice if you have not enabled syncing Notes in Settings >iCloud or Settings > Mail, Contacts, Calendars. If you have enabled syncing you can still select "On My iPhone" as the default account. When you are in the Notes app you won't see any accounts listed if you have not enabled syncing because they are all in the On My iPhone account and that is the only place possible. It is not a folder that you create.

  • How to display/create Local field in SAP query

    HI All,
    I'm new to abap query. I have to include a local field in the existing query. I know through SQ01->Edit->Local field we can display the Local fields, but the options under Local Fields menu option are disable even in change mode of Query.
    So, later through SDN found that, I have to Switch On the short names menu option. Even the sub-options in Short Names are disabled.
    Can any body please let me know how can we display the local fields to the change the formula and how can we create the new local fields in the existing qeury.
    Hope I'm able to explain my issue clearly.
    Thanks in advance.

    You can create the local fields in the "Select Field" screen. (Third screen after "Title, Format" and "Select Field Group") This option is disabled on the other screens.<br />
    <br />
    <i>Reference : <a class="jive-link-external" href="http://help.sap.com/saphelp_NW70EHP1/helpdata/en/d2/cb4186455611d189710000e8322d00/frameset.htm" target="_newWindow">Defining Local Fields</a> in <a class="jive-link-external" href="http://help.sap.com/saphelp_NW70EHP1/helpdata/en/d2/cb3efb455611d189710000e8322d00/frameset.htm" target="_newWindow">SAP Query</a>.</i><br />
    <br />
    Regards,<br />
    Raymond

  • What is meant by Local Class and how we can create local classes in abap?

    Hi Friends
    what is meant by Local Class and how we can create local classes in abap?
    Regards,
    Sree

    Hi
    Local classes are the classes which we declare and use using the SE38 ABAP editor
    Global classes are the classes which we find in SE24 and call the methods of them into our program.
    see the sample code
    REPORT zs_class.
    SELECTION SCREEN
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME.
    PARAMETERS:p_var TYPE i,
    p_var1 TYPE i.
    SELECTION-SCREEN END OF BLOCK b1.
    CLASS d_class DEFINITION
    CLASS d_class DEFINITION.
    PUBLIC SECTION.
    METHODS:
    add,
    sub.
    PROTECTED SECTION.
    DATA : var2 TYPE i.
    ENDCLASS. "d_class DEFINITION
    CLASS d_class IMPLEMENTATION
    CLASS d_class IMPLEMENTATION.
    METHOD add.
    var2 = p_var + p_var1.
    WRITE:/ var2.
    ENDMETHOD. "add
    METHOD sub.
    var2 = p_var - p_var1.
    WRITE:/ var2.
    ENDMETHOD. "sub
    ENDCLASS. "d_class IMPLEMENTATION
    START-OF-SELECTION
    START-OF-SELECTION.
    DATA: obj TYPE REF TO d_class.
    CREATE OBJECT: obj .
    CALL METHOD: obj->add,
    Regards
    Anji

  • How do we create Hyperlink to local file on c:\ in Web Intelligence

    How de we create Hyperlink to local file on c:\ in Web Intelligence.
    Thanks in advance,
    K.

    K,
    You can't hyperlink to a local file when you are in WebI.  The ability to hyperlink requires the http protocol to be employed, wrapped within a web service (like IIS, for instance).  So to hyperlink to any file, that file must be a part of a web service, and the web service must have access to the folder (again, like in IIS you must create web shares and IIS must "mount" those shares in an http environment).  Hopefully I'm making sense to you on why it can't be done. 
    On the other hand, content that is static and has been made available for browsing on the web can also be linked to by populating a cell in a WebI report, marking that cell as "read cell contents as hyperlink", etc, etc.
    Thanks,
    John

  • How do I edit the permissions that Adobe Media Server creates directories with?

    OS: CentOS 6.6 AWS-provided AMI found here
    I'm using Adobe Media Server 5.0.7.
    I have my application set up so that when a user records a video to the server, it goes into its own directory.
    If this directory does not exist, it is created automatically by AMS. The problem is that this new directory is created with a permission level that prevents my other app from reading and accessing objects inside of it.
    How can I tell AMS to create directories with a permissions level that I specify?

    I was reading up about nellymoser on Wikipedia (the most reliable source!) and it seems like Adobe has problems with the licensing for nellymoser. They apparently tried to release a standalone converter, but the licence agreement that was inherited with the codec didn't allow it.
    So maybe it's just a rock in a hard place situation. Really too bad, if this is the case, that a company can own something but not be able to allow their customers to use it fully.

Maybe you are looking for

  • Custom fields position change in srm 7.0 in Purchase Order on WebDynpro

    Hi Experts, We are upgrading to SRM 5.0 to SRM 7.0 In Purchase order screen,under account assignment,we want to see the acocunt assignment detailed view as the default view under tab "ACCOUNT ASSIGNMENT".Click on the DETAILS button and then the detai

  • M602 setting i/o timeout

    Hi Concerning a HP LaserJet 600 M602x. Is it possible to set the I/O timeout through any remote session, e.g. web page, telnet or WebJet? On my HP LaserJet 9050dn it can be done using the web page, but I can for the life of me not find it on the M602

  • Database link between Oracle Standard Edition and Oracle Enterprise Edition

    Hi, I am looking at setting up a data transfer process between an Oracle 11g Enterprise Edition database and an Oracle 11g Standard Edition database. Database links would be required each way. I heard once that this is not permitted as connecting Sta

  • Delay in partial trigger invocation

    HI I am facing an interesting issue. I have a table and some commandtoolbar buttons for add and delete functionality. So the scenario is whenever a user selects a row in a table, buttons are enabled and he/she can perform add or delete.I have some en

  • Photoshop Video Tutorials

    Anyone knows of good video based tuotrials in Photoshop (a series preferably) that are free? Thank you, Nima Zahadat