执行DOS命令行。 [英] Execute a DOS Command Line.
本文介绍了执行DOS命令行。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Hello Everyone,
为什么这在DOS命令中不起作用 - >使用passwod提取自解压exe
D:\TIMELINE \28062013 \ Exe.exe密码
但这样可以正常工作
Hello Everyone,
Why this is not working in DOS Command -> Extracting a self extracting exe with passwod
"D:\TIMELINE\28062013\Exe.exe" password
But this works fine
cd D:<br />
cd Timeline\28062013<br />
Exe.exe password
请帮助,我将在vb.net中使用此代码自动提取所有文件
提前致谢
Please help, I will use this code in vb.net to automatically extract all files
Thanks in advance
推荐答案
可能是因为您开始使用该文件夹的权限。
直接更改磁盘和目录时,设置要执行的应用程序的当前文件夹 - 因此任何解压缩的文件都将进入该文件夹。如果你不这样做,那么你可以(几乎可以肯定地读取)将当前目录保留在哪里 - 这可能是C:\或应用程序文件夹。这些都不可能有写权限,你的提取可能会失败。
如果没有看到你正在执行的代码,很难推荐一个解决方案,但可能是你的exe.exe文件有一个参数告诉它要提取到哪个文件夹。
Possibly, because of permissions on the folder you are starting off in.
When you change disk and directory directly, you set the current folder for the application to execute in - so any extracted files will go into that folder. If you don't, then you could well (read almost certainly are) leaving the current directory exactly where is - which is likely to be C:\ or an application folder. Neither of these are likely to have write permission and your extract will probably fail.
Without seeing the code you are executing, it's difficult to recommend a solution, but it may be that your exe.exe file has a parameter telling it which folder to extract to.
这篇关于执行DOS命令行。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文