Coder Social home page Coder Social logo

Comments (5)

lychichem avatar lychichem commented on June 2, 2024

调用的时候套个vbs,把cmd窗口隐藏掉?这个功能倒不是实现不了

from jasminum.

sjhsbhqf avatar sjhsbhqf commented on June 2, 2024

调用的时候套个vbs,把cmd窗口隐藏掉?这个功能倒不是实现不了

大哥,多谢您pull request一下了

from jasminum.

lychichem avatar lychichem commented on June 2, 2024

调用的时候套个vbs,把cmd窗口隐藏掉?这个功能倒不是实现不了

大哥,多谢您pull request一下了

我只知道可能的实现方式,但我不会写

from jasminum.

l0o0 avatar l0o0 commented on June 2, 2024

@lychichem 同学,你会写vbs的这代码么?可以用 pdftk xxxx 代替对应的命令脚本。我之前试过用bat 脚本,没达到禁用窗口的效果

from jasminum.

sjhsbhqf avatar sjhsbhqf commented on June 2, 2024

@lychichem 同学,你会写vbs的这代码么?可以用 pdftk xxxx 代替对应的命令脚本。我之前试过用bat 脚本,没达到禁用窗口的效果

方法1:

如果你希望执行的.bat文件不弹出命令控制台窗口,可以使用start /b命令。

例如在你的.bat文件中加入如下代码:

@echo off
start /b your_command
这样执行的时候就不会弹出命令控制台窗口了。

来源:https://juejin.cn/s/%E6%89%A7%E8%A1%8Cbat%E4%B8%8D%E5%BC%B9%E5%87%BA%E7%AA%97%E5%8F%A3

方法2:

在你批处理的相同目录下新建一个记事本,里面输入:

set ws=wscript.createobject("wscript.shell")
ws.run "win.bat /start",0
(其中win.bat为你自己的批处理名字,自己改) 然后把这个记事本保存为后缀名为.vbe的文件,到时候你只要运行这个vbe文件就达到目的了!

原文链接:https://blog.csdn.net/skypeGNU/article/details/12708221

from jasminum.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.