XXCopy + Batchrun scripting error..


  1. Posts : 661
    Windows 7 Home Premium SP1 64-bit
       #1

    XXCopy + Batchrun scripting error..


    Not sure in which forum to post this - hope here is OK, though it's not really a problem specific to Windows 7...

    Does anyone by any chance use the program 'Batchrun' in conjunction with XXCopy?
    I have the latest (x64) versions of both installed in Win7 x64; both work fine,
    but there are problems when a batchrun script contains a .bat file including
    XXCopy commands.…. when I include a .bat file containing XXCopy lines in my .brs
    file, I get a message saying 'XXCopy is not recognised as an internal or
    external command, operable program or batch file….' And yet if I run the .bat
    file itself, rather than via Batchrun, it works just fine.

    As a simple example, if I have a .brs file like this:

    Filename: Flightplan.bat
    Parameter:
    Working Dir: C:\Program Files (x86)\Batchrun\

    And the batch file Flightplan.bat reads:

    XXCopy "E:\My Documents\Flightplans\" "D:\New Flightplans\" /CLONE

    Although the latter script runs fine when I double-click on it, I get the errors
    I mentioned above when I run the same script through Batchrun...

    Any help appreciated. (Can't locate any group or forum for Batchrun)

    Thanks,

    Martin
      My Computer


  2. Posts : 2,009
    Windows 7 Ultimate x86
       #2

    I get a message saying 'XXCopy is not recognised as an internal or
    external command, operable program or batch file
    That tells me, that the XXCOPY Program itself isn't recognized (not located in the Path Variable)
    Try adding the actual path to it . for example:

    C:\Program Files\XXCopy "E:\My Documents\Flightplans\" "D:\New Flightplans\" /CLONE
    or Do a CD into XXCOPY's Directory first like

    CD "C:\Program Files (x86)"
    .\XXCopy "E:\My Documents\Flightplans\" "D:\New Flightplans\" /CLONE

    -DG
      My Computer


  3. Posts : 661
    Windows 7 Home Premium SP1 64-bit
    Thread Starter
       #3

    Hi. Thanks for the suggestion, but I still get the error message, but now showing the path ("C:\Windows\System32\XXCOPY is not recognised ....").

    M.
      My Computer


  4. Posts : 661
    Windows 7 Home Premium SP1 64-bit
    Thread Starter
       #4

    I tried copying XXCopy.exe to the batchrun folder - that lets the .brs script run fine.

    M.
      My Computer


  5. Posts : 2,009
    Windows 7 Ultimate x86
       #5

    My path was only an example...you should have adapted it to your actual installation. Sorry for not being more clear on that subject.
    But copying the actual exe into the folder where it's to be executed works too
    It's just not very practical...Say you'd need a certain program in several different folders you would end up with redundant copies of the same file. Even if it's not a big deal nowadays (I'm a fossil...from times when hard drives were sold by the MEGA Byte.
    Another possibility would be to include the Installation folder of XXCopy in the Path itself
    Or, if it's just 1 exe, move it into a folder that's already in the path (like C:\Windows or C:\Windows\System32)

    Anyhow...you found a solution that worked for you.
    Thanks for the feedback

    -DG
      My Computer


  6. Posts : 661
    Windows 7 Home Premium SP1 64-bit
    Thread Starter
       #6

    Hi.. I did adapt what you said to my own file names and folders, tho' the exe file is in the Windows/System32 folder.. I tried adding the installation folder to the parameters, but that didn't work either.

    I agree, having the XXCopy.exe file all over the place is not ideal at all - I don't see why it should be necessary as there is always a copy in the Windows/System32 folder. On the other hand, I keep all my .bat files in one place so I shouldn't need more than the one extra copy in that folder..

    Thanks again for the input,

    M.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 07:01.
Find Us