Reference:
Link1 Link2 Link3 Link4
狀況:
Perl 用 Win32::OLE 讀取 Excel 檔案,測試過可以正常執行,但是放到 排程工作 卻不執行。
解法:
1. Create directory "C:\Windows\SysWOW64\config\systemprofile\Desktop " (for 64 bit Windows) or "C:\Windows\System32\config\systemprofile\Desktop " (for 32 bit Windows)
2. Set Full control permissions on directory Desktop for the account running perl in background (for example in Win7 & IIS 7 & DefaultAppPool set permissions for user "IIS AppPool\DefaultAppPool")
沒有留言:
張貼留言