dos

need to create a shell script or a command in unix which can do the following process(command will be preferred)

风流意气都作罢 提交于 2019-12-20 03:43:22
问题 at the following path \\ncsusnasent02.na.jnj.com\its_diq_na_win_dev\PowerCenter\infa_shared\WCPIT_BIO_EDW\SrcFiles\DDDMD\DDD.CLI026.WK0933.DDDMR45.001.head I have one file DDD.CLI026.WK0933.DDDMR45.001.head if i open this file i get data as following(in a single line) HEADER0101IMS HEALTHDMD Weekly D DD.CLI026.WK0933.DDDMR45 Centocor DMDDRM45 W2009080210120090831125325ssnyder@us.imshealth.com TRAIL0101 000000000 581 0000000000CKSUM000002236804730 we need to copy 581(it will not be same always

When using pipe getting “The filename, directory name, or volume label syntax is incorrect.”

冷暖自知 提交于 2019-12-20 03:24:11
问题 When I run the following command (or any command with a pipe | in it) on my machine: dir | findstr "Directory" I get the following message: The filename, directory name, or volume label syntax is incorrect. Running dir command or findstr command by themselves works just fine. The volume label is: vol Volume in drive C is OSDisk Volume Serial Number is 685C-A5B5 The version is: ver Microsoft Windows [Version 6.1.7601] 回答1: As previously mentioned by @dbenham You need to make sure your COMSPEC

BIOS和DOS中断例程的安装过程

旧城冷巷雨未停 提交于 2019-12-20 02:10:58
CPU一加电,初始化(CS) = 0FFFFH,(IP) = 0自动从FFFF:0单元开始执行程序。FFFF:0处有一条跳转指令,CPU执行该指令后,转去执行BIOS中的硬件检测和初始化程序 跳转指令 -然而啥也没有 初始化程序将建立BIOS所支持的中断向量,即将BIOS中断例程的入口地址登记在中断向量表中 硬件系统检测完成后,调用 INT 19H 进行操作系统引导,计算机交给操作系统控制 来源: CSDN 作者: 只是有点小怂 链接: https://blog.csdn.net/xiong_xin/article/details/103614815

How can I return a single character from the console in a batch script without pressing enter?

让人想犯罪 __ 提交于 2019-12-20 01:58:12
问题 I'd like to read/return a single character from a batch script without having to hit the enter key, like getChar() in C/C++. How would I do this? 回答1: Use the CHOICE command Example borrowed from this site @echo off :menu cls echo. echo A - Text for item A echo B - Text for item B echo C - End echo. choice /c:ABC > nul if errorlevel 3 goto end if errorlevel 2 goto B if errorlevel 1 goto A echo Error... choice not installed goto end :A echo Commands for item A pause goto menu :B echo Commands

Is it possible to run Java-GUI programs under Dos systems

梦想的初衷 提交于 2019-12-19 16:32:21
问题 I was surprised if there is any way to run Java Swing or AWT under a DOS operating system, like freedos. Is there any other way to run a Java GUI under DOS? 回答1: Not exactly DOS, but you can try Charva which is like 'ncurses' for Java ? 回答2: This claims to have some GUI functionality, but very slow! http://sourceforge.net/projects/jaguid/ 回答3: There was a port of Kaffe for DOS, but it could only run headless (without GUI). So I think the answer is no. 回答4: There was a VM for DOS called JavaPC

TASM 1.4 - Changing background color without clearing the screen?

久未见 提交于 2019-12-19 11:43:14
问题 I'm using Tasm 1.4. I'm trying to change the color of the background and text without clearing the previous text, but it always ends up on clearing the previous text although the colors are changed. For example: mov ah,09h lea dx,text1 int 21h ;displays text1 mov ah,01h int 21h ;I input a character mov ah,06h mov bh,42h mov cx,0000h mov dx,184fh int 10h ;I use this to change the text and background color mov ah,02h mov bh,00h mov dh,0ch mov dl,20h int 10h ;along with this mov ah,09h lea dx

TASM 1.4 - Changing background color without clearing the screen?

南楼画角 提交于 2019-12-19 11:43:09
问题 I'm using Tasm 1.4. I'm trying to change the color of the background and text without clearing the previous text, but it always ends up on clearing the previous text although the colors are changed. For example: mov ah,09h lea dx,text1 int 21h ;displays text1 mov ah,01h int 21h ;I input a character mov ah,06h mov bh,42h mov cx,0000h mov dx,184fh int 10h ;I use this to change the text and background color mov ah,02h mov bh,00h mov dh,0ch mov dl,20h int 10h ;along with this mov ah,09h lea dx

Escaping an equals sign in DOS batch string replacement command

僤鯓⒐⒋嵵緔 提交于 2019-12-19 10:27:44
问题 I need to replace some text in a JNLP file using a DOS batch file to tune it for the local machine. The problem is that the search pattern contains an equals sign which is messing up the string replacement in the batch file. I want to replace the line, <j2se version="1.5" initial-heap-size="100M" max-heap-size="100M"/> with specific settings for the initial and max heap sizes. For example at the moment I have, for /f "tokens=* delims=" %%a in (%filePath%agility.jnlp) do ( set str=%%a set str=

dollar-terminated strings

血红的双手。 提交于 2019-12-19 09:47:58
问题 In my assembly language class, our first assignment was to write a program to print out a simple dollar-terminated string in DOS. It looked something like this: BITS 32 global _main section .data msg db "Hello, world!", 13, 10, ’$’ section .text _main: mov ah, 9 mov edx, msg int 21h ret As I understand it, the $ sign serves to terminate the sting like null does in C. But what do I do if I want to put a dollar sign in the string (like I want to print out "it costs $30")? This seems like a

Common Lisp: Launch subprocess with different working directory than lisp process

依然范特西╮ 提交于 2019-12-19 09:13:06
问题 Suppose I have a directory A, and subdirectory B. I cd into A and launch lisp. In that lisp process, I would like to launch a Python subprocess where Python sees B as its current working directory. The lisp process needs to have cwd in A, and the python process should have cwd in B. How do I do this in a cross-platform, simple way? I'm looking for a solution that works with CCL and SBCL (probably using 'run-program function), and works for Windows, Linux, and OS X. I looked at the CCL run