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
Oblivion Posts: 20,248 Forumite
Part of the Furniture 10,000 Posts Photogenic
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.
... Dave
Happily retired and enjoying my 14th year of leisure
I am cleverly disguised as a responsible adult.
Bring me sunshine in your smile

Comments

  • rich13348
    rich13348 Posts: 840 Forumite
    Seventh Anniversary 500 Posts Combo Breaker
    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.
  • Oblivion
    Oblivion Posts: 20,248 Forumite
    Part of the Furniture 10,000 Posts Photogenic
    rich13348 wrote: »
    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
    ... Dave
    Happily retired and enjoying my 14th year of leisure
    I am cleverly disguised as a responsible adult.
    Bring me sunshine in your smile
  • John_Gray
    John_Gray Posts: 5,843 Forumite
    Part of the Furniture 1,000 Posts Name Dropper Photogenic
    <pedant mode> In a BATch file, the /Y switch for the COPY command is not needed, since overwrites occur without a prompt.
  • Oblivion
    Oblivion Posts: 20,248 Forumite
    Part of the Furniture 10,000 Posts Photogenic
    John_Gray wrote: »
    <pedant mode> In a BATch file, the /Y switch for the COPY command is not needed, since overwrites occur without a prompt.


    :D Duly noted, thanks.
    ... Dave
    Happily retired and enjoying my 14th year of leisure
    I am cleverly disguised as a responsible adult.
    Bring me sunshine in your smile
This discussion has been closed.
Meet your Ambassadors

🚀 Getting Started

Hi new member!

Our Getting Started Guide will help you get the most out of the Forum

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

Is this how you want to be seen?

We see you are using a default avatar. It takes only a few seconds to pick a picture.