I agree with bipinajith - can't be done in DOS.
But - you can replace the standard command interpreter (command.com in older versions) by sth. like complus.com (a unix-like cmd interpr. for MS OSes) or the sh.exe found in Unxutils.
In DOS, you can
then type at the screen, and everything will be sent to the file until you do a CTRL-z to end the copying
or, maybe
will append the abcdef to the end of the existing testfile.txt
Unfortunately, this isn't exaclty what I meant.
What I wanted was to be able to use VB6 to open a command prompt (which I've managed) and then telnet onto a server by sending keypresses to the command prompt (which I've also managed) and I wanted the output for the command prompt to be sent to a file on my local machine.
I thought the best way to do this would be an equivalent of << in Unix
I have however, managed to get around it by running my telnet commands on the server and sending its output to a file on the server and then using Inet to FTP the file to my local computer.
Hi Can any one please let me know which will be the PHP equivalent of the below Unix statement,
curl -H "Content-type: application/json" -H "Accept: application/json" --data-binary '{"text" : "how to check the temperature?"}' -H "X-JaskUid:111" -X POST "www.google.com/res"'Thanks in advance!!
... (0 Replies)
In Unix I can use command line to do a find for files older than so many days and remove them. I can also capture the date to see if its a saturday and do something different. Are there any dos/intel command line equivalent commands to do this on a windows 2003 server? This is from an... (6 Replies)
Dear All
Could you please advice how do we convert a unix file to dos
I know one command,ux2dos, which somehow does not work to give desired output
Inputs on this is appreciated
Thanks,
Suresh (3 Replies)
Hi all,
Is there any command in unix equivalent to setlocal in windows.
setlocal command is really useful in restoring local environment variables in windows.
Thanks,
Sonal. (7 Replies)
I need to set the serial port attributes to 9600,7,E,1 in order to read and write data to it from within a Foxpro program. Unfortunately there is no function in Foxpro to set the line attributes, only open. close read and write.
Stty only works on the stdout and stdin in this release, and the... (3 Replies)
This question maybe in the wrong category but I'm posting here due to urgency.
In DOS is there a command to perform a similar function to spool command in SQL or Script command in UNIX?
I want to print all command line output to a file but I don't want to use the echo command for each line.
... (2 Replies)
Okay here is a DOS comparison. When I search for a file in DOS and I was not sure what directory it was in then I would put dir /s/o/p filename the s would tell it to look in every directory including subs, the o would sort it alphabetically and the p would limit the display to one page at a... (1 Reply)