|
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 have a zip file which extracts files with these 4 characters in the middle of the file names:
#%^%
Is there a dos command/script/Win7 app I can run that will remove these from the middle of the names quickly?
On Windows 7
Started by BahaiResearch.com on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
You should = strFile.Name If InStr(strFileName,"#%^%")> 0 Then....
The following DOS command works create script in your language of choice that can execute DOS commands to do this.
PowerShell has regex support , so might be your best bet .
|
|
I know the thread .
I run
:%s/ /s/\n/g
I get
E488: Trailing characters
2nd example
I run
:%s/ /\n/g
I get
text^@text
I run the same codes also with the following settings separetaly
set fileformat=unix
and
set fileformat=dos
How can you replace with a...
Started by Masi on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
Now the substitution will replace one space followed by one whitespace of any kind (space.
What happens is that you replace ' ' with s , and then you tag to \s .
:
:%s/ /s/\n/g
You have too many /.
|
|
Has anyone had any recent requirements for programming automated DOS Batch style tasks on a Windows box?
I've got some automation to do and I'd rather not sit and write a pile of .BAT files in Notepad if there is a better way of automating these tasks...
Started by Geek on
, 11 posts
by 11 people.
Answer Snippets (Read the full thread at stackoverflow):
Maybe this free script of mine can be of assistance. .
To replace xcopy).
|
|
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.
|
|
I'm trying
:%s/,/\n/g
but it inserts what looks like a ^@ instead of an actual newline, the file is not on DOS mode or anything.
What should I do?
EDIT: If you are curious, like me, check this other question as well.
Started by Vinko Vrsalovic on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
With Vim on Windows use Ctrl-Q in place of Ctrl-V
Here's the trick: First... .
You need to use :%s/,/^M/g To get the ^M character, press Ctrl+V followed by ENTER
Ctrl-V pastes the contents of Windows system buffer .
\r seems to work.
Use \r instead of \n.
|
|
So, I'm looking into Permanent DOS attacks for a class, and I'm having a hard time coming up with concrete examples. There's a lot of information about Phlashing (flashing firmware to either brick the device, or put malicious firmware in its place, for...
Started by Sheep Slapper on
, 9 posts
by 8 people.
Answer Snippets (Read the full thread at stackoverflow):
You can replace....
Of course nothing is permanent.
Steve Gibson (google his name) has a paper he wrote a few years back about such a DOS attack:
There are back doors if you will that allow us to get into places for.
And permanent DOS attack.
|