Results 1 to 3 of 3
- 06-14-2010, 08:47 AM #1
Member
- Join Date
- Jun 2010
- Posts
- 6
- Rep Power
- 0
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.
- 06-14-2010, 12:29 PM #2
Member
- Join Date
- Jun 2010
- Posts
- 2
- Rep Power
- 0
These are system reserved words right?
http://blog.eukhost.com/webhosting/c...-windows-os/-- check this..
- 06-14-2010, 12:54 PM #3
Senior Member
- Join Date
- Jun 2008
- Posts
- 2,366
- Rep Power
- 7
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
-
code to create a folder in java
By radhika123 in forum New To JavaReplies: 7Last Post: 07-21-2011, 11:21 AM -
Java Source to create a Fourm
By softbuzz in forum Forum LobbyReplies: 1Last Post: 01-19-2010, 04:08 PM -
Java Source/APIs to create a Fourm
By softbuzz in forum Advanced JavaReplies: 2Last Post: 01-09-2010, 09:08 PM -
Java Source/APIs to create a Fourm
By softbuzz in forum Java ServletReplies: 0Last Post: 01-07-2010, 06:56 AM -
Create a folder within a java program.
By yellowfire7 in forum New To JavaReplies: 2Last Post: 10-26-2009, 10:14 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks