Tuesday 17 September 2013

CLI Schedular

For automating an operation from Dataloader using Command-Line interface, you can follow these steps:

1. Run the process manually through the GUI. "Config.properties" file is available in
the ¡¥Application Data¡¦ folder (eg : C:\Documents and Settings\User folder \
Application Data\salesforce.com\Apex Data Loader version). This file is updated
every time Data Loader runs through the GUI.

2. Copy & paste this "Config.properties" file in a separate folder say:

C:\Documents and Settings\User folder \Desktop\Project.

3. Next, open a text editor like notepad and type the command line that you would
use to run the process eg :

process ¡§C:\Documents and Settings\User folder \Desktop\Project¡¨

4. Save the file with .bat extension in the bin directory.

Now, you will have to schedule a task in the Scheduler of the Operating System You are using.

In case you are using Windows 7 OS, you can follow the steps given below:

* Start Task Scheduler :

Start Task SchedulerApplies To: Windows 7, Windows Server 2008 R2, Windows Vista

You can start the Task Scheduler MMC snap-in by using a single command from the command line or by using the Windows interface. Task Scheduler can also be started by double-clicking the Taskschd.msc file in the %SYSTEMROOT%\System32 folder.

To Run Task Scheduler using the Windows interface :

1.Click the Start button.

2.Click Control Panel.

3.Click System and Maintenance.

4.Click Administrative Tools.

5.Double-click Task Scheduler.

To Run Task Scheduler from the Command Line:

1.Open a command prompt. To open a command prompt, click Start, click All Programs, click Accessories, and then click Command Prompt.

2.At the command prompt, type Taskschd.msc.

* Create a new Task Folder:

To create a new folder to store related tasks by using the Windows interface :

1. If Task Scheduler is not open, start Task Scheduler.

2. Find and click the task folder in the console tree that you want to create a folder under.

For example, if you want to create a sub-folder in the root task folder, click the Task Scheduler Library folder.

3. In the Actions pane, click New Folder.

4. In the Enter name of the new folder dialog box, type the name of folder.

5. Click the OK button in the Enter name of the new folder dialog box.

* Schedule a Task:

To create a basic task by using the Windows interface :

1. If Task Scheduler is not open, start Task Scheduler.

2. Find and click the task folder in the console tree that you want to create the task in.

3. In the Actions Pane, click Create Basic Task.

4. Follow the instructions in the Create Basic Task Wizard.

No comments:

Post a Comment