To perform the following actions, what shall be needed.
Action-1 : Execute an executable file from a folder.
Action-2 : Copy all the files from a Folder to the installed
directory of the above executable.
I need an executable to perform the above two actions. After research, i could find that i can do this in JAVA as a JAR file or by using a shell script. Can someone please guide me the way these can be done effectively. Please tell me what shall i choose.
EDIT
So, JAVA is the only option here?
- What about making a VBScript to do this, would that be easier.
- What about the Second Action, how shall that be done?
please comment the possibilities
EDIT 2
Action - 1 can be done like this ( thanks 2 jake) in a bat file
"xcopy /s DirectoryToCopy ProgramDirectory"
To monitor that Action-1 is complete and then perform the Action-2. After completion of the execution only, the Action-2 should start. can someone please guide me which condition shall i give in the script.
- how to perform execution of an exe through the bat
- how to monitor the completion of the above
- how to copy the file contents