Search found 11 matches
- 08 Apr 2013 15:17
- Forum: DOS Batch Forum
- Topic: Find and replace text
- Replies: 4
- Views: 4511
Re: Find and replace text
Awesome!! Worked perfectly! Now I'll create adifferent version based on this to better suit my needs, much appreciated.
- 08 Apr 2013 14:47
- Forum: DOS Batch Forum
- Topic: Find and replace text
- Replies: 4
- Views: 4511
Re: Find and replace text
HI, thanks for the reply, but I am not sure how this is supposed to work. I tried just running this, then I tried placing this in the same folder as the text and running, then I tried using cmd to run this batch a.bat a.txt and it didn't work. Changed nothing in the text file. Is the ) missing at th...
- 08 Apr 2013 12:21
- Forum: DOS Batch Forum
- Topic: Find and replace text
- Replies: 4
- Views: 4511
Find and replace text
I was wondering if someone could help me write a batch file to find and replace text in a text file. I have web urls on a website and need to replace 5 specific html codes with the real characters. The 5 things I need to change throughout the text file are as follows Find Replace ---- ------- %26 = ...
- 18 Jul 2012 12:57
- Forum: DOS Batch Forum
- Topic: Use if exist to check for folder and if not change to diff 1
- Replies: 3
- Views: 3722
Re: Use if exist to check for folder and if not change to di
Modify the paths to suit. @echo off if exist "foldera\wget\wget.exe" cd /d "foldera\wget\" if exist "folderb\wget\wget.exe" cd /d "folderb\wget\" if not exist wget.exe ( echo wget was not found pause goto :EOF ) rem do wget stuff here. OK, thanx so if it chec...
- 18 Jul 2012 12:35
- Forum: DOS Batch Forum
- Topic: Use if exist to check for folder and if not change to diff 1
- Replies: 3
- Views: 3722
Use if exist to check for folder and if not change to diff 1
I'm not sure if I can do this, I am trying to make a batch file that checks to see if a folder exists and if it does cd to that folder, but if it does not it cd to another folder. More specifically on a 64 bit system checks for Program Files (x86) and if not goes to Program Files. I want to make a b...
- 01 Jul 2012 00:08
- Forum: DOS Batch Forum
- Topic: Multiple results of dir /b /s
- Replies: 8
- Views: 9649
Re: Multiple results of dir /b /s
Excellent foxidrive, worked like a charm and keeps the folder tree locations so as to know which file is what and where it comes from, thanx a whole lot. Now tomorrow I'll come back and ask a few questions I have on what's doing what, but tonight i'm too tired. Thanx again!!!!
- 30 Jun 2012 23:49
- Forum: DOS Batch Forum
- Topic: Multiple results of dir /b /s
- Replies: 8
- Views: 9649
Re: Multiple results of dir /b /s
Makecab /?: Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. All rights reserved. C:\Users\Lateralus>makecab /? Cabinet Maker - Lossless Data Compression Tool MAKECAB [/V[n]] [/D var=value ...] [/L dir] source [destination] MAKECAB [/V[n]] [/D var=value ...] /F directiv...
- 30 Jun 2012 23:33
- Forum: DOS Batch Forum
- Topic: Multiple results of dir /b /s
- Replies: 8
- Views: 9649
Re: Multiple results of dir /b /s
@Fawers Thanx for the input but it did not work it resulted in this: ( I have cut out the first part because it is long and unimportant) 1 file(s) copied. 1 file(s) copied. 1 file(s) copied. What would you like to name your archive?firefox Cabinet Maker - Lossless Data Compression Tool ERROR: Could ...
- 30 Jun 2012 21:52
- Forum: DOS Batch Forum
- Topic: Multiple results of dir /b /s
- Replies: 8
- Views: 9649
Multiple results of dir /b /s
Hi all I have created a batch file to search my computer for a file and when found create a cabinet archive. My trouble is when multiple results are found it only archives one of the files and I imagine it is the last file found. My question is: is there a way to archive all results and put the mult...
- 03 Sep 2009 18:20
- Forum: DOS Batch Forum
- Topic: Change the location of the all programs folder in a batch
- Replies: 1
- Views: 4117
- 17 Aug 2009 14:07
- Forum: DOS Batch Forum
- Topic: Change the location of the all programs folder in a batch
- Replies: 1
- Views: 4117
Change the location of the all programs folder in a batch
Hello all, I have a problem with my All Programs not displaying in my Start Menu in Windows 7 as alot of people are having problems with and no one has a solution that has worked for me. I have found a temporary solution for myself, but I have to do it each time I start my computer up. What I do is ...