Tag: 权限

Excel实时链接文件导入到Access作为短文本数据types而不是数字数据types

我从excel中将同一工作簿中的工作表导入到Access中。 我正在导入的数据被设置为所有工作表的数字。 大多数工作表导入为导入字段的“数字数据types”,但有些导入为“短文本数据types”,无论其设置为数字字段。 我需要知道我可以做些什么来解决这个问题,因为我不能改变导入的生活链接Excel工作表访问的数据types。 谢谢,

Powershell – 查找文件夹权限并扩展组成员

我目前有一个脚本抓取文件夹和所有文件夹等(recursion)的权限,脚本如下。 $OutFile = "C:\temp\Permissions.csv" $Header = "Folder Path,IdentityReference,AccessControlType,IsInherited,InheritanceFlags,PropagationFlags" Del $OutFile Add-Content -Value $Header -Path $OutFile $RootPath = "\\Fileshare\Folder" $Folders = dir $RootPath -recurse | where {$_.psiscontainer -eq $true} foreach ($Folder in $Folders){ $ACLs = get-acl $Folder.fullname | ForEach-Object { $_.Access } Foreach ($ACL in $ACLs){ $OutInfo = $Folder.Fullname + "," + $ACL.IdentityReference + "," + […]

如何从文本文件中读取共享列表中的NTFS权限

我试图让它更容易使用文件服务器上。 我想导入一个名为shares.txt的文件。 在那个shares.txt有例如行,例如文件夹名称→根文件夹和共享名称→子文件夹。 \\10.10.15.240\folder name\share name \\10.10.15.240\folder name\share2 name \\10.10.15.240\folder name\share3 name \\10.10.15.240\folder2 name\share name \\10.10.15.240\folder2 name\share2 name \\10.10.15.240\folder2 name\share3 name 等等。 我想创build输出到:将数据输出到\\10.10.15.240\output\上的文本文件,使用文件夹名称和共享名称作为文件名的一部分 \\10.10.15.240\output\Company_name_$folder name_$share name.csv \\10.10.15.240\output\Company_name_$folder name_$share2 name.csv \\10.10.15.240\output\Company_name_$folder name_$share3 name.csv \\10.10.15.240\output\Company_name_$folder2 name_$share name.csv \\10.10.15.240\output\Company_name_$folder2 name_$share2 name.csv \\10.10.15.240\output\Company_name_$folder2 name_$share3 name.csv 并继续。 你知道如何在你的脚本中导入? 我尝试了几件事,但他们都出现了错误。 脚本: 我想将权限列表写入CSV文件,而不是直接写入Excel。 $ErrorActionPreference = "SilentlyContinue" $a = New-Object -ComObject Excel.Application $a.visible […]

错误在VBA中创buildExcel对象

我正在使用下面的代码使用VBA创buildExcel对象。 我正在使用Office 2003.我在传统的ASP中运行下面的代码。 设置myexcel = CreateObject(“Excel.Application”) 错误信息是,任何需要创buildExcel对象的权限? 计算机 – 默认权限设置不允许使用CLSID {00024500-0000-0000-C000-000000000046}的地址LocalHost(使用LRPC) EDIT1: 我在这里有一个相关的问题,如果有人可以看看, 生成Excel文件错误 在此先感谢乔治

PHP XLS.class创buildREAD-ONLY文件。 帮帮我!

我正在使用一个XLS类来从这里下载的数据库中用PHP创build一个电子表格文件: http : //www.phpclasses.org/package/6583-PHP-Compose-and-generate-Excel-XLS-spreadsheet-files。 HTML 正在生成的XLS文件似乎是只读的。 我无法编辑文件。 我需要能够编辑这些文件。 甚至连CHMOD似乎都不起作用。 以下是我的代码。 请帮忙,我似乎无法弄清楚。 谢谢! ob_start(); // start the file xlsBOF(); xlsWriteLabel(0,0,"Order Number"); xlsWriteLabel(0,1,"Month"); xlsWriteLabel(0,2,"Name"); xlsWriteLabel(0,3,"Address"); xlsWriteLabel(0,4,"Address 2"); xlsWriteLabel(0,5,"City"); xlsWriteLabel(0,6,"State"); xlsWriteLabel(0,7,"Zip"); xlsWriteLabel(0,8,"Country"); xlsWriteLabel(0,9,"Email"); $xlsRow = 1; while(list($id,$fname,$lname,$email,$s_address,$s_address2,$s_city,$s_state,$s_zip,$s_country,$months_shipped)=mysql_fetch_row($result)) { ++$i; xlsWriteNumber($xlsRow,0,$id); xlsWriteNumber($xlsRow,1,$months_shipped+1); xlsWriteLabel($xlsRow,2,"$fname $lname"); xlsWriteLabel($xlsRow,3,"$s_address"); xlsWriteLabel($xlsRow,4,"$s_address2"); xlsWriteLabel($xlsRow,5,"$s_city"); xlsWriteLabel($xlsRow,6,"$s_state"); xlsWriteLabel($xlsRow,7,"$s_zip"); xlsWriteLabel($xlsRow,8,"$s_country"); xlsWriteLabel($xlsRow,9,"$email"); $xlsRow++; } xlsEOF(); $filepath="/home/nick/Dropbox/Daily-Shipments/".date("mdy")."-Daily-Shipments.xls"; if (file_put_contents($filepath, ob_get_clean())) { […]

不能用C#打开excel文件

xlApp = new Excel.Application(); xlWorkBook = xlApp.Workbooks.Open("‪‪C:\\Data_check\\Load Data Check_new_3.xlsx", 0, false, 5, "", "", true, Microsoft.Office.Interop.Excel.XlPlatform.xlWindows, "\t", true, false, 0, false, 1, 0); 我试图通过上面的代码打开一个Excel工作簿,但它会抛出一个错误,该文件无法find或被移动,或删除。 我可以打开文件,如果我在Windows资源pipe理器中键入path。 显示错误的屏幕截图: 我不知道这是什么问题..我能打开放在我的桌面上的类似的文件,但不是这个。

Excel 2010访问path被拒绝临时

我正在使用Excel数据阅读器从Excel文件中读取数据。 FileStream stream = File.Open(filePath,FileMode.Open,FileAccess.Read); // 1。 从二进制Excel文件('97-2003格式; * .xls)读取 IExcelDataReader excelReader = ExcelReaderFactory.CreateBinaryReader(stream); // 2。 从OpenXml Excel文件中读取(2007格式; * .xlsx) IExcelDataReader excelReader = ExcelReaderFactory.CreateOpenXmlReader(stream); http://exceldatareader.codeplex.com/ 这将读取我的本地机器上的excel 1997-2003格式和excel 2007格式,以及我们将其移至我们的testing服务器时的格式。 但是,转移到生产时,它适用于Excel 97-2003文件,但是当我尝试读取2007文件时收到以下错误: 访问path“C:\ Documents and Settings \ PORTALS03 \ ASPNET \ LOCALS〜1 \ Temp \ TMP_Z129388041687919815”被拒绝。 97-2003 excel文件怎么可能被读取,但2007文件被拒绝访问呢?

Excel无法访问IIS7和Windows Server 2008 R2(64位)的文件

我有一个Web项目(.NET 4),需要访问一个Excel文件,但它结束了以下错误信息: Error occurred during file generation.Microsoft Excel cannot access the file 'D:\xx\xx\abc.xls'. There are several possible reasons: • The file name or path does not exist. (Actually it is there) • The file is being used by another program. (It can not happen) • The workbook you are trying to save has the same […]