Re: Bulk conversion

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Leonard A. <Leonard A...@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote...
I find myself in the same place as you. I want to convert all my Office 2000
documents to 2007 leaving nothing for my end-users to be confused about. What
did you finally do to eliminate your problem? Please let me know.
....
"rob-adog" wrote:
....
. . . i have looked at the ofc.exe cmd line tool and have some major issues
with it. It doesnt delete the original copy, leaving me with a major headache
with users updating the wrong copy of the doc. i cant seem to set it at a
share and let it run, i need to know how many levels i need to go down and
set the parameters, this could take forever. . . .

If the ofc.exe program accepts filenames on its commandline, then use
a batch file. The following batch file iterates over all .doc files on
a specified drive/share.


@REM -- batch file begins here --
@REM usage: %0 [\\servername\sharename|driveletter:]
@REM without commanddline argument, process from the root directory of
the active drive
@setlocal enableextensions
@echo off

set AD=%~1\.ARCHIVE

if not exist "%AD%\nul" md "%AD%" 2> nul

for /R \ %%f in (*.doc) do (
echo %%~ff
if not exist "%AD%%%~pf\nul" md "%AD%%%~pf" 2> nul
echo convert "%%~ff" (ofc.exe commandline here)
echo move "%%~ff" "%AD%%%~pf"
)
@REM -- batch file ends here --


Change the 2nd echo commandline to your actual ofc.exe commandline
using "%%~ff" as the filename argument. Remove 'echo' from the 3rd
echo commandline to move original .doc files to \.ARCHIVE directory on
the same drive/share as you're processing. Keep the original files for
a few months (or move them onto backup tapes/CDs/DVDs) just in case
the conversions didn't quite work.
.



Relevant Pages

  • Re: Why do variables in the shell compress spaces?
    ... > It does much more than compressing spaces. ... > That's why I tend to say: leaving a variable unquoted in a shell ... echo has a special function (which is different from shell ... Stephane's comprehensive answer here from "leaving a variable unquoted ...
    (comp.unix.shell)
  • Re: Using echo in Bash
    ... Then you can edit the command at the commandline even use ... you wanted to echo a name and title then at the commandline change the ... then change the title and use the commandline recall (up/down ...
    (alt.linux)
  • Re: Why do variables in the shell compress spaces?
    ... That's why I tend to say: leaving a variable unquoted in a shell ... echo has a special function (which is different from shell ... to be expanded the way echo expands it for display). ...
    (comp.unix.shell)
  • Re: Batch Delete Help
    ... @echo off ... empty top level folder. ... all of the mp3 files, and the t2 folder, leaving C:\test with no ...
    (microsoft.public.windowsxp.general)
  • Re: Batch Delete Help
    ... echo My name is %name% ... empty top level folder. ... all of the mp3 files, and the t2 folder, leaving C:\test with no files ...
    (microsoft.public.windowsxp.general)