the java code runs the command prompt and passes parameters to it, and then executes. it works fine in Eclipse IDE, but when i make it as a service(in windows 7) and run it, it doesn't work. what i want to ask is will this service invoke the command prompt,pass parameters and run it. Just for reference on line code is given below.