I'll assume that you are scheduling through the Windows Task scheduler with your SAS EG project. I would suggest first verifying that the export works without issue when you run the project from Enterprise Guide. I'll assume you've already done that. In that case, make sure that you are using the 'Export as a Step in the project' option to create your export task in EG. I imagine you have already done this as well. So, If this is already the case, and you are having success executing the VBS scheduled script but are receiving an error on that particular portion of the project, look closely to see if that error may be caused by the scheduled processes inability to access the drive location you specified in the export. For example, If you run the scheduled task while you are not logged in to the machine, it is likely that file server drives are not accessible to the process. In many cases, these drives are only available when you are logged in and recognized by Windows Directory services. If the scheduled process is running as you, with a stored password, it is also possible that the drives themselves are not mapped to drive letters and are therefore inaccessible. Often, organizations map drive letters to file servers using a batch script when you log in to windows. This same thing doesn't happen when the Windows Task Scheduler logs in as you to execute a task.
... View more