内射老阿姨1区2区3区4区_久久精品人人做人人爽电影蜜月_久久国产精品亚洲77777_99精品又大又爽又粗少妇毛片

WIN7如何添加云端到開(kāi)始菜單

小編給大家分享一下WIN7如何添加云端到開(kāi)始菜單,相信大部分人都還不怎么了解,因此分享這篇文章給大家參考一下,希望大家閱讀完這篇文章后大有收獲,下面讓我們一起去了解一下吧!

成都創(chuàng)新互聯(lián)公司是一家專業(yè)提供呼中企業(yè)網(wǎng)站建設(shè),專注與網(wǎng)站設(shè)計(jì)制作、網(wǎng)站建設(shè)、H5響應(yīng)式網(wǎng)站、小程序制作等業(yè)務(wù)。10年已為呼中眾多企業(yè)、政府機(jī)構(gòu)等服務(wù)。創(chuàng)新互聯(lián)專業(yè)的建站公司優(yōu)惠進(jìn)行中。

import re
import os
import configparser
import pythoncom
import sys
from win32com.shell import shell
from win32com.shell import shellcon

import win32com.client
objShell = win32com.client.Dispatch("WScript.Shell")
allUserProgramsMenu = objShell.SpecialFolders("AllUsersPrograms")

if len(sys.argv) < 2:
print("請(qǐng)輸入CloudCache路徑")
sys.exit(1)

def buildShortCut(lnkFile, name, appdir, para, workdir, showcmd):
print(lnkFile,name,appdir,para,workdir,showcmd)
shortcut = pythoncom.CoCreateInstance(shell.CLSID_ShellLink, None, pythoncom.CLSCTX_INPROC_SERVER, shell.IID_IShellLink)
shortcut.SetPath(appdir)
shortcut.SetDescription(name)
shortcut.SetWorkingDirectory(workdir)
shortcut.SetArguments(para)
shortcut.QueryInterface(pythoncom.IID_IPersistFile).Save(lnkFile,0)

find_file=re.compile(r"init.ini")
find_path=sys.argv[1]
find_walk=os.walk(find_path)

shortCutDir = allUserProgramsMenu

iniFiles = []
for path,dirs,files in find_walk:
for file in files:
if find_file.search(file):
iniFilePath = os.path.join(path, file)
print(iniFilePath)
iniFileObj = open(iniFilePath)
iniContent = "rn".join(iniFileObj.readlines()[1:-1])
config = configparser.ConfigParser()
config.read_string(iniContent)
print(config.sections())

shortCutSubdir = ""
for sectionName in config.sections():
if sectionName == "Shortcut0":
shortCutSubdir = os.path.join(shortCutDir, config[sectionName]["ShortcutName"])

if sectionName.find("Shortcut") == 0:
section = config[sectionName]
packageName = config["Common"]["PacketName"]

if not os.path.exists(shortCutSubdir):
os.mkdir(shortCutSubdir)

buildShortCut(os.path.join(shortCutSubdir, section["ShortcutName"]+ ".lnk"), section["ShortCutName"],
section["AppDir"], section["Param"], section["WorkingDirectory"], 1)

以上是“WIN7如何添加云端到開(kāi)始菜單”這篇文章的所有內(nèi)容,感謝各位的閱讀!相信大家都有了一定的了解,希望分享的內(nèi)容對(duì)大家有所幫助,如果還想學(xué)習(xí)更多知識(shí),歡迎關(guān)注創(chuàng)新互聯(lián)行業(yè)資訊頻道!

網(wǎng)站題目:WIN7如何添加云端到開(kāi)始菜單
當(dāng)前網(wǎng)址:http://www.rwnh.cn/article10/gopego.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供品牌網(wǎng)站設(shè)計(jì)服務(wù)器托管、ChatGPT、微信小程序、商城網(wǎng)站、Google

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)

外貿(mào)網(wǎng)站制作
尤溪县| 会同县| 鄯善县| 连云港市| 新和县| 邢台县| 克拉玛依市| 乡城县| 旬阳县| 台东市| 汕尾市| 灌南县| 锡林浩特市| 舒兰市| 阿瓦提县| 勐海县| 栾城县| 宁陵县| 淮滨县| 仁化县| 汝南县| 霍州市| 夏津县| 年辖:市辖区| 台北市| 达孜县| 扶风县| 米泉市| 鄂温| 固阳县| 阳春市| 龙口市| 门源| 保定市| 怀来县| 左贡县| 白河县| 新巴尔虎左旗| 三都| 呈贡县| 南乐县|