Scripting error using Batchrun + XXCopy


  1. Posts : 260
    Windows 10 (Home Ed.)
       #1

    Scripting error using Batchrun + XXCopy


    I have used both Batchrun and XXCopy for years - I use scripts I have made with them every day. Recently started using Windows 10 and have a problem. Anyone with scripting know-how able to advise please?

    I can write a batch file (.bat) which will run just fine. However, if I incorporate that same file into a batchrun script (.brs) I get an error when I run the brs file saying 'XXCOPY is not recognised as an internal or external command'

    Clearly XXCopy works fine in itself, and is recognised when bat scripts run with no issue. How can I use batch files as part of a batchrun script? I didn't usually have a problem in Windows 7 (at least after I placed a copy of XXCopy.exe in the batchrun folder: here that hasn't helped).

    Incidentally, I installed XXCopy into Windows 10 and the setup went as usual, but I can't find any copy of XXCopy.exe in the Windows folder/subfolders. Yet XXCopy scripts work, when run from their batch file, as I say. Bit confused.

    Thanks
      My Computers


  2. Posts : 8,111
    windows 10
       #2

    It means the exe isn't set in the path or you haven't given full path name to the exe
      My Computer


  3. Posts : 260
    Windows 10 (Home Ed.)
    Thread Starter
       #3

    Could you kindly give me an example? In batchrun I have the path set to the bat files I want to run. So a typical brs file may appear like this in the batchrun editor:

    Scripting error using Batchrun + XXCopy-brs.jpg

    What do you mean about setting the exe path? Which exe - to XXCopy.exe you mean?

    The above works in Windows 7.

    Many thanks.
      My Computers


  4. Posts : 5,330
    Windows 11 Pro 64-bit
       #4

    Seen your batch script will help us a lot.

    Execute following command to found out where XXCOPY.exe is stored.


    Code:
    Where /r C:\  XXCOPY.exe
      My Computer


 

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

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




Windows 10 Forums