Want to hide a folder using Java

I want to hide a folder using Java. Can anyone give me API to do this.
I have checked the I/O package in that only isHidden() is there which shows if the file is hidden or not. But i want to hide a folder using Java code.
Can you please help me.
Thanking you in advance

If your dealing with a Linux directory you could hide it by prepending a dot. Or, if a directory of that name already exists, prepending a number of dots. Unhiding would consist of removing all the leading dots (and this operation might not always be possible).
If it's a Windows directory you might want to look at the "attrib" command.
[http://www.computerhope.com/attribhl.htm]

Similar Messages

  • How to create a Folder using java.

    Hi All,
    I have a doubt. I want to create a folder using java.
    Inputs are the destination where the folder should be created and the name of the folder. Plz help me in this regard.
    thanks and regards,
    Vincent .R.

    check out javadoc for java.io
    File reldir=new File("NewDir");//relatively where your program runs
    reldir.mkdir();
    File absdir=new File("C:/NewDir");//absolute path
    reldir.mkdir();
    File newdir=new File(absdir,"SubDir");//defines another dir under absdir
    newdir.mkdir();
    Gil

  • Want to hide command bottun using javascript

    Hi,
    I want to hide command bottun using javascript when form load
    <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>Add/Edit CD details</title>
    <script type="text/javascript" src="Test.js"></script>
    <script type="text/javascript" src="datetimepicker.js"></script>
    <script type="text/javascript">
    *function hideDeleteButton(){*
    if(document.forms['editForm'].elements['editForm:cd_number'].value="")
    document.('viewForm:deleteEntry').style.visibility = "hidden";
    </script>
    </head>
    *<body onLoad="hideDeleteButton(),document.getElementById('editForm:cd_title').focus();">*
    <f:view>
    <h:form id="editForm" onsubmit="return validateDate()">
    <b><p align="center">CD Management</p></b>
              <% if(session.getAttribute("supervisor")==null)
         response.sendRedirect("../index.faces");
    %>
              <table width="100%">
              <tr><td valign="top" >
              <h:panelGrid columns="8">
              <h:commandLink id="com1" value="CD management" action="#{CDBean.getAllCDs}" title="CD management" immediate="true"/>
              <%if(session.getAttribute("supervisor")!=null && session.getAttribute("supervisor").toString().equals("Y")){%>
              <h:outputText value="||" id="use1r"></h:outputText>
              <h:commandLink id="Users" value="Users account" action="#{usersBean.viewAllAccounts}" title="Users account" immediate="true"/>
              <%} %>
              <h:outputText value="||" id="use13"></h:outputText>
              <h:commandLink id="pas" value="Change password" action="#{changePasswordBean.changePassword}" title="Change password" immediate="true"/>
              <h:outputText value="||" id="us2er"></h:outputText>
              <h:commandLink id="com2" value="Log out" action="#{logoutBean.logout}" title="Log out" immediate="true">
              </h:commandLink>
              </h:panelGrid>
              </td>
              <td valign="top" align="right" title="Logged in||<%=session.getAttribute("username") %>">Logged in||<font color="green"><%=session.getAttribute("username") %></font></td>
         </tr>
         </table>
    <hr>
    <b><h:outputText value="#{viewCDBean.form_title}"/></b><br><br>
    <div id="no"><h:outputText id="nocd" value="#{viewCDBean.cd_number}"/></div>
    <h:panelGrid columns="3">
    <h:outputText id="output112"/><h:inputHidden id="cd_number" value="#{viewCDBean.cd_number}"></h:inputHidden><h:outputText id="output117"/>
    <h:outputText id="output1" value="Title"/><h:inputTextarea id="cd_title" value="#{viewCDBean.cd_title}" rows="2" cols="40" required="true"></h:inputTextarea><h:message for="cd_title" style="color:red"/>
    <h:outputText id="output2" value="Contents"/><h:inputTextarea id="cd_contents" value="#{viewCDBean.cd_contents}" rows="2" cols="40"></h:inputTextarea><h:outputText id="output18"/>
    <h:outputText id="output3" value="License key"/><h:inputText id="license_key" value="#{viewCDBean.license_key}" size="50"></h:inputText><h:outputText id="output19"/>
    <h:outputText id="output4" value="Vender company"/><h:inputText id="vendor_company" value="#{viewCDBean.vendor_company}" size="50"></h:inputText><h:outputText id="output20"/>
         <h:outputText id="output5" value="Vender name"/><h:inputText id="vendor_name" value="#{viewCDBean.vendor_name}" size="50"></h:inputText><h:outputText id="output21"/>
         <h:outputText id="output6" value="Vender contact no"/><h:inputText id="vender_contact_no" value="#{viewCDBean.vender_contact_no}" size="50"></h:inputText><h:outputText id="output22"/>
    <h:outputText id="output7" value="Remarks"/><h:inputTextarea id="remarks" value="#{viewCDBean.remarks}" rows="2" cols="40"></h:inputTextarea><h:outputText id="output23"/>
    <h:outputText id="output8" value="Added by"/><h:inputText id="entered_by" value="#{viewCDBean.entered_by}" readonly="true"></h:inputText><h:outputText id="output24"/>
    <h:outputText id="output9" value="Last modified by"/><h:inputText id="last_updated_by" value="#{viewCDBean.last_updated_by}" readonly="true"></h:inputText><h:outputText id="output25"/>
    <h:outputText id="output10" value="CD/DVD"/>
    <h:selectManyListbox id="cd_dvd" styleClass="selectOneMenu" required="true" size="1" value="#{viewCDBean.CD_DVD}">
                   <f:selectItem itemValue="" itemLabel="DVD" />
                   <f:selectItem itemValue="0" itemLabel="CD" />
              </h:selectManyListbox>
    <h:message for="cd_dvd" style="color:red"/>
    <h:outputText id="output11" value="License/Open source"/>
    <h:selectManyListbox id="license_or_open_source" styleClass="selectOneMenu" required="true" size="1" value="#{viewCDBean.license_or_Open_source}">
                   <f:selectItem itemValue="1" itemLabel="License" />
                   <f:selectItem itemValue="0" itemLabel="Open source" />
              </h:selectManyListbox>
    <h:message for="license_or_open_source" style="color:red"/>
    <h:outputText id="output12" value="Serial key"/><h:inputTextarea id="serial_key" value="#{viewCDBean.serial_key}" rows="2" cols="40"></h:inputTextarea><h:outputText id="output28"/>
    <h:outputText id="output13" value="Purchase date"/>
    <t:inputCalendar id="purchase_date" value="#{viewCDBean.purchase_date}"
                   renderAsPopup="true" renderPopupButtonAsImage="true" popupButtonImageUrl="cal.gif" title="pick a date"
                   alt="pick a date" popupDateFormat="dd-MMMM-yyyy">
              <f:convertDateTime type="date" dateStyle="default" pattern="dd-MMMM-yyyy"/>
         </t:inputCalendar>
         <h:outputText value="(dd-mmm-yyyy)" id="purchase_date2" style="color:red"/>
    <h:outputText id="output14" value="Purchase price"/><h:inputText id="purchase_price" value="#{viewCDBean.purchase_price}"></h:inputText><h:message for="purchase_price" id="output30"/>
    <h:outputText id="output15" value="Status"/><h:inputText id="status" value="#{viewCDBean.status}"></h:inputText><h:outputText id="output31"/>
    </h:panelGrid>
    <table>
    <tr>
    <td>               </td>
    <td>                </td>
    <td><%if(session.getAttribute("supervisor")!=null && session.getAttribute("supervisor").toString().equals("Y")){%>*<h:commandButton value="Delete" id="deleteEntry" action="#{CDBean.deleteFromCDMaster}" onclick="return insure()" />* <h:commandButton value="Submit" action="#{CDBean.modifyDetail}"/> <%}%></td>
    <td><h:commandButton value="Cancel" action="#{CDBean.getAllCDs}" immediate="true" onclick="setDateFieldBlank()"/></td>
    </tr>
    </table>
    </h:form>
    </f:view>
    </body>

    function hideDeleteButton(){
    if(document.forms['editForm'].elements['editForm:cd_number'].value="")
    document.z('viewForm:deleteEntry').style.visibility = "hidden";
    This script will not work

  • Want To create Zip file  using java,And Unzip without Java Program

    I want to create a zip text file using java, I know Using ZipOutputStream , we can create a zip file, , But i want to open that zip file without java program. suppose i use ZipOutputStream , then zip file is created But for unZip also difftrent program require. We cant open that zip file without writing diff java program.
    Actually i have one text file of big size want to create zip file using java , and unzip simply without java program.Its Possible??
    Here is one answer But I want to open that file normal way(
    For Exp. using winzip we can create a zip file and also open simply)
    http://forum.java.sun.com/thread.jspa?threadID=5182691&tstart=0

    Thanks for your Reply,
    I m creating a zip file using this program, Zip file Created successfully But when im trying to open .zip file i m getting error like "Canot open a zip file, it does not appear to be valid Archive"
    import java.io.*;
    import java.util.zip.*;
    public class ZipFileCreation
         public static void main (String argv[])
         try {
         FileOutputStream fos = new FileOutputStream ( "c:/a.zip" );
         ZipOutputStream zip = new ZipOutputStream ( fos );
         zip.setLevel( 9 );
         zip.setMethod( ZipOutputStream.DEFLATED );
    //     get the element file we are going to add, using slashes in name.
         String elementName = "c:/kalpesh/GetSigRoleInfo092702828.txt";
         File elementFile = new File ( elementName );
    //     create the entry
         ZipEntry entry = new ZipEntry( elementName );
         entry.setTime( elementFile.lastModified() );
    //     read contents of file we are going to put in the zip
         int fileLength = (int)elementFile.length();
         System.out.println("fileLength = " +fileLength);
         FileInputStream fis = new FileInputStream ( elementFile );
         byte[] wholeFile = new byte [fileLength];
         int bytesRead = fis.read( wholeFile , 0 /* offset */ , fileLength );
    //     checking bytesRead not shown.
         fis.close();
    //     no need to setCRC, or setSize as they are computed automatically.
         zip.putNextEntry( entry );
    //     write the contents into the zip element
         zip.write( wholeFile , 0, fileLength );
         zip.closeEntry(); System.out.println("Completed");
    //     close the entire zip
         catch(Exception e) {
    e.printStackTrace();
    }

  • How to create  and hide a drive using java?

    I want to ask how to create a temporary drive/ or a drive by allocating some space of existing drives(eg allocating some space of C: Drive such as 5mb for storing files on the new drive that has been created) and then i want to hide that drive .So Please can anyone Explain me how to do that.

    Iam saying to all of you iam not blaming to anyone even java. And my harddisk is not currepted or damage by using that. My harddisk is working properly. But i don't know why all of you think that i am blamming to someone but iam asking some question which need to be answered.
    I am clearing all of you i am a student and iam creating an project in java for that i need this. I also want to add File/Folder lock on that project. This technique i have seen in folder lock 6 software that they use hidden drive to store files. Thats why iam asking that how to apply this technique using java.
    And plz plz read this carefully and answer me to solve my problem.

  • I hid a folder using "." through terminal...how do I find it?

    I left my computer with a family friend about a month ago, and before doing so I hid a folder which had pix of my wedding, work files, finance stuff etc.
    I found a way to do it, involving terminal, and typing "." before the files name.
    So basically, I can't remember the file name at this point. Thought it was one thing, and it's not, so is there a way for me to locate this folder?

    Use the following article to help you see these files:
    Show Hidden Files in Mac OS X
    But you might want to disable this "feature" after you found what you were looking for.
    Alternatively you could just use the Finder's Find (command-F) command and search for file by Kind Name plus File visibility Invisible Items.

  • How to create a directory or Folder  using java program?

    Hi all,
    Can any one know, how to create a directory(new folder) in java.
    can any give me some idea, on creating a directory using java program dynamically.
    thanx in advance

    hi thanks for your answer,
    sorry, actual i know this technique(its my fault i didnt mentioned it)
    i am looking for some what different technique.
    bye
    ram

  • How to hide hidden files using java FileSystemView

    My application has a browser. I use the following method from FileSystemView
    public File[] getFiles(File dir,
    boolean useFileHiding)
    with false as the second argument so that the browser doesn't display hidden files.
    It doesn't work completely.
    I found out there are two types of hidden files in Mac. the ones that being with "." (unix based) and the ones that have an invisibility attribute for the meta of the file (folders like /usr, /bin, /tmp, /etc).
    The getFiles filter works only for hidden files that start with "." but it still shows the second type of hidden files.
    For the second type of hidden files in Mac, how can I get the invisibility file attribute information in Java so that I can hide them from the file browser?
    thanks,

    The GetFileInfo tool that ships with the XCode Tools can display the file's information. Additionally, the SetFile tool allows setting those flags. How you use java to implement those, I suggest you ask at the Unix forum under OS X Technologies.

  • Unzipping Files in Folder using Java

    Hello,
    I am working on a project and I am having trouble writing a program that will unzip all the files in a given directory (using Java). The directory is known, but the name and number of files to be unzipped will vary on each execution. The files need to be unzipped and then placed in a different specified folder.
    Thank you for your assistance.

    This should give you some idea. Be sure to import java.util.zip.
        /** unzipDirArchive */
        public static void unzipDirArchive(File inFile)
            throws IOException {
            ZipEntry entry = null;
            // Create stream to read the compressed file.
            ZipInputStream zis = new ZipInputStream(new FileInputStream((inFile)));
            // Create stream to write the output file.
            FileOutputStream fos = null;
            byte buffer[] = new byte[4096];
            int bytesRead;
            boolean dirCreated = false;
            // For each entry in the ZIP input file.
            while ((entry = zis.getNextEntry()) != null) {
                // If we have not created the enclosing directory.
                if (!dirCreated) {
                    // Create the directory.
                    int endIndex = entry.getName().lastIndexOf('/');
                    String dirName = entry.getName().substring(0, endIndex);
                    // DEBUG
                    // System.out.println("dirName is: " + dirName + ".");
                    File newDir = new File(dirName);
                    // Check if the output dir already exists.
                    if (newDir.exists()) {
                        System.err.println("Uncompress: Output directory " + dirName +
                                           " already exists.");
                        System.exit(-5);
                    else {
                        // If we successfully created the enclosing directory.
                        if (newDir.mkdir()) {
                            dirCreated = true;
                        else {
                            System.err.println("Uncompress: Cannot create directory " +
                                                dirName + ".");
                            System.exit(-6);
                    } // end if newDir.exists
                } // end if !dirCreated
                System.out.println("Inflating: " + entry.getName());
                fos = new FileOutputStream(entry.getName());
                // Copy the data from the ZIP file entry to a file.
                while((bytesRead = zis.read(buffer)) != -1)
                    fos.write(buffer, 0, bytesRead);
                fos.close();
            } // end while more entries in the ZIP file
            zis.close();
        } // end method unzipDirArchive

  • Zipping files in a folder using java.util.zip

    hi guys,
    does any body has the java code for
    zipping files in a folder
    hi guys,
    actually i want to zip no of files in a folder .the folder can also have sub folder
    and after zipping when i extract the files manually i should
    maintain the same folder structure
    does any body has the code
    please reply me soon its a bit urgent

    hi smeee
    i tried running ur code but its not working
    here the command
    java c:\abc\ zzz.zip
    its saying
    no files or directories even though there's the
    directory present
    what's the solution Hi,
    Oops that was because of the error check added at the last moment..
    Anyway, You need to use the following command to run it :
    java ZipUtility c:\abc c:\zzz.zip
    Please use the following corrected code:
         Class to zip file(s).
         Requires jdk1.3.1.
         To run use the following command:
         java ZipUtility <directory or file to be zipped> <name of zip file to be created>
         Please specify absolute path names as its parameters while running this program.
    import java.util.zip.*;
    import java.io.*;
    public class ZipUtility {
         ZipOutputStream cpZipOutputStream = null;
         String strSource = "";
         String strTarget = "";
         String strSubstring = "";
         public static void main(String args[]) {
              if(     args == null || args.length < 2) {
                   System.out.println("Usage: java ZipUtility <directory or file to be zipped> <name of zip file to be created>");
                   return;
              ZipUtility udZipUtility = new ZipUtility();
              udZipUtility.strSource = args[0];
              udZipUtility.strTarget = args[1];
              udZipUtility.zip();
         private void zip(){
                        try
                             File cpFile = new File (strSource);
                             if (!cpFile.isFile() && !cpFile.isDirectory() ) {
                                  System.out.println("\nSource file/directory Not Found!");
                                  return;
                             if  (cpFile.isDirectory()) {
                                  strSubstring = strSource;;
                             } else {
                                  strSubstring = "";
                             cpZipOutputStream = new ZipOutputStream(new FileOutputStream(strTarget));
                             cpZipOutputStream.setLevel(9);
                             zipFiles( cpFile);
                             cpZipOutputStream.finish();
                             cpZipOutputStream.close();
                             System.out.println("\n Finished creating zip file " + strTarget + " from source " + strSource);
                        }catch (Exception e){
                             e.printStackTrace();
         private void  zipFiles(File cpFile) {
                   if (cpFile.isDirectory()) {
                        File [] fList = cpFile.listFiles() ;
                        for (int i=0; i< fList.length; i++){
                             zipFiles(fList) ;
                   } else {
                        try {
                             String strAbsPath = cpFile.getAbsolutePath();
                             String strZipEntryName ="";
                             if (!strSubstring.equals("") ){
                                  strZipEntryName = strAbsPath.substring(strSource.length()+1, strAbsPath.length());
                             } else {
                                  strZipEntryName = cpFile.getName();
                             byte[] b = new byte[ (int)(cpFile.length()) ];
                             FileInputStream cpFileInputStream = new FileInputStream (cpFile) ;
                             int i = cpFileInputStream.read(b, 0, (int)cpFile.length());
                             ZipEntry cpZipEntry = new ZipEntry(strZipEntryName);
                             cpZipOutputStream.putNextEntry(cpZipEntry );
                             cpZipOutputStream.write(b, 0, (int)cpFile.length());
                             cpZipOutputStream.closeEntry() ;
                        } catch (Exception e) {
                             e.printStackTrace();

  • Want to shutdown solaris 10 using java application

    Greetings all!
    I have been unsuccessful at creating my application to shut down a Solaris 10 server with a java application. I am hoping someone might be able to point me in a good direction here.
    I want to log on as a regular user and run a java application that monitors remote information (UPS battery voltage) and will gracefully shutdown the server if there is a problem. If I run my application as root all is well, except that I am running as root :)
    I can write code to access the shell:
    Process proc = Runtime.getRuntime().exec("ls");
    BufferedReader Input = new BufferedReader(new InputStreamReader(proc.getInputStream()));
    while ((s = Input.readLine()) != null) {out.println(s);}
    But I can't do a "su"?
    I've tried multiple examples out there of code that allows shell communication, and good examples of using Runtime.getRuntime()
    I think the conclusion is that you can't issue a su command via java application.
    I've also tried to telnet from a console to localhost and log in as root - no joy there either.
    Would someone have information that might point me in the right direction to solve this problem? Even better, if there is a sample snippet to go along with any help.
    Thank You very much!
    Ray

    Wow,
    Thank you for the very detailed response! I read the referenced web page last night, I'll read it again today too. RBAC sounds like a pretty complicated administrative tool. Coming from the Win32 domain, most of this security stuff is sadly uncharted territory for me (except for my mac).
    Let me see if I understand your method:
    Create a role, javarole, this role needs Primary Administrator priviliges (in order to invoke "shutdown -y -i5 -g0") only available to root
    Create a powerdown profile, essentially a script:
    this line creates the file:
    # echo "powerdown:::profile to powerdown server:help=powerdown.html" >> /etc/security/prof_attr
    I think this is the actual added script: (instead of the shutdown command just use init 5)
    # chmod 755 /usr/sbin/powerdown
    # cat > /usr/sbin/powerdown <<EOF
    #!/bin/sh
    /usr/sbin/init 5
    EOF
    This line is a bit confusing to me, is it also part of the script?
    # echo "powerdown:suser:cmd:::/usr/sbin/powerdown:uid=0" >> /etc/security/exec_attr
    I see the uid=0 (root)
    It seems obvious to me that I log in a root to create this script, which is the reason it has permission to shutdown...right?
    Also, I tried the su command using runTime.exec("su poweroff"); // a user I created to try poweroff scripts
    It seems that su is generally not available, I will create the role and try to telnet to it.
    What about creating a generic user script that includes the javarole name and password, and then run the script "/usr/sbin/powerdown"
    Yes, it leaves a role password exposed, however it is a very limited role, that is not accessible by a user login, but the turn off script is available to every user?
    Regards,
    Ray

  • How do you write any kind of content you want into a new file using Java?

    I know this is extremely basic, but I have absolutely no idea how to do this!
    How can I create a brand new file on my machine, this new file containing literally ANYTHING I want: String content; Image content, Excel content, Whatever content.. literally anything on the planet I can come up with..??
    I have tried everything I can think of to no avail and have exhausted every online tutorial I could find both here and via Google, to no avail. I can't figure it out, and this is all I have so far:
    * FileDownloader.java
    * Created on January 10, 2007, 3:47 PM
    * To change this template, choose Tools | Template Manager
    * and open the template in the editor.
    package FileTools;
    import java.io.*;
    import java.net.*;
    * @author ppowell-c
    public class FileDownloader {
        public static void download(URL url, File file) throws IOException {
            InputStream in = url.openStream();
            FileOutputStream out = new FileOutputStream(file);
            byte[] b = new byte[1024];
            int len;
            while((len = in.read(b)) != -1) {
                out.write(b, 0, len);
            out.close();
        public static void download(String path, File file) throws IOException {
         download(new URL(path), file);
        public static void download(String path, Object contents) throws IOException {
         ObjectOutputStream out = new ObjectOutputStream(new FileOutputStream(path));
         out.writeObject(contents);
         out.close();
    }This code fails to download contents into a new file in the case whereby I want to create a new .ico Icon file with the contents from ImageIcon.getImage() as an example, which is what I want to do right now.
    Thanx
    Phil

    beyond any mortal being? In PHP it's extremely easy,
    it's just three lines:
    <?
    $fileID = @fopen('/path/to/your/file', 'rb');
    @fputs($fileID, $contents);  // $contents can be
    literally anything, even anobject!
    @fclose($fileID);
    The thing here is - what is in $contents? I personally don't have a clue how to manually create the contents for a .bmp file for instance - I don't know what should go where in order for a .bmp reader to be able to recognize the file as a "real" bitmap (.bmp) file. I can, however, just put anything I want - anything at all into a file, write it out, calling it a .bmp file. Will it be a .bmp file? No, of course not. So, what is in $contents?
    ~Bill

  • I want to Edit PDF file using java(urgent)

    if any body helps me i shall be thankful to him.
    its urgent i hav to complete my assignment.

    http://www.geocities.com/marcoschmidt.geo/java-libraries-pdf.html
    http://www.firehouseinternational.com/usersite/uniforms/uniformsproduct.asp?categoryid=8787&productid=13454&page=1

  • Want to create a new folder in Windows using Java?

    Hello everyone!!!
    The situation is I want to create a folder using Java.
    What I am doing is I am asking client to upload files.If the client is uploading for the first time a new folder is created on the server side and all the files related with that client will be uploaded in that folder only.Can anyone help me with the code.I am using html for letting client select the file to be uploaded and jsp to upload the file .The server I am using is Tomcat5.5 and OS is Windows Xp.
    Please help me with the code or any alternate logic.
    Thanks in advance.

    create a java.io.File object for the path you'd like your directory to have and call .mkdir() on it (or mkdirs() if you need to create a hierarchy of directories).

  • I want run some command using java

    hi all,
    i want run command using java code.
    from cell prompt when i run this command 'mysqldump test > /home/DBNAME.sql'
    it will create DBNAME.sql file.
    but i want to run this command using java code
    i tried the following code but it did not work.
    is any other way is their?
    try {
                   Runtime.getRuntime().exec("setxkbmap nudi");
              } catch(IOException ioe) {
                   ioe.printStackTrace();
    thanks in advance
    daya

    hello,
    thanks for replay
    i am sorry the above code should be like this.(the above code is working fine)
    public class ExportTest{
         public ExportTest(){
              try {
                   Runtime.getRuntime().exec("mysqldump test > '/root/DBNAME.sql'");
              } catch(IOException ioe) {
                   ioe.printStackTrace();
              }catch(Exception e){
                   e.printStackTrace();
         public static void main(String args[]){
              new ExportTest();
    }when run above class, it not creating DBNAME.sql file.
    when run in command prompt it creating DBNAME.sql
    ($ mysqldump test > /root/DBNAME.sql)
    but i want to run this command from java code, that's way tried to do using above
    code, but it won't create DBNAME.sql
    is it wrong what i am doing? or any other way?
    thanks inadvace
    daya

Maybe you are looking for

  • HP Support Assistant Windows 7 Home Premium HP Pavillion dv6 3132tx

    I downloaded the latest version of hp support assistant with all the security disabled ie trend micro windows firewall and windows defender and when i went to use the support assistant it shows no product name or number and it goes through a scan pro

  • Search a text string to get location

    Is there any way to search a text string in a PDF file or a page of PDF file to get the location of this text string, say (x, y, width, height)? Thanks a lot for your help.

  • Connecting 3 G5s thru fibre

    I am new to this type of storage system and was just trying to understand it... So we have 3 G5s and each G5 had a Sonnet Sata PCIx card installed and each G5 has 2TB of Sata Drives RAID 0 for HD video storage. We want to add a fibre card in each and

  • Vendor not intended for a puchasing org

    Hi Experts,    While creating a SC, We are getting the following error of "Vendor xxx not intended for a puchasing org  yyyyy". We are using the EBP3.0. I will appreciate your help. Thanks, J Kumar.

  • Configurator 4 - final release now available

    This is our shipping release of Configurator 4. It includes various bug fixes and introduces Hi-DPI support. It was just posted yesterday. Also look for the HMTL Sample Panel and the forthcoming Photoshop CC Features on Adobe Exchange. Don't forget t