Challenging problem --->Executing cmd file in java environment


Anyone knows how to execute a cmd file in java environment. The scenario as follows, i need to perform backup and recovery using OS command (xcopy 'source' 'destination' /s /i), so i write the command and save it as backup.cmd.I am able to run that file outside java environment, but the problem is i am not able to call and execute it within java environment.And i always get error message as follows: access denied ( C:j2sdkee1.3.1public_htmlcmd.exe execute

Should anyone know how to solve this problem please reply asap...

Or anyone knows how to perform online backup and recovery in java environment may post it as well...

Thanks in advance..

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!