Win a copy of Spring Boot in Practice this week in the Spring forum!

sonal verghese

Greenhorn
+ Follow
since Apr 12, 2001
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by sonal verghese

I was able to solve my problem. Here is the solution:
Sonal,
In the best interest of the JavaRanch community, I would love to help with the problem you are having. Please post the text of your mail to the public forums so that everyone can benefit from your experience. There is probably somebody else that wants to do what you are doing and is having a similar problem.
Bodie ���

P.S. Your problem is in your use of xcopy, not your Java. Try it like this:
xcopy c:\SourceDirectory\*.* c:\BackupDirectory /s
without the trailing \ on your backup directory and be sure to use the *.* in your source argument. When I used your syntaxt I got "Invalid Path - 0 files copied". When I modified the syntax lightly, I got it to work just fine.
Thanks to all.
21 years ago
I was able to solve my problem. Here is the solution:
Sonal,
In the best interest of the JavaRanch community, I would love to help with the problem you are having. Please post the text of your mail to the public forums so that everyone can benefit from your experience. There is probably somebody else that wants to do what you are doing and is having a similar problem.
Bodie ���

P.S. Your problem is in your use of xcopy, not your Java. Try it like this:
xcopy c:\SourceDirectory\*.* c:\BackupDirectory /s
without the trailing \ on your backup directory and be sure to use the *.* in your source argument. When I used your syntaxt I got "Invalid Path - 0 files copied". When I modified the syntax lightly, I got it to work just fine.
Thanks to all.
21 years ago
Hi,
I have made a backup program which creates a destination directory and then copies a source directory to this destination directory. In Win 98, I used xcopy32.exe from c:\windows\command and it runs properly. But when I try this program in a Win-NT m/c I face the following problems:
1. I changed xcopy32.exe of win 98 m/c to c:\i386\xcopy.exe in NT m/c. Still the program does not work and gives no error. The message shown is:
Directory created
0 files copied.
Though there are many files in the source directory it doesn't copy any.
Please help me. Thanks in advance.
My source code is:
21 years ago
Hi,
I have made a backup program which creates a destination directory and then copies a source directory to this destination directory. In Win 98, I used xcopy32.exe from c:\windows\command and it runs properly. But when I try this program in a Win-NT m/c I face the following problems:
1. I changed xcopy32.exe of win 98 m/c to c:\i386\xcopy.exe in NT m/c. Still the program does not work and gives no error. The message shown is:
Directory created
0 files copied.
Though there are many files in the source directory it doesn't copy any.
Please help me. Thanks in advance.
My source code is:


[This message has been edited by sonal verghese (edited April 26, 2001).]
[This message has been edited by sonal verghese (edited April 26, 2001).]
21 years ago
Hi,
I have made a backup program which creates a destination directory and then copies a source directory to this destination directory. In Win 98, I used xcopy32.exe from c:\windows\command and it runs properly. But when I try this program in a Win-NT m/c I face the following problems:
1. I changed xcopy32.exe of win 98 m/c to c:\i386\xcopy.exe in NT m/c. Still the program does not work and gives no error. The message shown is:
Directory created
0 files copied.
Though there are many files in the source directory. Please help me. Thanks in advance.
My source code is:
21 years ago