XXCopy + Batchrun scripting error..

martinlest

New member
Power User
VIP
Local time
7:18 AM
Messages
661
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

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom Build
OS
Windows 7 Home Premium SP1 64-bit
CPU
Intel Core i7-4790K CPU @ 4.5GHz
Motherboard
Asus H97I-PLUS
Memory
16GB KINGSTON HYPER-X FURY DUAL-DDR3 1600MHz
Graphics Card(s)
8GB NVIDIA GEFORCE GTX 1070
Monitor(s) Displays
HannsG 28" & Dell 24"
Screen Resolution
1920x1200
Hard Drives
1 x 2TB Samsung Evo 860 SSD
2 x 500GB Samsung Evo 850 SSD
PSU
CORSAIR 650W CS SERIES
Case
Thermaltake Core V1 Mini ITX Cube
Cooling
NOCTUA NH-L12
Browser
Firefox
Other Info
Custom PC used for X-Plane 11
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

Computer Manufacturer/Model Number
HP m8000n
OS
Windows 7 Ultimate x86
CPU
DualCore AMD Athlon 64 X2, 2600 MHz 5200+
Motherboard
Asus M2N68-LA (Narra)
Memory
Samsung 2GB DDR2
Graphics Card(s)
Onboard NVIDIA GeForce 6150SE nForce 430
Sound Card
Onboard nVIDIA nForce 6100-430 (MCP61P)
Monitor(s) Displays
Westinghouse 19" LED
Screen Resolution
1280x1024
Hard Drives
SATA II Seagate Barracuda 500GB
USB II WD Elements 500GB
USB II WD My Book 1TB
USB II WD My Book 2TB
PSU
Stock (HP)
Case
Stock (HP)
Cooling
Stock
Keyboard
Logitech Classic KB 200
Mouse
Standard HP opticle USB mouse
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

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom Build
OS
Windows 7 Home Premium SP1 64-bit
CPU
Intel Core i7-4790K CPU @ 4.5GHz
Motherboard
Asus H97I-PLUS
Memory
16GB KINGSTON HYPER-X FURY DUAL-DDR3 1600MHz
Graphics Card(s)
8GB NVIDIA GEFORCE GTX 1070
Monitor(s) Displays
HannsG 28" & Dell 24"
Screen Resolution
1920x1200
Hard Drives
1 x 2TB Samsung Evo 860 SSD
2 x 500GB Samsung Evo 850 SSD
PSU
CORSAIR 650W CS SERIES
Case
Thermaltake Core V1 Mini ITX Cube
Cooling
NOCTUA NH-L12
Browser
Firefox
Other Info
Custom PC used for X-Plane 11
I tried copying XXCopy.exe to the batchrun folder - that lets the .brs script run fine.

M.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom Build
OS
Windows 7 Home Premium SP1 64-bit
CPU
Intel Core i7-4790K CPU @ 4.5GHz
Motherboard
Asus H97I-PLUS
Memory
16GB KINGSTON HYPER-X FURY DUAL-DDR3 1600MHz
Graphics Card(s)
8GB NVIDIA GEFORCE GTX 1070
Monitor(s) Displays
HannsG 28" & Dell 24"
Screen Resolution
1920x1200
Hard Drives
1 x 2TB Samsung Evo 860 SSD
2 x 500GB Samsung Evo 850 SSD
PSU
CORSAIR 650W CS SERIES
Case
Thermaltake Core V1 Mini ITX Cube
Cooling
NOCTUA NH-L12
Browser
Firefox
Other Info
Custom PC used for X-Plane 11
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 :D
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 :thumbsup:

-DG
 

My Computer

Computer Manufacturer/Model Number
HP m8000n
OS
Windows 7 Ultimate x86
CPU
DualCore AMD Athlon 64 X2, 2600 MHz 5200+
Motherboard
Asus M2N68-LA (Narra)
Memory
Samsung 2GB DDR2
Graphics Card(s)
Onboard NVIDIA GeForce 6150SE nForce 430
Sound Card
Onboard nVIDIA nForce 6100-430 (MCP61P)
Monitor(s) Displays
Westinghouse 19" LED
Screen Resolution
1280x1024
Hard Drives
SATA II Seagate Barracuda 500GB
USB II WD Elements 500GB
USB II WD My Book 1TB
USB II WD My Book 2TB
PSU
Stock (HP)
Case
Stock (HP)
Cooling
Stock
Keyboard
Logitech Classic KB 200
Mouse
Standard HP opticle USB mouse
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

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom Build
OS
Windows 7 Home Premium SP1 64-bit
CPU
Intel Core i7-4790K CPU @ 4.5GHz
Motherboard
Asus H97I-PLUS
Memory
16GB KINGSTON HYPER-X FURY DUAL-DDR3 1600MHz
Graphics Card(s)
8GB NVIDIA GEFORCE GTX 1070
Monitor(s) Displays
HannsG 28" & Dell 24"
Screen Resolution
1920x1200
Hard Drives
1 x 2TB Samsung Evo 860 SSD
2 x 500GB Samsung Evo 850 SSD
PSU
CORSAIR 650W CS SERIES
Case
Thermaltake Core V1 Mini ITX Cube
Cooling
NOCTUA NH-L12
Browser
Firefox
Other Info
Custom PC used for X-Plane 11
Back
Top