Can any one help Me? please..

hi,
this is achari,
i am trying to use copy command in java program with the syntax like the below
Process pr=Runtime.getRuntime().exec('cmd /c copy c:\*.txt c:\aaa\");
but its getting an exeception with the escape sequences. so how do i can specify the path as a directory structure.
if any body can solve this please help me. i am in very very urgency to do this.
you can contact me at : [email protected]

Everywhere you need a single backslash, put two:
Process pr=Runtime.getRuntime().exec("cmd /c copy c:\\*.txt c:\\aaa\\");The first backslash escapes the second.
Also, the single ' should be " (probably just a typo in your post).
And don't forget code tags (button above posting box).

Similar Messages

Maybe you are looking for

  • How to download adobe interactive form layout

    Hi Experts,     can any one  suggest me how to download the adobe interactive form PDF layout including  output values. when we download the form values are  not displaying. Thanks in advance. Edited by: krishnaveni.Nomula on Sep 28, 2011 4:44 PM

  • MAC OS 10.9   some users cannot print to new Ricoh MP C6502   print job is holding for authentication and cannot figure out why

    I have a few IMAC and G5 users who have OS10.9 who cannot print to a new Richoh MP C6502, I downloaded and installed the new PS driver and it works on some systems but I have 3 people that goes right to Hold for Authentication.   I tried deleting eve

  • Saving metadata changes

    When making changes to the metadata only in PSE editor, does saving the changes to the original jpg file result in any image degradation? Is there a better program you can recommend to modify metadata information, especially to multiple files?

  • Standard report for pricing condition.

    Hello everyone, Is there any standard report to see the price maintain in particular condition record in VK11 with different key combination. can anybody tell me in which table it is maintain. Regards, Naveed Ansari.

  • Video pocast no sound

    I recently posted up my first video series on iTunes.  http://itunes.apple.com/us/podcast/retro-rumble-season-1/id502409270 Problem is when I play these videos in itunes I get no sound.  My source files (mov) work just fine on my PC. If I download th