function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Nitesh ChaureNitesh Chaure 

Could You help me to find solution for given problem statement.

Hi Friends,
I have a requirement to create batch apex code to import csv file without use of visualforce page i.e. directly from system through file path. And schedule this batch class to import csv file automatically after 2 days.
Guys please help me for this problem statement as early as possible.
Thank you much in advance for your valuable help.

Regards,
Nitesh 
LBKLBK
Have you thought about Apex Dataloader in Commandline?

You can very well schedule your uploads based on your need.

Read more about it in the link below.

http://resources.docs.salesforce.com/206/17/en-us/sfdc/pdf/salesforce_data_loader.pdf

Hope this helps.
Maf_007Maf_007
Hi Niteash, 

You can run a schedule job using Dataloader or Jitterbit free version to upload the CSV and attach/map with Salesforce record. You can also utilize the following example if you required custom logic once data is uploaded. 

https://developer.financialforce.com/customizations/importing-large-csv-files-via-batch-apex/

Please Mark this as a solution if this helps you. 

Maf
Nitesh ChaureNitesh Chaure
Thanks LBK and Maf for your valuable rply.
Sorry but I need to do this using Batch class only.
So I do not use Data Loader to import csv file and schedule it.
  
Nitesh ChaureNitesh Chaure
Anyone please tell me how to read the CSV File which is stored on Desktop of system.
I am not able to get the file path inside apex class variable.
 
Maf_007Maf_007
Hi Nitish,

You won't be able to do that without a SOAP/REST call. How would you control login etc as this happens programatically.

Maf