zoukankan      html  css  js  c++  java
  • WSCRIPT取得当前执行路径

    test.bat

    mode con lines=2000
    cscript.exe /x E:\PersonalSet\Desktop\test.vbs
    pause

    test.vbs

    Dim fso
    Set fso = CreateObject("Scripting.FileSystemObject")
    StrCurPath = fso.GetFolder(".")
    WScript.StdOut.WriteLine StrCurPath

    -----------------------------------------------------------------------

    结果是输出了test.bat所在路径

  • 相关阅读:
    X
    W
    J
    A
    Q
    P
    B
    排列和组合的求解
    深度学习之序列处理
    32位和64位数据类型大小对比
  • 原文地址:https://www.cnblogs.com/dongzhiquan/p/1994598.html
Copyright © 2011-2022 走看看