|
I have an edited version of a config file specific for my machine. i have the same config file in multiple different directories in my development folder. i want to, in a single bat file, replace all instances of this file with my edited one.
So in pusedo...
Started by ryancrawcour on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Since I'm not one of them, I take Notepad++)
Search for "original.config" and... .
I'm amazed what DOS batch file experts make work.
A-dos-batch-file-to-loop-through-files/
I think your solution will look something similar to (below of %%a).
|
|
Hi, I have a good old DOS application which is still required to run. Unfortunately the PC is dying and needs to be replaced. The PC was running Windows 98 and the software was executed in a MS Dos Command line. When we would order a new PC you would ...
Answer Snippets (Read the full thread at serverfault):
Just make sure....
While the DOS application might work on Windows XP? Windows 2000 and XP can still execute MS-DOS Applications, even (32-Bit) Vista and Win7 can still run VisiCalc just fine.
Hardware to replace your current computer.
|
|
Is there a way to replace some characters in a text file with a batch ?
I didn't find any command to do that.
Started by Jérôme on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
A free DOS port can be found here , one of the ones I like (there are many different ones) are "UXUTL — Comprehensive collection....
You can use DOS port of Unix command line utility "tr".
A replace string and a file and do the swap for you.
|
Ask your Facebook Friends
|
I really don't want to give up on vim again, but every time I try to learn it something gets in the way.
I'm using gVim on Windows. My code shows ^M characters at the end of lines. I used :set ff=dos to no avail. The ^M characters remain for existing ...
Started by Jerph on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
You can replace the Windows line endings with :%s/\r\(\n\)/\1/g.) I don't know why, but I find that one....
Or run dos2unix on the file.
The fix is to find that one line and replace it.
, 99 are \r\n and one is \n, you'll see 99 ^M characters .
|
|
I was re-reading Joel's Strategy Letter II: Chicken and Egg problems and came across this fun quote:
In fact, WordStar was ported to DOS by changing one single byte in the code. (Real Programmers can tell you what that byte was, I've long since forgotten...
Started by amarillion on
, 9 posts
by 9 people.
Answer Snippets (Read the full thread at stackoverflow):
But.......
Sounds a bit exaggerated, found some WordStar history here
WordStar 3.0 for MS-DOS
Apr 1982
In one single all-night session Jim Fox patched the CP/M-86 version of WordStar to make it run under MS-DOS to the IBM PC by serial cable.
|
|
Hi, I'm using the FINDSTR function to filter text files, but it's failling on extended ASCII characters. I tried using the CharToOEM function, but I still have characters such as 'à', which FINDSTR doesn't seems to recognize.
I want to use FINDSTR because...
Started by gramm on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
If it's not your current language, change it temporary:
Control Panel\Regional and Language Options... .
In order to perform successive search two things are necessary:
You have to match your non-unicode language to the language used in your ansi-encoded file .
|
|
Nevermind, this obviously a sore subject...
Started by Mike Trader on
, 12 posts
by 12 people.
Answer Snippets (Read the full thread at stackoverflow):
The great power of "DOS" applications (it hasn't been DOS for a long time) is the ability to put, what you see in Windows2k/XP/03 and so forth is not really "DOS." It is a command environment that essentially emulates DOS.
|
|
On Tue, 10 Mar 2009 18:48:06 -0700 (PDT), DL <tatata9999@gmail.com
On Mar 10, 7:01 am, Matthias Tacke <Matth...@Tacke.de
Thanks, and yet It's unfortunate, the first option of cmdow, it looks
it can do a lot, but all I need in this case is something...
Started by DL on
, 23 posts
by 5 people.
Answer Snippets (Read the full thread at omgili):
When <k...@unibwm.de
I completely see ....
Here the term, Window, you meant, GUI
Window, not DOS" which is a 16 bit DOS program written with
CPU opcodes in the printable ASCII range only.
Supported OS would be
XP and Vista only (32bit).
|
|
I have been using the following command to get the file date, however the fileDate variable has been returning blank value ever since we moved to a different server (windows 2003)
FOR /f %%a in ('dir myfile.txt^|find /i " myfile.txt"') DO SET fileDate...
Started by Ricky Supit on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
To do that, You need to replace.
Some things to try:
Replace find with the fully-qualified path fileDate=%%a
examine the output of the command in a cmd.exe window.
It works for me on Vista.
|
|
On Sun, 8 Mar 2009 13:10:17 -0700 (PDT), DL <tatata9999@gmail.com
My current installer essentially use 10 plus batch files, the main one
branches out to each one procedurely. Though it only requires user
to press a single key of Y to start the...
Started by DL on
, 25 posts
by 6 people.
Answer Snippets (Read the full thread at omgili):
Looks quite interesting, however, once
started, it still leave a biggish DOS window is something like START /
MIN rem hide/fold current DOS screen, and that's it, nothing more
needed its DOS screen minimized upon
its start, problem....
|