Batch File - Replace old version

I have a Word document that I have created which contains several macros. This file is copied by other employees into different folders on the file server for them to use.  I often make admentments to the master copy and have to email this to everyone
asking them to replace their versions with the latest.  This often doesn't happen meaning they are using an old version which can cause issues.
What I am trying to do is create a batch file that I can run overnight that will search the file server (basically every folder and subfolder where the batch file is created - nothing higher) looking for an old version and replace it with a new
version.  The file name contains the version.
I have been using the below but it does not seem to be working. 
for /F "tokens=*" %%P in ('dir /b /s "Menu v1.9.docm') do copy /Y .\"Menu v1.10.docm" "%%P"
@Pause
This is not something I have written myself as I don't normally write batch files.
Can anyone help?

I think somebody need to learn the basics of Windows.  You need to take some responsibility for understanding and writing your script.
¯\_(ツ)_/¯
I'm not sure if i would call creating a batch file the basics of windows.
I'm trying to understand it as best as I can.  I have changed it a bit to see if I can solve it but just can't, hence why I am asking for help.  I understand the process of it and most of the code but not things like Loc=%dI%~pI 
Yes - learning would be helpful. Try the help.  SET /?
I also suggest that, since you are not a trained batch scripter, that you learn PowerShell as it will be easier to understand.  Batch is pretty much obsolete except for those of us that like to play with it.  Iztislike jugging with both hands tied
behind your back.
PowerShell just works and it is much easier to learn.
But, as you wrote in your initial post, you are not a technician and don't care to learn.  You want someone to do it for you.  I recommend looking for a consultant as they will be able to work closely with you to try and get you what you want.
My suggestion is to stop inventing things without a good understanding of how to manage these things in a computer environment.  This solution is built into MSWord if only you would learn how to use it.  Word has global and group templates that
can be changed in one location and will effect every copy of word in the network.  A good office consultant can show you how to use MSWord correctly.  You are using it like a fancy copy of notepad.  Why spend 300+ dollars per copy if you are
only going to use it like notepad.  Notepad and Wordpad are free.
Office is used everywhere because it does all of this for you.  You do not need to "sneakernet" a solution.
¯\_(ツ)_/¯

Similar Messages

  • Replacing old versions on Recovery media

    I have a Satellite Pro A120 and the disc which came with it has a lot of old versions of various software. Is there any way to replace these and edit the installation setup so that the newer versions show in the install menu?
    I have tried to just replace the exe files but am stuck as to where to edit the install menu so the newer versions are visible.
    Thanks in advance for any help.

    No, its not possible, but you can try to create a own image CD.
    You can use the nLite software to create the own Windows booting CD.
    This software allows you to integrate the drivers, tools to the installation CD.
    The i386 folder which is needed for such CD creation should be placed on the HDD.
    (the Toshiba recovery CD creates such i386 folder on the HDD)

  • Downloaded new version, replaced old version, now says no space available and won't launch. I need to know how to get old version back

    Usually if I try to download something that is too big a message comes up saying that there's not enough space. This didn't happen when I tried to download the latest version of Foxfire. It asked if I wanted to replace the old version and I did. When it was done, it said 0 bytes available. The icon came up with a circle with a line through it. I get a message that says it cannot be launched. If I go into my finder and click on it it says it is not supported. I need to know if I can get the old version back because I've lost all my bookmarks etc. Unless there is something else I cn do to get it working.

    If you tried to install Firefox 4, it will not run on OS X 10.4 or PPC Macs.
    There is a third party version of Firefox 4 that runs on OS X 10.4/10.5 and PPC Macs, for details see http://www.floodgap.com/software/tenfourfox
    If you prefer, you can get the latest version of Firefox 3.6 from http://www.mozilla.com/en-US/firefox/all-older.html
    Mozilla are working to prevent Mac users with non-compatible systems from getting the notification about Firefox 4, and also not displaying the "Download Firefox 4" button on http://www.mozilla.com

  • My Word doc files are old versions....

    My computer seems to randomly revert back to old Word files. I'm updating my Cover Letter and when I go back to it the next day its some old version from months ago! No wonder I'm not getting any calls....I'm probably sending out old cover letters with my resumes! HELP!
    Message was edited by: Lippy

    Maybe you've got two separate files somewhere? Try using the 'search' function to see if this is the case.

  • Downloaded the 11.0 version of Mozilla Firefox to replace old version 9.0. After installation, and on the first launch attempt, received a message: "MOZCRT.dll missing" I researched, tried the prescribed remedy below, to no avail. Please advise.

    Here is the unsuccessful solution I attempted (3 times):
    Download a fresh Firefox copy and save the file to the desktop.
    Firefox 11.0.x: http://www.mozilla.com/en-US/firefox/all.html
    Uninstall your current Firefox version, if possible.
    Do NOT remove personal data when you uninstall the current version or you lose your bookmarks and other data in the profile folder.
    Remove the Firefox program folder before installing that newly downloaded copy of the Firefox installer.

    Which security software (firewall, anti-virus) do you have?
    If you use ZoneAlarm Extreme Security then disable Virtualization and reinstall Firefox.<br />
    Other security software may have similar features to prevent Firefox from updating files properly.
    See these pages for a similar issue with corrupted files:
    *http://kb.mozillazine.org/Browser_will_not_start_up#XULRunner_error_after_an_update
    *[[/questions/880050]]

  • Can't replace old versions of applications when installing upgrades

    A couple of applications I am running (SlingPlayer and iScrobbler, to be specific) have newer versions. When I download and install the new version, drop it into my applications folder, I get the message there's an older version to replace. When I click "ok" to that, I get the error message: "The operation can’t be completed because you don’t have permission to access some of the items."
    I have full admin permissions -- it's my computer -- so what is causing this and what do I do to allow the new versions to install?

    Check the apps themselves to see if they are locked - do a Get Info.'
    Also check to see if they are running...if so quit and try again.
    You may have to check for any settings that involve running at boot, disable those and restart the computer.
    If these fail and you still have issues - SL is rumored to be having problems with aliases, so see if that is a factor.

  • Download Firefox 4 for Mac replaced old version now this version will not run

    This version says it is not compatible with with my architecture.
    What does that mean???????????
    ''https://support.mozilla.com/en-US/kb/Forum+and+chat+rules+and+guidelines''

    Firefox 4 needs an Intel Mac.

  • Firefox crashed. tried to delete old to install new. won't delete. tried to replace old with new, but tells me i need to close it first but it's not open

    Fire fox crashed. I deleted it and installed new version, it worked fine. Got an email with possible virus, so system restored to an earlier date. When I did this, it brought back the old firefox. I tried to delete it, but it won't delete. When I tried to download new version to replace old version, it says I have to close firefox first, but it's not open. What do I do now?

    Hi jposes
    Before installing the new firefox go to Windows Task Manager (Ctrl+Alt+Supr), go to the Processes tab and search for any "firefox.exe" (or firefox.exe*32), give a right click and select "End Process Tree". This should be enough to let you install the new FireFox.
    Take care and hope this had been useful to you.

  • FF will not start new version on iMac 10.4.11 old version corrupted so down loaded new version from web site - now will not start as says is incompatable. How can I get the older version?ded new

    This morning FF would no start-up. Down loaded new version from website and replaced old version. New version will not strat-up as it says "incompatible" with Op Sys.

    Firefox 4 versions and later do not run on a PowerPC Mac.<br />
    Firefox 4 and later require at least OS X 10.5 and an Intel Mac.
    * http://www.mozilla.com/firefox/6.0/system-requirements/
    For an unofficial Firefox 7 compatible version (TenFourFox) that runs on PowerPC Macs with OS X 10.4.11 or OS X 10.5.8 you can look at:
    * http://www.floodgap.com/software/tenfourfox/
    * http://www.macupdate.com/app/mac/37761/tenfourfox
    Firefox 3.6.x (Mac OS X 10.4 and later) can be found here:
    * http://www.mozilla.com/en-US/firefox/all-older.html

  • My itunes dissappeared and when i try to redownload it it say that the old version of bonjour cannot be replaced. have windows xp

    my itunes dissapeared from my computer.  when i tried to redownload i got an error message stated that the old version of Bonjour could not be replaced.  i tried to manually remove it and it will not let me remove it. 

    Unfortunately, this sort of trouble has gotten more complicated to deal with ever since Microsoft pulled the Windows Installer CleanUp utility from their Download Center on June 25. First we have to find a copy of the utility.
    Let's try Googling. (Best not to use Bing, I think.) Look for a working download site for at least version 3.0 of the Windows Installer CleanUp utility. After downloading the utility installer file (msicuu2.exe), scan the file for malware, just in case. (I use the free version of Malwarebytes AntiMalware to do single-file scans for that.)
    If the file is clean, to install the utility, doubleclick the msicuu2.exe file you've downloaded.
    Now run the utility ("Start > All Programs > Windows Install Clean Up"). In the list of programs that appears in CleanUp, select any Bonjour entries and click "Remove".
    Quit out of CleanUp, restart the PC and try installing iTunes again. Does the install go through properly now?
    (If you do find a clean download site for the correct version of CleanUp, please don't tell me where it is. Without wishing to sound paranoid (although I grant it does sound paranoid), there is a non-zero chance that posting links to download locations for the utility here at Discussions leads to that download location being shut down.)

  • Download files, already download one time, don't replace old same files

    Hi,
    For our business, we work with a lot of files on firefox.
    On one computer, when we download a file (like Open Office file), it doesn't replace old same file, that we have downloaded before. The system add (1), (2), ... at the end of file name. So when we must upload this file, we have several files for the same thing but with several versions.
    In Options, I checked that Firefox always ask the download location. And in Application, that it ask for all Open Office file.
    For others computers, there is no problem.
    Thanks.

    I think, by resetting download action, may solve your problem.
    '''To reset how all file types are handled by Firefox back to default:'''
    '''Open your profile folder:'''
    First, At the top of the Firefox window, click on the''' Firefox '''button, go over to the '''Help''' menu and select''' Troubleshooting Information'''. The Troubleshooting Information tab will open.
    Then, Under the '''Application Basics section,''' click on''' Show Folder'''. A window with your profile files will open.
    Then, At the top of the Firefox window, click on the Firefox button and then select Exit
    Then, Rename the''' mimeTypes.rdf''' file to '''mimeTypes.rdf.old .'''
    After All, Restart Firefox.
    For more information, you can see this article [https://support.mozilla.org/en-US/kb/cant-download-or-save-files?redirectlocale=en-US&redirectslug=Unable+to+download+or+save+files#w_change-file-type-settings Change file type settings]
    Hope this is helpful

  • Email - New downloaded files do not replace old ones. Thoughts?

    Email - New Downloads do not replace the old versions even though it says it will.
    Not a "feature" I can live with. If I run an old version of an ad it costs me money.
    Making each have a new name creates issues with automatic updates in inDesign --

    This issue still exists.
    It asks if I want to repalce the old file with a new one -- I say yes -- and presto chango -- old file stays and new files disappears!!!
    This is NOT acceptable and will cost me money if ads do not update.
    I hate that I have to change my working because it does not do what it says it does.

  • Updated .oam file appears as old version when placed in Muse

    I changed the background color of my Animate composition from black to white. I republished it and deleted the old version, but when I place the .oam file in my Muse site, it's the old version with a black background.
    I tried renaming the Animate project and saving both it and the Publish folder in a new place. Same result. I tried saving the Muse site with a new name and in a new place in case it was a cache problem. Same result.
    This is with the newest 2014 versions of both applications.

    Hi,
    I had the same problem. I reported it to Adobe but the problem (among many others) has still to be resolved. I wonder when the next release will be 'cos this one has been a disaster
    David

  • I can't replace an old version of Firefox with a new one that I just downloaded. It says I don't have permissions to do so, and the old version can't trashed.

    I've downloaded the new version, and when I go to drag the Firefox icon into the Applications folder, I'm prompted to replace the old version. When I do, it says, "The operation can’t be completed because you don’t have permission to modify 'Firefox'." I've looked everywhere, and every help forum says to just drag Firefox into the Trash. I've tried that, and it says that Firefox can't be trashed. I don't know if this means anything or not, but there is a small lock in the bottom left of the Firefox icon in my dock.

    Try to drag the current Firefox application to the trash if you can't replace it.

  • This Adobe muse site file requires a newer version of Adobe Muse. I want to comeback to old version Adobe muse i need help to open my file thanks

    This Adobe muse site file requires a newer version of Adobe Muse. I want to comeback to old version Adobe muse i need help to open my file thanks

    Hi,
    You may need to design the site again in older version OR may be copy and paste in place from new to old except what is new in the latest version.
    Hope that helps!
    Kind Regards,

Maybe you are looking for

  • I have encountered a problem in Premier Elements 13 when trying to open the downloaded bundle.

    I have a problem with Premier Elements 13. I am unable to open the downloaded bundle that I have just purchased. I am useing Windows 7 with a Chrome browser. After the download is completed, the files are ready, The box is ticked to launch Adobe Prem

  • Show image in Web Dynpro ALV column

    Hello everybody, I have a WD component with an ALV table bound to a context node. Works very fine so far. Now in the first column of the node I have put an image source (MIME object in my WD component). I configured the first ALV column as Link To Ac

  • Replace screen glass for Pavilion x2 10 Detachable

    I have broken my screen after 1 day using . Can i replace a new in HP care Hanoi Vietnam? Thanks. This question was solved. View Solution.

  • Encore turning my 16:9 into 4:3

    Encore is creating a 4:3 Monitor window, Preview, and DVD from my 16:9 Premiere sequence so that there ends up being black borders on the sides.  I'm using CS6.  Any solutions?

  • Probelm with Printing FP image

    i want to print the FP of a VI multiple times and generate a PDF document. Before: i have used the following options. VI Properties >> Print Options >> Print with Execution     => this creates 3 pdf documents (on printing 3 times) instead of one. VI