Jump to content

Copy Files with WPI


Recommended Posts

I'm using WPI and would like it to copy several files from the "Install" folder within the "WPI" folder to different folders within "Program Files". I tired using the COPY command in the config script but it did not like it. I tried having it call a bat file from the Install folder to copy the files. It would not launch the bat files. Finally, I created cmd files and placed them at the root of C:\ and WPI calls on them to do the copying. This method worked. I was just wondering if there is an easier way/command to copy the files. I really don't like having the extra dozen or two cmd files. (I can't put them all the cmd's together either...this will cause problems if someone was not to choose to install certain programs) Thanks.

Link to comment
Share on other sites


Do you use just Windows XP ?

If yes, add that command at first line of your script

cd /d "%~dp0"

It allow to switch itself in its directory and it can copy what files you want.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...