惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

V
Vulnerabilities – Threatpost
F
Fortinet All Blogs
Vercel News
Vercel News
C
Check Point Blog
P
Privacy International News Feed
Know Your Adversary
Know Your Adversary
Google DeepMind News
Google DeepMind News
T
Troy Hunt's Blog
TaoSecurity Blog
TaoSecurity Blog
I
Intezer
T
The Exploit Database - CXSecurity.com
Security Archives - TechRepublic
Security Archives - TechRepublic
H
Hacker News: Front Page
P
Proofpoint News Feed
GbyAI
GbyAI
Engineering at Meta
Engineering at Meta
Attack and Defense Labs
Attack and Defense Labs
S
Security @ Cisco Blogs
IT之家
IT之家
D
DataBreaches.Net
Hacker News: Ask HN
Hacker News: Ask HN
SecWiki News
SecWiki News
Y
Y Combinator Blog
Project Zero
Project Zero
H
Hackread – Cybersecurity News, Data Breaches, AI and More
L
Lohrmann on Cybersecurity
T
Tenable Blog
大猫的无限游戏
大猫的无限游戏
L
LINUX DO - 最新话题
G
Google Developers Blog
The GitHub Blog
The GitHub Blog
Recorded Future
Recorded Future
有赞技术团队
有赞技术团队
Martin Fowler
Martin Fowler
K
Kaspersky official blog
PCI Perspectives
PCI Perspectives
A
Arctic Wolf
Latest news
Latest news
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
N
Netflix TechBlog - Medium
雷峰网
雷峰网
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Google Online Security Blog
Google Online Security Blog
P
Palo Alto Networks Blog
The Hacker News
The Hacker News
WordPress大学
WordPress大学
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
月光博客
月光博客
Schneier on Security
Schneier on Security
M
MIT News - Artificial intelligence

博客园 - 天生舞男

多个平均数列的子查询 迁移sharepoint Sharepoint迁移数据库之绝版(只要照着做,一定能够迁移成功) Sharepoint的webpart 虚函数和非虚函数的调用基本原则 The visio to drawing project chart. - 天生舞男 Using MSChart from a C# WinForm About the deeply copy 学习程序的自我建议---从实际软件的源代码开始学习 MS bug "The connection pool" in Oracle 10g and the data sort according to specified filed on DataGrid control. How to get response content with specified post data by post method Post method tip Get the biggest common divisor rose破解 ArrayList按Index删除的问题 Recently expection RadioButtonList中选择框和文字对不齐的解决办法 resolve problem best method is find document from official document 看了宝玉的作品,心理甚是感叹
automation服务器不能创建对象
天生舞男 · 2006-02-21 · via 博客园 - 天生舞男

function ShowFolderInfo()
{
     var fso, fldr, s = ""; // 获得 FileSystemObject 的实例。 
    fso = new ActiveXObject("Scripting.FileSystemObject"); // 获得 Drive 对象。 
    fldr = fso.GetFolder("c:"); // 打印父文件夹名。 
    window.alert("Parent folder name is: " + fldr + ""); // 打印驱动器名字。 
    window.alert("Contained on drive " + fldr.Drive + ""); // 打印根文件名。 
    if (fldr.IsRootFolder) 
        window.alert("This is the root folder."); 
    else 
        window.alert("This folder isn't a root folder."); 
    window.alert(""); // 用 FileSystemObject 对象创建新的文件夹。 
    fso.CreateFolder ("C:\\Bogus"); 
    window.alert("Created folder C:\\Bogus" + ""); // 打印文件夹的基本名。 
    window.alert("Basename = " + fso.GetBaseName("c:\\bogus") + "");
     // 删除新创建的文件夹。 
    fso.DeleteFolder ("C:\\Bogus"); 
    window.alert("Deleted folder C:\\Bogus" + "");
 }

实例:在控制面板中打开“用户帐户”,选择其中的“更改用户登录或注销的方式”时出现“automation服务器不能创建对象”的错误提示。(如果在执行其他操作时,出现这个错误提示,亦可按下面的方法解决,原因是一样的。)

解决:主要是Scripting.FileSystemObject(FSO文本文件读写)被关闭了,开启FSO功能即可,在“运行”中执行regsvr32 scrrun.dll

附:如果javascript脚本中报这个错误是因为IE的安全设置不允许运行未标记为安全的activeX控件更改IE的安全设置,把相应的选项打开即可。
<EMBED src="http://www.clocklink.com/Clocks/0001P-Orange.swf?Place=Beijing China&TimeZone=GMT0800" width=200 height=200 type=application/x-shockwave-flash wmode="transparent">