我正在尝试制作一个 vbs 脚本来设置一个应用程序在 Windows 启动时运行,但似乎不起作用...这是代码:
set WshShell = CreateObject("Wscript.Shell")
set fs = CreateObject("Scripting.FilesystemObject")
pathe = WshShell.SpecialFolders("Startup")
start()
function start()
x = fs.CopyFile("hello.bat", Path & "\", True)
end function
wscript.echo(Path)
如果你知道任何其他方法来设置一个文件在启动时运行它是好的
0
试试这个,只有一个班轮可以做到这一点:
CreateObject("Shell.Application").NameSpace(7).CopyHere "hello.bat", 4 + 16 + 1024 : Wscript.Echo "hello.bat"
本站系公益性非盈利分享网址,本文来自用户投稿,不代表边看边学立场,如若转载,请注明出处
评论列表(48条)