dos

How to run multiple commands from ant exec task

南楼画角 提交于 2019-12-24 05:44:08
问题 I want to run two dos commands from Ant exec task. I have tried below code <exec dir="${testworkspace}\${moduleName}" executable="cmd" failonerror="true" output="${testworkspace}\${moduleName}\BuildConsole_TC${tc_num}.log" resultproperty="execrc"> <arg value="/c echo Download Status is ${DownloadStatus}"/> <arg value="/c Load.bat ${moduleName} ${Intapp} ${CcvStatus}"/> </exec> but it executes only first command and skips second. I am trying this on windows OS. 回答1: This should work. Simply

Time Related Interrupts Don't Work in Assembly, in Windows?

為{幸葍}努か 提交于 2019-12-24 04:40:05
问题 I wanted to create a small program in Assembly language, that delays for several seconds. I am using Windows XP SP3, and opened a DOS window, and ran debug.exe I entered there this short Assembly program: MOV CX,3D MOV DX,0900 MOV AH,86 INT 15 Function 86h in Interrupt 15h, performs a delay, and the Duration for the delay is in CX,DX, in MicroSeconds. So If for example I want to delay for 4 seconds, then it's 4,000,000microseconds = 3D0900h, and that's what I put in CX,DX. Running this short

MS-DOS - Is it possible to program 24 bit graphics?

大城市里の小女人 提交于 2019-12-24 01:25:35
问题 Is it possible to program in a color depth of 24 bits on a DOS machine? I know VGA supports 8 bit color depth, but is there a way to finagle out 24 bits? Research on Google has turned up nothing. I am programming on FreeDOS instead of MS-DOS, if that affects the answer. 回答1: Yes, it is possible. You should read about VESA and appropriate drivers. Here is several functions Then you will be able to do: mov ax,4f02h mov bx,103h int 10h This usually provides ax with 004fh if VESA is inited and

Trim leading slashes using only a batch file

独自空忆成欢 提交于 2019-12-24 01:18:32
问题 For where I work my hands are tied on what I can use in order to do what I want. What I need to do is create a .bat that does a net view and outputs it to a .txt and remove the leading slashes from the output. Getting the net view to a file is the easy part but removing the leading slashes is what I am having an issues with. Not sure if it will matter but the naming system that my company uses is #####-XX-## I have looked around quite a bit and have not been able to find a way to easily do

使用cmd->sqlplus,在dos窗口中导出、导入数据库.dmp文件;

只谈情不闲聊 提交于 2019-12-23 18:53:19
--导出整个数据库、指定用户下的对象、指定表 1,将数据库ORACLE完全导出,sqlplus用户名system密码manager 导出到c:\daochu.dmp中 >exp system/manager@ORACLE file=c:\daochu.dmp full=y 2,将数据库中RFD用户与,JYZGCX用户的表导出 >exp system/manager@ORACLE file=d:\daochu.dmp owner=(RFD,JYZGCX) 3,将数据库中的表T_USER、T_ROLE导出 >exp JYZGCX/JYZGCX@ORACLE file=d:\data\newsmgnt.dmp tables=(T_USER,T_ROLE) --导入dmp文件 >imp kang/123456@localhost/ORACLE file="C:\daochu.dmp" full=y ignore=y 来源: https://www.cnblogs.com/yanch/p/8676307.html

cmd命令和dos命令有什么不同?

假如想象 提交于 2019-12-23 17:18:22
知识点笔记: cmd 在windows下是DOS模拟器,能运行绝大部分DOS命令,但是不是真正的DOS,DOS是一个操作系统,而CMD只是在WINDOWS下面模拟DOS环境。 一、CMD命令 1 . services.msc 查看和设置本地服务; 2 . mspaint 打开画图工具; 3 . calc 打开计算机 二、DOS命令 dir (directory) :列出当前目录下的文件以及文件夹 md (make directory): 创建目录 rd (remove directory):删除目录 cd (change directory):进入指定目录 cd.. : 退回到上一级目录 cd\ : 退回到根目录 del:删除文件 exit:退出dos命令行 cls (clear screen): 清屏 ipconfig : 查看ip网络配置; telnet: 查看端口是否开通; 格式: telnet ip 端口号。 ping命令: 是用来测试网络之间是否能够连通以及网络之间的传输速度。 例:测试网卡,TCP/IP协议是否可用,如果发送的数据包数目等于接收的数据包数目(也就是本机能够接收到目的地址发送的数据包),就证明网卡正常,TCP/IP协议可用。 127.0.0.1是本地回环地址,也就是本机地址( 自己电脑的地址 )。 ping命令实际上是通过向目的地址发送数据包

Custom keyboard interrupt handler

别来无恙 提交于 2019-12-23 13:09:51
问题 I'm trying to write a simple program that will replace standard keyboard interrupt with a custom one that will decrement a variable. However, it won't work without a call to the old handler. Here is my interrupt handler: handler proc push ax push di dec EF ;pushf ;when these to instructions commented keyboard interrupts handling hangs ;call [OLD] mov al,20h out 20h,al pop di pop ax iret handler endp What actions I should also execute in my handler to make it works without calling the old

Assembly: dynamic memory allocation without malloc and syscalls? [FreeDOS application]

强颜欢笑 提交于 2019-12-23 12:53:55
问题 My question is about the logic of dynamic memory allocation in assembly (particularly, MASM). There are lot of articles on this topic and all of them rely on the use of malloc or brk. However, according to my understanding, malloc as a part of C language must (or could) be certainly written on assembly. Idem for brk, because it's a part of the operating system, thus also written on C which can be replaced 1 to 1 by assembly. Very very long time ago I have seen an article in PCMag about

Batch file day/month/year syntax?

守給你的承諾、 提交于 2019-12-23 10:16:26
问题 I can't find a simple breakdown of the batch file syntax for extracting the current day/month/year. I have the following syntax for declaring a variable used as a directory name; set folder=%date:~10,4%%date:~7,2%%date:~4,2% Can anyone shed some light (or post a link) on what the tilde, the double percentage means? I can't seem to fully decipher it from intuition alone. 回答1: The double percentage means absolutely nothing. It is simply a result of having two variable expansions side-by-side

Newline in 8086 assembly language: my text prints stair-stepped

眉间皱痕 提交于 2019-12-23 09:32:13
问题 I'm getting stair-step output like this My program works correctly, except that when I print a new line, and then print something in the current line, it shows on the next line but with some space before it. The program is this: (print a table of multiple numbers from 0 to 9): data_seg segment I DB 0D J DB 0D R DB ? DIVER DB 10D data_seg ends stack_seg segment stack_seg ends code_seg segment MAIN proc far assume cs:code_seg, ds:data_seg, ss:stack_seg MOV AX,data_seg MOV DS,AX FOR1: MOV J,0D