Hi,
In old DOS script, I can run an R script with the following syntax:
Rterm.exe --quiet --slave --vanilla < "C:\some_script.R"
However, Powershell seems to have reserved "<" for future expansion. I am wondering if there is a direct way to run R script within another powershell script.
Thanks
...
Hi,
I want to store the URL of all files with same extension in specific directory to one Log file. IS there any batch command available for this.
Exapmle
I want to copy all files with *.TXT extension into one log file with its directory extension(URL)
...
I need to create a batch file that goes to a directory and execute a series of executables
start cd c:\temp\
command1
command2
the above doesn't work, it only starts in c:\temp, but ignores rest.
...
How do I have a powershell script embedded within the same file as a DOS batch script?
I know this kind of thing is possible in other scenarios:
Embedding SQL in a DOS batch script using sqlcmd and a clever arrangements of goto's and comments at the beginning of the file
In a *nix environment having a the name of the program you wish ...
Hi,
I want to make something like this...
:LoopBegin
if ???? goto End
some other work goes here*
gotoLoopBegin
:End
The "????" part should be a check that a file exists with the name "exit.txt" for example. If such a file exists in the current folder, I want the batch file to just exit. Is there a way to do this?
Thanks
...
function 09h interrupts 21h
dx = offset of the text , ds = segment of the text
how can i obtain segment and offset in c++?
...
Hello,
I'm working on a project in which I'd like to be able to turn lights on and off in the Duke Smart Home via a high frequency chirp. The lighting system is called Clipsal Square-D and the program that gives a user access to the lighting controls is called CGate. I was planning on doing some signal processing in Matlab, then creat...
I want to run a DOS command in my C++ program. The point is that I want my program stops while the DOS command is executed. I have used "System" API. My question is "Does 'system' make a new thread/process to run the DOS command in it or it just stops the program until the command is done?"
If it creates a new process, how can I stop th...
If I use Dos command "copy" to concatenate two files:
copy a1.txt + a2.txt a.txt
I will have something like the following in stdout:
C:\a1.txt
C:\a2.txt
1 file(s) copied.
I do not want to have anything written in stdout, I mean, I just want to have 'a.txt' without those 3 lines written in stdout. Is there any way to do so? the...
When using Cygwin, I frequently copy a Windows path and manually edit all of the slashes to Unix format. For example, if I am using Cygwin and need to change directory I enter:
cd C:\windows\path
then edit this to
cd C:/windows/path
(Typically, the path is much longer than that). Is there a way to use sed, or something else t...
Hi,
I am using 7zip in command line mode.
When the operation takes quite a long time, sometimes there is a process percentage displayed.
I wonder if we want to do this using C#/Java, what library to use?
Regards,
...
I am a newbie in cmd, so please allow me to ask a stupid question: How can we stop a running java process through windows cmd?
For example, if we start jetty(a mini web server) with the following cmd:
start javaw -jar start.jar
How do we find the process and stop it later?
Obviously the following cmd does not work:
stop javaw -jar ...
Hi all,
An open question - but I cant find anywhere to start!!
I want to compile a "Hello World" MS-DOS exe.
Not a program that runs in XP 16bit mode, or in MSDos mode on top of Windows OSs.
A HELOWRLD.EXE that I can run on my MSDOS box.
Thanksyou!
...
I really do not understand why this simple code works fine in the first attempt but when
putting it in a procedure an error shows:
NTVDM CPU has encountered an illegal instruction
CS:db22 IP:4de4 OP:f0 ff ff ff ff
The first code segment works just fine:
.model small
.stack 100h
.code
start:
mov ax,@data
mov ds,ax
mov es,ax
...
i am trying to read a username and a password from a file in x86 assembly for the perpose of authentication
obviously the file consists of two lines , the user name and the password how can i read the two lines seperately and compare them?
My attempt:
proc read_file
mov ah,3dh
lea dx,file_name
int 21h
mov bx, ax
xor si,si
...
i have a small program that uses 32bit object file, and i wish to run it under dos operating system. now, after searching i found DJGPP.
is there a way to use DJGPP to compile my program to 16Bit dos executable format?
thanks in advance
...
How to find all the *.txt files in any directory(i.e. c:\,d:\ etc.) through command prompt?
...
Hi, everyone !
I need to call some DOS interrupts (Services) from a C/C++ program, I tried the following inline asm code:
(Read a character)
int main()
{
asm(
"movb $0x01, %ah;"
"int $0x21"
);
system("PAUSE");
}
But it did not work ! I would like to know what have i done wrong here ! Also if there is another way to call dos interr...
I'm trying to restart a significant number of windows computers on different domains, using the same local admin credentials that work across domains.
psshutdown.exe -r -f -t 600 -e p:0:0 -m "This reboot is a scheduled weekly reboot." -u "admin username" -p adminpw @mon.txt 1>4-26-mon.log 2>&1
Honestly, I just want to log the ones th...
I am using DJGPP compiler for DOS in that i have to use WINDOWS.h which is a win32 api for conversion of system time to file time for NTFS file system.As windows.h is win32 api it is giving error "windows.h-no such file or directory".So how to convert system time to file time (i.e.8 byte structure) in NTFS file system for NTFS file syste...