关于批处理文件!!! [英] About batch file!!!
问题描述
批处理文件可以执行.COM文件吗?
我可以用java调用吗?
我真的没有批处理文件的经验.. ..
你能给我一些模式或提示代码吗?
或者你不能,只是你知道的最好的URL?!! !
任何回复都将不胜感激,
Sukatoa
批处理文件可以执行.COM文件吗?
我可以用java调用吗?
我真的没有经验在批处理文件....
你能给我一些模式或提示代码吗?
或者如果你不能,那就是你最好的网址已经知道了吗?!!!
任何回复都将不胜感激,
Sukatoa
__________________________________________________ _______________
是的,批处理文件可以执行.com文件。
执行c的简单批处理文件ommand.com给出以下------>
**************************** ********************** **************************** *************
cd \
cd windows
cd system32
command.com
退出
************************ ************************** ************************ *****************
我不知道JAVA,因此我不知道是否可以从中执行批处理文件。更好的选择是将此问题的JAVA部分(与此问题相关的部分问题)发布到JAVA论坛。你会得到更好的答案。
如果你不知道创建一个批处理文件,请告诉我。然后,我将发布一个回复,其中包含创建批处理文件的详细说明。
如果您遇到任何其他问题,请告诉我。
__________________________________________________ _______________
希望这个帮助.........
__________________________________________________ _______________
是的,批处理文件可以执行.com文件。
执行command.com的简单批处理文件如下所示------>
***************** ********************************* ***************** ************************
cd \
cd windows
cd system32
command.com
退出
************* ************************************* ************* ****************************
我不知道JAVA,因此我不知道是否批量文件可以从它执行。更好的选择是将此问题的JAVA部分(与此问题相关的部分问题)发布到JAVA论坛。你会得到更好的答案。
如果你不知道创建一个批处理文件,请告诉我。然后,我将发布一个回复,其中包含创建批处理文件的详细说明。
如果您遇到任何其他问题,请告诉我。
__________________________________________________ _______________
希望这个帮助.........
我已经在java论坛上发布了这个问题,没有人在那里回复我。也许他们讨厌我...... 这里是链接......
我知道如何在java中调用命令提示符
这是我一直被困的东西......
我有一个主题汇编语言,当我在CMD中编译我的a86代码时我感到很吵......
所以我已经编写了一个用java编写的编辑器并运行生成的.COM文件...
如果我的a86代码名为TEMP.ASM将被编译,A86编译器将生成TEMP.COM(程序如.exe) )...
编译时没问题
执行TEMP.COM文件,这是问题...
>
从java调用.COM文件时我很满意...
但是,程序的流程发生变化...
as TEMP.COM调用,执行,我希望程序会等到任何字符被按下然后打印该字符并再次等待任何角色然后终止...
当我在java中调用TEMP.COM时,它等待一个角色,但是当我输入一个角色时,它不打印.. 。
这是调用.COM文件的java代码,
展开 | 选择 | 换行 | 行号
这是我的问题,
根据您上面发布的代码,
就像你正在使用CMD并通过搜索文件夹来查找该文件,我是对的吗?
当我双击该批处理文件时,是否会自动执行我的TEMP.COM文件?
如果是,那么这就是我一直在等待的答案...
__________________________________________________ _______________
是的,你猜对了。
在上面的代码中,我只是在追求(更好)单词正在浏览)文件夹(正如你猜的那样)。
然后,当我在我选择的目录(或文件夹)中,即包含TEMP.COM的文件夹时,我只需执行文件temp.com
这就是........(不是那么简单和强大)
所以你可以很容易地修改代码来完成你的工作。
__________________________________________________ _______________
如果你还有任何问题,请告诉我。我会帮你的。
__________________________________________________ _______________
希望这个帮助.......................
Can a batch file executes the .COM file?
Can i invoke it with java?
I really have no experience on batch file....
can you give me some patterns or hint code?
or if you can''t, just the best URL you have known?!!!
Any reply will be greatly appreciated,
Sukatoa解决方案Can a batch file executes the .COM file?
Can i invoke it with java?
I really have no experience on batch file....
can you give me some patterns or hint code?
or if you can''t, just the best URL you have known?!!!
Any reply will be greatly appreciated,
Sukatoa__________________________________________________ _______________
Yes, a batch file can execute a .com file.
A simple batch file executing command.com is give below------>
************************************************** *****************************************
cd\
cd windows
cd system32
command.com
exit
************************************************** *****************************************
I don''t know JAVA and therefore am unaware whether a batch file can be executed from it. Better option is posting JAVA portion (part of this problem relating to java) of this problem into JAVA forum. You will get better answer there.
If you don''t know to create a batch file, do tell me. I will then post a reply with a detailed description of creating a batch file.
If you face any other problems, do tell me.
__________________________________________________ _______________
HOPE THIS HELPS.........
__________________________________________________ _______________
Yes, a batch file can execute a .com file.
A simple batch file executing command.com is give below------>
************************************************** *****************************************
cd\
cd windows
cd system32
command.com
exit
************************************************** *****************************************
I don''t know JAVA and therefore am unaware whether a batch file can be executed from it. Better option is posting JAVA portion (part of this problem relating to java) of this problem into JAVA forum. You will get better answer there.
If you don''t know to create a batch file, do tell me. I will then post a reply with a detailed description of creating a batch file.
If you face any other problems, do tell me.
__________________________________________________ _______________
HOPE THIS HELPS.........I already post that problem in the java forum and no one replies me there. Maybe they hate me... here is the link...
I know how to invoke Command prompt in java
Here is what i''ve been stucked...
I have a subject Assembly language, i feel hustle when i compile my a86 code in the CMD...
So i''ve made an editor made in java that would compile and run the generated .COM file...
If my a86 code named TEMP.ASM will be compiled, the A86 compiler will then generate the TEMP.COM (the program like .exe)...
at compiling, no problem
at executing TEMP.COM file, here is the problem...
I am satisfied when invoking .COM file from java...
but, the flow of the program change...
as the TEMP.COM invoked, executed, i expect that the program would wait until any character is pressed and then print that character and wait again for any character then terminated...
when i invoke that TEMP.COM in java, it waits for a character, but when i entered a character, it doesn''t print...
Here is the java code for invoking .COM file,
Expand|Select|Wrap|Line Numbers
Here is my kind question for you,
Base on your code posted above,
It is like you are using CMD and looking for that file by googling the folders, am i right?
When i double clicked that batch file, is it automatically execute my TEMP.COM file?
If yes, then this is the answer ive been waiting for...__________________________________________________ _______________
Yes, you guessed absolutely right.
In my code above, I''m just GOOGLING (a better word is browsing) the folders (as you guessed).
Then when I''m in the directory (or folder) of my choice i.e. the folder that contains TEMP.COM, I simply execute the file temp.com
THAT''S IT........(isn''t that simple and powerful)
So you can simply modify the code very easily to do your job.
__________________________________________________ _______________
If you still face any problem, do tell me. I will help you out.
__________________________________________________ _______________
HOPE THIS HELPS.......................
这篇关于关于批处理文件!!!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文