Results 1 to 3 of 3
  1. #1
    123456 is offline Member
    Join Date
    Jun 2010
    Posts
    6
    Rep Power
    0

    Post JAVA source code to create the PRN folder

    Hi Friends,

    I am new to JAVA, trying to create PRN folder through JAVA code:
    "Runtime.getRuntime().exec("md\\\\.\\d:\\prn") ;"

    But it is giving following Exception :

    Cannot run program "md\\.\d:\prn": CreateProcess error=2, The system cannot find the file specified at java.lang.ProcessBuilder.start(Unknown Source)"

    I had seen that same command "md\\\\.\\d:\\prn" can be used to create the PRN folder through DOS command.

    Looking fwd for your suggestion.

    Thanks in advance.

  2. #2
    Join Date
    Jun 2010
    Posts
    2
    Rep Power
    0

    Post

    These are system reserved words right?
    http://blog.eukhost.com/webhosting/c...-windows-os/-- check this..

  3. #3
    masijade is offline Senior Member
    Join Date
    Jun 2008
    Posts
    2,571
    Rep Power
    8

    Default

    What is wrong with your cross-post. Again, read that article linked to in your other thread! I even told you that you have fallen into the "not a command" trap.

Similar Threads

  1. code to create a folder in java
    By radhika123 in forum New To Java
    Replies: 7
    Last Post: 07-21-2011, 11:21 AM
  2. Java Source to create a Fourm
    By softbuzz in forum Forum Lobby
    Replies: 1
    Last Post: 01-19-2010, 04:08 PM
  3. Java Source/APIs to create a Fourm
    By softbuzz in forum Advanced Java
    Replies: 2
    Last Post: 01-09-2010, 09:08 PM
  4. Java Source/APIs to create a Fourm
    By softbuzz in forum Java Servlet
    Replies: 0
    Last Post: 01-07-2010, 06:56 AM
  5. Create a folder within a java program.
    By yellowfire7 in forum New To Java
    Replies: 2
    Last Post: 10-26-2009, 10:14 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •