Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: XXCopy + Batchrun scripting error..

03 Jan 2011   #1

Windows 7 Home Premium SP1 64-bit
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
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)



My System SpecsSystem Spec
03 Jan 2011   #2

Windows 7 Ultimate x86

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

My System SpecsSystem Spec
04 Jan 2011   #3

Windows 7 Home Premium SP1 64-bit

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

My System SpecsSystem Spec

04 Jan 2011   #4

Windows 7 Home Premium SP1 64-bit

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

My System SpecsSystem Spec
04 Jan 2011   #5

Windows 7 Ultimate x86

My path was only an 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) found a solution that worked for you.
Thanks for the feedback

My System SpecsSystem Spec
04 Jan 2011   #6

Windows 7 Home Premium SP1 64-bit

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,

My System SpecsSystem Spec

 XXCopy + Batchrun scripting error..

Thread Tools

Similar help and support threads
Thread Forum
scripting the setup
Hi Brink, I know this is an old threat but since you really seem to be an expert in this field, I am still replying to it. I need to make a script (for windows 7/8) to activate the "file History" (windows 8) and "backup & Restore" (Windows 7). I know all the parameters in advance. the idea would...
Backup and Restore
Scripting host
I get errors in ie & even group policy editor .. . I'd love to have a radical way to get rid of those script errors. After having read many solutions, i haven't foun the right one.
Scripting error presented when emails are opened from "Jill"
Hi Everyone, A colleague of mine "Mary" is getting a scripting error in her Inbox whenever she looks at emails from one specific staff member, "Jill". Jill is a genuine sender, the messages that she sends do not get moved into Mary's junk, and the content of the emails is business related (e.g.:...
Microsoft Office
W7-Outlook 2010 - Scripting Error when opening emails from single user
Hi All, I hope I could find some assistance here. We are running an exchange 2003 server, with windows 7 machines (not ideal I know). That aside, I am getting a scripting error when opening emails from a single user. This error ONLY appears on one users computer. So to clarify, this issue...
Microsoft Office
(Admin, feel free to move to more appropriate thread) I wrote a script to download and update some files on my system when i was using my xp installation. It reads a list of URLs and descriptors from a txt file then downloads the files using wget for windows then looks up a key in the registry...
General Discussion
Is it possiable to create a script in Windows 7 that will enter commands into Command Prompt? And how would i go about doing htis?
General Discussion

Our Sites

Site Links

About Us

Find 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 14:19.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App