问题标签 [command-window]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
matlab - 强制 c++ 程序使用 dos() 将“同步”输出显示到 MATLAB 命令窗口
我在 MATLAB 中执行我的 c++ 编译程序dos('myprog.exe')
。myprog 产生一些输出,仅在 myprog.exe 完成执行后才会打印到 MATLAB 命令窗口。
有没有办法强制 MATLAB 在 myprog.exe 生成输出时而不是在最后打印输出?
visual-studio - Visual Studio 命令窗口 - 更多命令的别名
Visual Studio 命令窗口中是否有可能为更多命令设置一个别名?例如,一个别名:
- 保存全部
- 关闭所有
- 显示输出
- 建造
sql - vfp 在命令窗口中查询比编译快得多
这是我的查询:
cGift 是一个包含记录列表的游标。
查询生成以下内容
cGift 中有大约 80k 条记录(还有更多此处未使用的字段)。从 vfp 命令窗口运行此查询(加上创建光标的查询)需要 3 秒,从已编译的表单中运行需要 30 分钟。
任何人都知道为什么性能差异如此之大?通常,命令窗口的执行与我编译的表单非常相似。其他查询也以这种形式运行得很好。
光标是用select ... into cursor cGift
. 它是由捐赠者订购的,尽管删除它不会改变任何事情。
我在 VFP 9 sp2 上。有谁知道怎么加速?
编辑:好的,让我总结一下,看看其他人是否有任何想法。
我创建了一个带有select into ... cursor cGift
.
然后我在所述游标上运行上述查询。
它在命令窗口中很快,但在从表单运行时非常慢。
游标和查询的代码完全相同。
我不知道我的表单中的环境设置是开/关/wtvr,因为它是一个非常大的程序的一部分。
matlab - 如何获取出现在命令窗口中的matlab输出
如何获得matlab的输出?不是整个输出(我知道日记可以提供帮助)
一个简单的例子:
我想要的是将输出复制到剪贴板。当我使用剪贴板功能时,出现错误:
我可以轻松地将输出字符串获取到剪贴板,而不是使用鼠标选择...复制...
谢谢!
添加:
谢谢,好!复制 DISP 表示是我想要的。
但是在我运行命令toString1(rng)之后,我可以在剪贴板中得到这样的东西吗:
matlab - 如何停止从 Matlab 中的独立应用程序打印出来?
我必须从 .m 文件 Gen.m 中执行一个独立的应用程序 aTool.exe。
我在 Gen.m 中放了一个命令来执行 aTool.exe 作为
它工作得很好。但是,因为 aTool.exe 有很多打印到命令窗口,所以要花很长时间才能完成运行此命令。我写了 Gen.m。“aTool.exe”是一个开源应用程序,所以我无法访问源代码。aTool.exe最后应该生成3个文本文件,Result1.txt、Result2.txt和Result3.txt。当它运行时,它会在屏幕上打印出一些处理消息。这三个文本文件是我需要的,但在运行时我不需要那些处理消息。
有谁知道当我运行 Gen.m 文件时如何停止“aTool.exe”打印到命令窗口?我努力了
它没有用。命令窗口仍然弹出并开始打印。
python - 命令窗口仅在使用 os.system 时闪烁
我在朋友的机器上遇到了一个奇怪的问题,当他们运行我的脚本时,它只会在遇到与 os.system 执行某些操作的行时才会闪烁命令窗口。否则它似乎根本不显示命令窗口。不显示很好,但我的脚本做了一个很大的过程,它会导致窗口闪烁很多。
通常在我的机器上,当我打开脚本(使用 tkinter 启动 gui)时,命令窗口也会在后面打开。这就是我想让我的朋友们做的事情,但我不知道什么会导致命令窗口不显示。python中是否有一个设置不显示命令窗口(当然,除非它需要在其中运行一个进程)?
编辑:好的,我做了一个非常蹩脚的黑客来解决这个问题。显然他所有的 .py 文件都与 pythonw 相关联。我无法改变这个关联(甚至通过命令提示符 ASSOC)所以我只是将 pythonw 重命名为 old_pythonw,并将 python.exe 重命名为 pythonw.exe。是的,真的很傻,但没有时间与 windows 争论文件关联。
python - 如何在程序完成执行时防止命令窗口关闭
我用 Python (.py) 编写了一个小程序,并使用 Py2exe 将其转换为 Windows 可执行文件 (.exe)。它要求一个字符串,然后输出一个字符串——非常简单!-- 并且在 Python 中完美运行。
但是,当 exe 文件在命令窗口中完成执行时,命令窗口会在我看到它的输出之前自动关闭(我假设它确实会打印输出,因为正如我所说,它在 Python 中完美运行)。
我怎样才能防止这种情况发生?我假设我需要更改我的代码,但我到底需要添加什么?
这是我的代码,以防它帮助您查看它(它是一个文字包装器):
谢谢你。
windows-8 - Windows 8 控制台任务命令窗口
我在 Windows 8 中有任务设置,每 5 分钟运行一次。这是一个控制台 exe 文件,如果手动运行,它会显示命令窗口,但当它通过任务调度程序运行时,它也会每 5 分钟显示一次命令窗口。Windows 8 上是否有任何我不知道隐藏命令窗口的设置。它从未在 Windows 7 中发生过。
visual-studio-2010 - Can Visual Studio Command Window 2010 commands be executed in a script
I've just learned about Visual Studio 2010's Command Window, and am hoping it might be able to automate a short set of tedious steps.
Is it possible to put several Command Window commands into a file and execute them?
The scenario I have in mind is:
- open a particular source file (hard-coded path is known)
- set a breakpoint at a particular (fixed) line number in that file
I want to be able to do this easily in a given, open solution - without having to go to the line number by hand, and set the breakpoint by hand.
(The line is the point where a null smart-pointer is dereferenced, and so is a very common location for breakpoints.)
Edit - possible alternatives
- Recording a macro - I almost mentioned in the original post that I'd considered a macro, but I was wanting to version-control the commands, and macros are binary files, so not amenable to version control
- Creating an add-in - Creating source-code and a DLL, to run some simple commands seems unnecessarily complex to me.
visual-studio - Visual Studio 2012 命令窗口不支持“xsd”命令吗?
我读过可以直接在 Visual Studio (2010) 中运行 xsd 命令。我的机器上有 VS 2012,当我运行时
我明白了
命令“xsd”无效。
那么,VS 2012 中是否不支持“xsd”命令,还有其他方法可以在 VS 2012 中执行“xsd”吗?