Search found 38 matches

by phoenix_Rising
26 Jul 2012 01:56
Forum: DOS Batch Forum
Topic: Create a loop to set variable from text file and run batch
Replies: 6
Views: 5950

Re: Create a loop to set variable from text file and run bat

I see what you mean -- That seems to have worked!

Thanks so much!
by phoenix_Rising
25 Jul 2012 18:23
Forum: DOS Batch Forum
Topic: Create a loop to set variable from text file and run batch
Replies: 6
Views: 5950

Re: Create a loop to set variable from text file and run bat

Thanks Squashman, I dont believe that my line of code is right though reagardless of the correction as it seems that i need to set the variable %SERVER% to a line from the serverlist.txt file and then run through the whole batch file. When thats finished it needs to do the same thing with every line...
by phoenix_Rising
25 Jul 2012 15:32
Forum: DOS Batch Forum
Topic: Create a loop to set variable from text file and run batch
Replies: 6
Views: 5950

Create a loop to set variable from text file and run batch

Hi guys, Really trying to get to the bottom of this... I have written a short amateur batch file that simply pulls some basic system info and dumps it as a txt file... at the moment it prompts for human interaction with the user typing the name of the server and then the batch file referring to the ...
by phoenix_Rising
03 May 2012 08:41
Forum: DOS Batch Forum
Topic: Looping through Matching strings to complete actions...
Replies: 4
Views: 4076

Re: Looping through Matching strings to complete actions...

Still struggling with this anyone got any leads what would be a good way to tackle it?
by phoenix_Rising
30 Apr 2012 05:29
Forum: DOS Batch Forum
Topic: Looping through Matching strings to complete actions...
Replies: 4
Views: 4076

Looping through Matching strings to complete actions...

Hi guys, I have a relatively easy one that's been bugging me for a while! If i have the following files in the following pathname and folder: "C:\music\Jazz\Jazz Classics Vol1 Disc1\" ------------------------------- Jazz classics vol1 Disc 1.ape Jazz Classics vol1 Disc 2.ape Cuesheet1.cue ...
by phoenix_Rising
24 Apr 2012 12:22
Forum: DOS Batch Forum
Topic: Using name of a file to rename a folder (BATCH)
Replies: 13
Views: 9012

Re: Using name of a file to rename a folder (BATCH)

i had tried it with the additional GOTO :CHECK_WHETHER_ANYTHING_FAILED
where you placed it but will add the other goto :eof tonight and test... thanks Foxi... I owe you a few beers! :)
by phoenix_Rising
24 Apr 2012 06:09
Forum: DOS Batch Forum
Topic: Using name of a file to rename a folder (BATCH)
Replies: 13
Views: 9012

Re: Using name of a file to rename a folder (BATCH)

@ Squashman - The Batch is VERY long... (probably due to my code not being as efficient as it could be) Heres is 'What i deem' the relevant code before and after where i have injected Foxi's example code: :APE_TRACK_COUNT setlocal DISABLEDELAYEDEXPANSION if exist %DRIVE%\ojw\logs\APE_Count.txt (del ...
by phoenix_Rising
24 Apr 2012 05:30
Forum: DOS Batch Forum
Topic: Using name of a file to rename a folder (BATCH)
Replies: 13
Views: 9012

Re: Using name of a file to rename a folder (BATCH)

I have injected your code half way through my batch file.

I take it that goto :EOF will terminate the batchfile once the loop completes? for the batch file to continue after the loop completes how would i proceed? Any pointers?
by phoenix_Rising
23 Apr 2012 11:08
Forum: DOS Batch Forum
Topic: Using name of a file to rename a folder (BATCH)
Replies: 13
Views: 9012

Re: Using name of a file to rename a folder (BATCH)

On further investigation it seems strange that i can save your code Foxi as a bat file and run it and it works...however when i try and run it from within my existing main batch file it dosnt seem to rename the folders? Any ideas? I've just tried DisableDelayedExpansion on it in case Enable was caus...
by phoenix_Rising
17 Apr 2012 16:32
Forum: DOS Batch Forum
Topic: FINDSTR (Find & Replace) question...
Replies: 10
Views: 15383

Re: FINDSTR (Find & Replace) question...

No dosn't seem to have any effect...
by phoenix_Rising
17 Apr 2012 09:33
Forum: DOS Batch Forum
Topic: FINDSTR (Find & Replace) question...
Replies: 10
Views: 15383

Re: FINDSTR (Find & Replace) question...

Just installed the GNU SED pack and copied the 4 files over to my tools folder (C:\ojw\tools) where i'm calling these commands from however when i ran the following command: @echo off for /f "delims=" %%a in ('dir c:\ojw\pending\*.cue /b /s') do ( c:\ojw\tools\sed.exe "s/^FILE .*/FILE...
by phoenix_Rising
17 Apr 2012 08:21
Forum: DOS Batch Forum
Topic: FINDSTR (Find & Replace) question...
Replies: 10
Views: 15383

Re: FINDSTR (Find & Replace) question...

Luckily no! :) And its always in UPPERCASE lettering.
by phoenix_Rising
17 Apr 2012 08:14
Forum: DOS Batch Forum
Topic: FINDSTR (Find & Replace) question...
Replies: 10
Views: 15383

FINDSTR (Find & Replace) question...

Im looking at re-creating my audio .cue files for compatibility's sake and have to read a line of data from the .cue file with the (FINDSTR command?) which is always laid out in the same way but with 3 variations to the string: eg.(from test.cue) FILE "Johnsmiths.ape" APE eg. (from test2.c...
by phoenix_Rising
17 Apr 2012 08:06
Forum: DOS Batch Forum
Topic: Using name of a file to rename a folder (BATCH)
Replies: 13
Views: 9012

Re: Using name of a file to rename a folder (BATCH)

Awesome i think ive got that working now! Will test further! Thanks guys.
by phoenix_Rising
17 Apr 2012 06:09
Forum: DOS Batch Forum
Topic: Using name of a file to rename a folder (BATCH)
Replies: 13
Views: 9012

Re: Using name of a file to rename a folder (BATCH)

Will that effect the example code given then foxi?