Search found 6 matches
- 07 Apr 2012 08:24
- Forum: DOS Batch Forum
- Topic: Find and Replace text in other txt file.
- Replies: 5
- Views: 3623
Re: Find and Replace text in other txt file.
This is untested and uses SED: Use the batch file like this: ChangeVer.bat 1.13 It expects the I of Imperial to be in column one, and it is case sensitive. @echo off sed "s/^Imperial.*/Imperial %1/" "System_folder/plugins/sometextfile.txt" >"System_folder/plugins/sometextfi...
- 07 Apr 2012 07:34
- Forum: DOS Batch Forum
- Topic: Find and Replace text in other txt file.
- Replies: 5
- Views: 3623
Re: Find and Replace text in other txt file.
Hello all , maybe there was more topics about this nor i can imagine. but maybe someone can help me with this one again ... , so lets go through the work table. i want that when i change the version variable in the bat file (the variable with version) would search for "imperial" (after th...
- 07 Apr 2012 06:35
- Forum: DOS Batch Forum
- Topic: Find and Replace text in other txt file.
- Replies: 5
- Views: 3623
Find and Replace text in other txt file.
Hello all , maybe there was more topics about this nor i can imagine. but maybe someone can help me with this one again ... , so lets go through the work table. i want that when i change the version variable in the bat file (the variable with version) would search for "imperial" (after tha...
- 03 Apr 2012 04:01
- Forum: DOS Batch Forum
- Topic: [Fixed]Whats wrong with this ?
- Replies: 4
- Views: 3893
Re: Whats wrong with this ?
Thanx to you guys, you're the best.
- 02 Apr 2012 13:35
- Forum: DOS Batch Forum
- Topic: [Fixed]Whats wrong with this ?
- Replies: 4
- Views: 3893
[Fixed]Whats wrong with this ?
even if the folder exist its create new one and moves the file ??? @echo off Title ImperialCraft 0.4.3 server by mazius123; %time%; echo Startuojamas serveris ImperialCraft 0.4.3 (%~nx0 ) if exist {..\System_folder} ( goto Paleisti_bukkit ) else ( goto Sukurti_aplanka ) :Sukurti_aplanka if not exist...
- 27 Mar 2012 11:46
- Forum: DOS Batch Forum
- Topic: {green}If not exist folders goto create folder and start bat
- Replies: 3
- Views: 3294
{green}If not exist folders goto create folder and start bat
Hey, i want to know how can i check if there is folders ../sameexample and sameexmaple and if not exist create one sameexmaple and move the batch file int that folder and run it ...? or exist and run start example.bat (only once )