zoukankan      html  css  js  c++  java
  • 查看固定目录下的图片


    Dim picPath
    picPath="d:pictrue"
    Set fso=CreateObject("scripting.filesystemobject")
    Set files=fso.GetFolder(picpath).Files
    ForEach file In files
        IfInStr(file.Type,"图像") Then
            filenamestr=file.ShortName & "," & filenamestr
        EndIf
    Next
    strArray= Split(filenamestr,",")

    j=0:i=1
    Set WshShell = WScript.CreateObject("WScript.Shell")

    Do
        WshShell.Run picPath & strArray(i-1)
        WScript.Sleep  3000
        wshshell.Run "taskkill /f /im dllhost.exe"
        WScript.Sleep 700
        j=j+1
        i=i+1
        If  j = UBound(strArray)+1Then
            j=0:i=1
            Do
                s= MsgBox ("浏览完毕是否重新浏览", 3, "图片自动浏览")'6-->是,7-->否,2-->取消和关闭
                If s = 6Then
                    ExitDo
                Else
                    WScript.Quit
                EndIf
            Loop
        EndIf
    Loop

  • 相关阅读:
    HDU 1087 Super Jumping! Jumping! Jumping!
    HDU 1159 Common Subsequence
    HDU 1003 Maxsum
    HDU 2604 Queuing
    HDU 2045 不容易系列之(3)—— LELE的RPG难题
    HDU 2501 Tiling_easy version
    HDU 2050 折线分割平面
    HDU 2018 母牛的故事
    HDU 2046 骨牌铺方格
    HDU 2044 一只小蜜蜂...
  • 原文地址:https://www.cnblogs.com/futrueface/p/4222846.html
Copyright © 2011-2022 走看看