Recently my friend faced a problem when automating a program that written using excel InteropServices. This program work perfectly in debug mode and Windows XP. but when it try to automate using task scheduler in Windows 7 , Vista and upper version it is giving following errors.
- The file name or path does not exist
- The file is being used by another program
- The workbook you are trying to save has the same name as the currently opened book
- The file name or path does not exist
- The file is being used by another program
- The workbook you are trying to save has the same name as the currently opened book
So creating a Desktop Folder in a following path resolved the issue.
C:\Windows\System32\config\systemprofile\Desktop
Comments