Community forum

Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


fernando.barranha
2010-01-07T15:38:29Z
Hi.

I'm having problem to copy files between 2 servers.
I have created an "Execute" task to execute a batch file on a local server.
This batch file calls the psexec command

BackupCubesOnWebServer.bat
psexec.exe \\IPserver -u Domain\User -p password D:\Cubes\BAT\RemoteBackupCubes.bat %1
cls


On the other server I have the RemoteBackupCubes.bat
cd \
d:
cd Cubes
copy %1*.abc d:\cubes\old\
copy %1*.def d:\cubes\old\
copy %1*.ghi d:\cubes\old\
copy %1*.log d:\cubes\old\
del %1*.log
cls

Sometimes the task works well and sometimes not.
When the task doesn't work, I receive this message:
Arithmetic Operation Resulted in an overflow.

What can I do? Is there a sugestion to copy files remotely?

I've tried use the "Remote execute" but I'm receiving this error:
Unhandled Exception in task: The object exporter specified was not found
(Exception from HRESULT: 0x80070776)

Best Regards,
Fernando

Sponsor
Forum information
Support
2010-01-07T15:43:38Z
VisualCron captures all errors that are thrown by the process. It is hard to say what this generic means in this application.

The big question is if it really fails or if it just says that it is failing? We have seen that some application throw up errors even though they succeed in what they should do.

If it fails, and just sometimes as you describe, it may be sensitive to input parameters. Maybe if path is wrong. Or it could react to that no files were found or permission error.

You could also try to run the Task with other Credentials than SYSTEM account which is default. Try specifying another user (in a new Credential) and select the Credential in the Task.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
fernando.barranha
2010-01-07T15:53:19Z
Hi,

on this case
What is the best way to start a copyfile on a remote server?

Thanks,
😎
Support
2010-01-07T15:55:03Z
Do you want to copy from SERVER1 to local computer (VisualCron server) or from SERVER1 to SERVER2?
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
fernando.barranha
2010-01-07T15:59:05Z
On a local machine where I have the VC installed, I want to start a copy on a remote machine.

On this remote machine I have to copy a file from d:\cubes\a.txt to d:\cubes\old\a.txt
Support
2010-01-07T16:01:40Z
The easiest way would be to use a Credential for your remote machine and share the cubes folder. Then use the Copy file Task, select the Credential and copy using UNC path:

\\cubemachine\cubes to \\cubemachine\cubes\old
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
fernando.barranha
2010-01-07T16:08:34Z
Hi Henrik, I've done this and the copy is very slow.

If you know another way, please tell me.

😢
Support
2010-01-07T16:10:34Z
The other way is to create your own batch file (without using PSEXEC) and execute it through Remote execute Task.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
fernando.barranha
2010-01-07T16:22:40Z
Hi Henrik,
I've tried use the "Remote execute" but I'm receiving this error:
Unhandled Exception in task: The object exporter specified was not found
(Exception from HRESULT: 0x80070776)

Do you know what is happening? Do you need more information?
Support
2010-01-07T16:50:38Z
This problem is probably related to server name you specify or the actual credentials. Try using an IP instead for the remote server (instead of name).

If that does not work the WMI is not accessible (port 135). Either blocked port or WMI is not enabled (service "Windows Management Instrumentation" on remote machine).
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top