Batch process two jobs

Do you have anything to share with other users? Your opinions about our programs, suggestions for future products - everything goes here.
Post Reply
arishy
Posts: 7
Joined: Sun Mar 18, 2007 8:49 am

Batch process two jobs

Post by arishy »

I upgraded to v3.2 and I had two jobs that I do every day.
I need your help to create a batch file so I can schedule these jobs to be processed every day at 12.00 PM.

Just in case I could be blamed for being not clear. There is two seperate folders on a networked PC; I need to backup every day. So, I created a JOBa and JOBb. Each one synchronize the two similar folders in the main machine and the backup machine. So, I open synchronizeit! and execute JOBa, then followed by JOBb. I need to automate these jobs so, it will be done everyday at 12.00PM.

grigsoft
Site Admin
Posts: 1673
Joined: Tue Sep 23, 2003 7:37 pm
Contact:

Post by grigsoft »

1. Create project with your jobs - in Projects page select EditProjects etc.
2. Add task to system scheduler - Start>Settings>ControlPanel>ScheduledTasks>Add task.
You will need command line like
d:\path\wndsync.exe ProjectName /Auto.

To check that everything is working properly, you can change/auto to /scan - it will open application window and preview files list.

If you would need more detailed help on any step - just let me know.

arishy
Posts: 7
Joined: Sun Mar 18, 2007 8:49 am

Post by arishy »

Thank you for your prompt reply. Very comforeting to know that support is real.

First I used the wrong term when I mentioned JOB, it is suppose to be project.

As I understand it I use your command line TOWICE , one for each project
Then create a text file with these two lines ending it with .bat

Then I schedule the batch file. Is that correct ??

grigsoft
Site Admin
Posts: 1673
Joined: Tue Sep 23, 2003 7:37 pm
Contact:

Post by grigsoft »

You can schedule wndsync directly. Does it matter that both projects were run at the same time? If backup folder is not same, you can schedule 2 tasks for the same time - one for each project, they should not interfere with each other. However if target folder is same, running two projects in same time could lead to problems - so you can:
1. Schedule 1 task at 12 pm, and another one - 1 hour later
2. Create batch using start /wait wndsync.exe Prj1 /auto so projects will be executed in turn.

arishy
Posts: 7
Joined: Sun Mar 18, 2007 8:49 am

Post by arishy »

I will try your suggestion(s), and in any case I will comeback with a solution, so, you can check it out.

Thank you for your support

arishy
Posts: 7
Joined: Sun Mar 18, 2007 8:49 am

Post by arishy »

I managed to create two sessions A & B to sync TWO seperate folders.
Combined the two into one project. Say MyProj.

Now created a bach file "x.bat" that contains ONE line only:

"G:\Program Files\Synchronize It!\wndsync.exe" MyProj /auto

It woked like a charm, but:
When dbl clk the bat file I get a dos screen which WILL frighten the hell out my secretary. The process goes silently and it was done successefully within a minute or less.

I have two concerns:
1. How to get rid of the Dos screen, I tried echo off inside the batch; no way
2. How to schedule the job to be done automatically. The Start /wait did not work and I need a handholding in this one.

Best regards

grigsoft
Site Admin
Posts: 1673
Joined: Tue Sep 23, 2003 7:37 pm
Contact:

Post by grigsoft »

1. You don't need a batch file - create shortcut and add parameters in Target field in Properties.
2. Start>Settings>ControlPanel>AddScheduledTask.
Create there task with same parameters.

arishy
Posts: 7
Joined: Sun Mar 18, 2007 8:49 am

Post by arishy »

Thank you for your patience and support.
All done.

Post Reply