473,414 Members | 1,764 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

calling windows utilities thru java

hello i have a problem

i have to call the windows utility which will hlp me copy files (large ones) n folders from a cdrom to a hard disk
the files r quite large so i cannot use the byte streams n i am trying to use the windows utilities itself

can anybody help me
Jan 24 '08 #1
4 1621
RedSon
5,000 Expert 4TB
hello i have a problem

i have to call the windows utility which will hlp me copy files (large ones) n folders from a cdrom to a hard disk
the files r quite large so i cannot use the byte streams n i am trying to use the windows utilities itself

can anybody help me
Next time try posting in the appropriate forum. You will find faster answers if you post your Java questions in Java instead of Misc.
Jan 24 '08 #2
r035198x
13,262 8TB
hello i have a problem

i have to call the windows utility which will hlp me copy files (large ones) n folders from a cdrom to a hard disk
the files r quite large so i cannot use the byte streams n i am trying to use the windows utilities itself

can anybody help me
You'll need to provide more details on the windows utilities that you are trying to use.
Jan 24 '08 #3
BigDaddyLH
1,216 Expert 1GB
Have you tried some of the new i/O features in the java.nio packages? On the other hand, why do this task in Java at all?
Jan 24 '08 #4
sukatoa
539 512MB
hello i have a problem

i have to call the windows utility which will hlp me copy files (large ones) n folders from a cdrom to a hard disk
the files r quite large so i cannot use the byte streams n i am trying to use the windows utilities itself

can anybody help me
You can execute MSDOS from java....

By using Process....

for executing MSDOS, i used "cmd.exe /C start cmd.exe"
for automatic transfer, i used("cmd.exe /C start "Something you could copy using DOS syntax/file transfer using COPY dos syntax");

if you know how to transfer files from a place to another, then you could just add that code to the Process...

if not,
Try to run DOS and inquire for help.....
There is a pattern there how to copy files from one location to another....
I guess it was "COPY" or something with a parameter/s....
Jan 24 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

9
by: F. GEIGER | last post by:
I've dev'ed a Python prototype of an app, that besides the internals making it up has a gui. While test-driven dev'ing the app's internals in Python is fun as usual, dev'ing the GUI is not so...
2
by: parthan | last post by:
We are running our c++ program, which uses JNI, as Windows services. Program is getting CLASSPATH env variable correctly and also initializes JVM successfully. After initializing JVM, programs...
2
by: Carlos G Benevides | last post by:
I have a ASP.Net web application that has two assemblies that run under com+. Under Windows 2000 the two assemblies are added to com+ automatically when instantiated from the web site. For this...
8
by: Glenn A. Harlan | last post by:
Why am I receiving the below error when calling - Path.GetTempFileName() The directory name is invalid. Description: An unhandled exception occurred during the execution of the current web...
7
by: Klaus Friese | last post by:
Hi, i'm currently working on a plugin for Adobe InDesign and i have some problems with that. I'm not really a c++ guru, maybe somebody here has an idea how to solve this. The plugin is...
11
by: gregsands | last post by:
Hi Im trying to install PHP 5.05 on Windows XP running Apache 2.0.54 Apache is running fine and ive made all the changes to the pnp.ini file and Apache config file, restarted Apache but all I get...
0
by: richardshen | last post by:
My DB2 V8 SP5 WSE crash on Windows 2003 with the following msg in db2diag.log. Any idea? Looks like I need set stackreserver, what is the suggested value for that? 2004-03-05-12.20.46.299000 ...
5
by: Dave | last post by:
does calling a regular function cost any cpu time? In other words, is it faster to write the code of two functions into main(), or is it the exact same thing as calling two functions. I know its...
113
by: dan | last post by:
For writing a Windows desktop application, how much harder is it to use the Windows C API than C#/.NET, assuming the coding is done in an editor? What specific aspects were more difficult? I'm...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.