Jump to content
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble

MSFN is made available via donations, subscriptions and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, register and become a site sponsor/subscriber and ads will be disabled automatically. 



Recommended Posts

Octopuss    9

I am trying something a bit funky here.

I got a batch file I use to copy various installation files somewhere, and they are launched with different batch. I don't want to change both when files with version numbers in them get updated (and I don't rename them after downloading because I like to keep track of what they are).

Anyway, I hoped I could use copy command with wildcards to copy files somewhere and change the destination name. It doesn't seem to work.

Example:

copy e:\Install\OS\jre-6*.exe d:\win7-64\sources\$OEM$\$1\Install\java.exe /y

It looked like it did what I wanted, but then I realized the destination file was like 5kB in size. WTF? Anyone can explain this? Or suggest different approach?

Edited by TheWalrus

Share this post


Link to post
Share on other sites

Guest   
Guest

Had this problem recently with mismatched wildcards for source/target. Try XCOPY. ;)

ECHO F|XCOPY e:\Install\OS\jre-6*.exe d:\win7-64\sources\$OEM$\$1\Install\java.exe /V /Q

Note: The piped ECHO command bypasses the XCOPY prompt to ask if the target is a file or folder.

Share this post


Link to post
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.

×