We'd like to remind Forumites to please avoid political debate on the Forum... Read More »
We're aware that some users are experiencing technical issues which the team are working to resolve. See the Community Noticeboard for more info. Thank you for your patience.
📨 Have you signed up to the Forum's new Email Digest yet? Get a selection of trending threads sent straight to your inbox daily, weekly or monthly!
Need a simple utility on Desktop
Options

Oblivion
Posts: 20,248 Forumite


in Techie Stuff
Right, well it's been years since I dabbled in DOS and I've completely forgotten how I go about this, if indeed I need DOS at all.
What I want to do is to create an executable icon on my Win 7 Desktop that I can double click to carry out a simple copy paste/overwrite procedure for one file ... i.e. Copy C:\location1\rhubarb.cfg to C:\location2\ and overwrite the old rhubarb.cfg file already in location2.
What I want to do is to create an executable icon on my Win 7 Desktop that I can double click to carry out a simple copy paste/overwrite procedure for one file ... i.e. Copy C:\location1\rhubarb.cfg to C:\location2\ and overwrite the old rhubarb.cfg file already in location2.
... Dave
Happily retired and enjoying my 14th year of leisure
I am cleverly disguised as a responsible adult.
Bring me sunshine in your smile
0
Comments
-
Open a notepad and save as filename.bat
Then write:
Copy /Y c:\location1\file.name c:\location2
The /Y switch will suppress prompting to confirm overwrite in new location.0 -
Open a notepad and save as filename.bat
Then write:
Copy /Y c:\location1\file.name c:\location2
The /Y switch will suppress prompting to confirm overwrite in new location.
Cheers rich, much obliged. :T... DaveHappily retired and enjoying my 14th year of leisureI am cleverly disguised as a responsible adult.Bring me sunshine in your smile0 -
<pedant mode> In a BATch file, the /Y switch for the COPY command is not needed, since overwrites occur without a prompt.0
-
<pedant mode> In a BATch file, the /Y switch for the COPY command is not needed, since overwrites occur without a prompt.
Duly noted, thanks.
... DaveHappily retired and enjoying my 14th year of leisureI am cleverly disguised as a responsible adult.Bring me sunshine in your smile0
This discussion has been closed.
Confirm your email address to Create Threads and Reply

Categories
- All Categories
- 350.8K Banking & Borrowing
- 253.1K Reduce Debt & Boost Income
- 453.5K Spending & Discounts
- 243.8K Work, Benefits & Business
- 598.7K Mortgages, Homes & Bills
- 176.8K Life & Family
- 257.1K Travel & Transport
- 1.5M Hobbies & Leisure
- 16.1K Discuss & Feedback
- 37.6K Read-Only Boards