Tag: windows server 2003

VBScript找不到文件指定的Server 2003

我有以下代码: set app = CreateObject("Excel.Application") Set wb = app.Workbooks.Open("Y:\Billing_Common\autoemail\*.xls") set sh = wb.Sheets("Auto Email Script") row = 2 name = "Customer" email = sh.Range("A" & row) subject = "Billing" the = "the" LastRow = sh.UsedRange.Rows.Count For r = row to LastRow If App.WorkSheetFunction.CountA(sh.Rows(r)) <> 0 Then SendMessage email, name, subject, TRUE, _ NULL, "Y:\Billing_Common\autoemail\Script\energia-logo.gif", 143,393 […]

为什么perl保存两份Excel电子表格?

这与保存后在“我的文档”中创buildExcel Addin的副本类似,只不过我正在使用Perl而不是VBA,而使用xls文件而不使用xlsm,并且行为的负面影响是不同的。 我已经inheritance了作为SYSTEM在Windows 2003 Server上运行的Perl脚本(Perl 5.8.8)。 将Excel 2003模板文件复制到唯一的完全定义的path位置后,它将使用OLE在Excel中打开唯一文件,编辑文件,保存文件并closures文件。 编辑文件的结果是保存在正确的,完全定义的path位置以及默认用户configuration文件的“文档”文件夹中。 这导致数以千计的这些文件积累在C:驱动器上,因为每个要雇用的新pipe理员都会在他的“文档”文件夹中获取副本。 添加设置$ OUT的值的代码: if (!$db->Sql("EXEC GetDetails 'name'")) { while ($db->FetchRow()>0) { @DataIn = $db->Data(); $name = $DataIn[0]; $IN = $DataIn[1]; $OUT = $DataIn[2]; opendir(DIR,"$OUT") || die "$OUT directory does not exist $!\n"; #… loop of proprietary code #… @Completed = $db1->Data(); #… &formatExcelReport #The code that […]