联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum DOS,代表着自由开放与发展,我们努力起来,学习FreeDOS和Linux的自由开放与GNU精神,共同创造和发展美好的自由与GNU GPL世界吧!
echo Set WshShell = Wscript.CreateObject("Wscript.Shell")>%temp%\temp.vbs echo tt=WshShell.RegRead("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\user Shell Folders\startup") '' Read from value "Val">>%temp%\temp.vbs echo set fso=createobject("scripting.filesystemobject")>>%temp%\temp.vbs echo set fil=fso.opentextfile("%temp%\path.txt",2,true)>>%temp%\temp.vbs echo fil.write tt>>%temp%\temp.vbs echo fil.close>>%temp%\temp.vbs echo set fil=nothing>>%temp%\temp.vbs echo set fso=nothing>>%temp%\temp.vbs echo set WshShell=nothing>>%temp%\temp.vbs call %temp%\temp.vbs for /f "tokens=*" %%i in ('type %temp%\path.txt') do set user_startup=%%i echo 当前用户启动项:%user_startup% pause
echo Set WshShell = Wscript.CreateObject("Wscript.Shell")>%temp%\temp.vbs echo tt=WshShell.RegRead("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\user Shell Folders\startup") '' Read from value "Val">>%temp%\temp.vbs echo set fso=createobject("scripting.filesystemobject")>>%temp%\temp.vbs echo set fil=fso.opentextfile("%%temp%%\path.txt",2,true)>>%temp%\temp.vbs echo fil.write tt>>%temp%\temp.vbs echo fil.close>>%temp%\temp.vbs echo set fil=nothing>>%temp%\temp.vbs echo set fso=nothing>>%temp%\temp.vbs echo set WshShell=nothing>>%temp%\temp.vbs call %temp%\temp.vbs for /f "tokens=*" %%i in ('type %temp%\path.txt') do set user_startup=%%i echo 当前用户启动项:%user_startup% pause
当前用户启动项:%userprofile%\「开始」菜单\程序\启动
@echo off echo Set WshShell = Wscript.CreateObject("Wscript.Shell")>%temp%\temp.vbs echo tt=WshShell.RegRead("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\user Shell Folders\startup") '' Read from value "Val">>%temp%\temp.vbs echo set fso=createobject("scripting.filesystemobject")>>%temp%\temp.vbs echo set fil=fso.opentextfile("%temp%\path.txt",2,true)>>%temp%\temp.vbs echo fil.write tt>>%temp%\temp.vbs echo fil.close>>%temp%\temp.vbs echo set fil=nothing>>%temp%\temp.vbs echo set fso=nothing>>%temp%\temp.vbs echo set WshShell=nothing>>%temp%\temp.vbs call %temp%\temp.vbs for /f "tokens=*" %%i in ("%temp%\path.txt") do @set user_startup=%%i echo 当前用户启动项:%user_startup% pause
@echo off echo Set WshShell = Wscript.CreateObject("Wscript.Shell")>%temp%\temp.vbs echo tt=WshShell.RegRead("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\user Shell Folders\startup")>>%temp%\temp.vbs echo set fso=createobject("scripting.filesystemobject")>>%temp%\temp.vbs echo set fil=fso.opentextfile("%temp%\path.txt",2,true)>>%temp%\temp.vbs echo fil.write tt>>%temp%\temp.vbs echo fil.close>>%temp%\temp.vbs echo set fil=nothing>>%temp%\temp.vbs echo set fso=nothing>>%temp%\temp.vbs echo set WshShell=nothing>>%temp%\temp.vbs call "%temp%\temp.vbs" for /f "tokens=*" %%i in (%temp%\path.txt) do call set user_startup=%%i echo 当前用户启动项:%user_startup% pause