Search found 38 matches
- 16 Apr 2012 21:22
- Forum: DOS Batch Forum
- Topic: Using name of a file to rename a folder (BATCH)
- Replies: 13
- Views: 9334
Using name of a file to rename a folder (BATCH)
Hi guys, Maybe a relatively simple one? I have a bunch of audio files in a folder than are all labelled in the same way: ARTIST - ALBUM - TRACK.ape a few examples from the folder... c:\test\JOHNSMITH - The best of John Smith - Smithy.ape c:\test\JOHNSMITH - The best of John Smith - Smithingtonape c:...
- 16 Apr 2012 17:37
- Forum: DOS Batch Forum
- Topic: list files from DIR line and hiding extensions (Batch)
- Replies: 14
- Views: 10417
Re: list files from DIR line and hiding extensions (Batch)
Works a charm! Thanks Foxi
- 15 Apr 2012 18:03
- Forum: DOS Batch Forum
- Topic: list files from DIR line and hiding extensions (Batch)
- Replies: 14
- Views: 10417
Re: list files from DIR line and hiding extensions (Batch)
Thanks guys... I will be referring to the data within a loop.. I have the following code that works for me but dosnt record the special characters... :ENCODE_APE echo off setlocal enabledelayedexpansion cls echo. echo Now encoding... echo. if exist %DRIVE%\ojw\logs\ENCODE_LIST.TXT (del /q %DRIVE%\oj...
- 15 Apr 2012 09:14
- Forum: DOS Batch Forum
- Topic: list files from DIR line and hiding extensions (Batch)
- Replies: 14
- Views: 10417
Re: list files from DIR line and hiding extensions (Batch)
That seems to have done it - The only issue i have is that for some reasen it dosn't capture special characters... so i need a way of ignoring them prior to capturing this data for example running the command i get: c:\OJW\COMPLETED_ALBUM\Test Album\Accuser - Burn when i should get: c:\OJW\COMPLETED...
- 15 Apr 2012 08:22
- Forum: DOS Batch Forum
- Topic: list files from DIR line and hiding extensions (Batch)
- Replies: 14
- Views: 10417
Re: list files from DIR line and hiding extensions (Batch)
I'll try and work it now ... Thanks foxi..
- 15 Apr 2012 08:18
- Forum: DOS Batch Forum
- Topic: list files from DIR line and hiding extensions (Batch)
- Replies: 14
- Views: 10417
Re: list files from DIR line and hiding extensions (Batch)
Thanks - I am v.interested... but not as gifted as some of you guys with understanding the exact science behind every command.... I get the gist of whats going on and in most cases its a small mistake in a command that trips me up... I think it takes time to really understand what's going on and onl...
- 15 Apr 2012 06:39
- Forum: DOS Batch Forum
- Topic: list files from DIR line and hiding extensions (Batch)
- Replies: 14
- Views: 10417
Re: list files from DIR line and hiding extensions (Batch)
Hi squashman - The premise is v.similar but i've never removed the file extension from the search which is the key requirement - There is also nothing within the help for dir /? that is obvious that removes the extension.
Foxi - Awesome! Works a treat as always! Thanks!
Foxi - Awesome! Works a treat as always! Thanks!
- 14 Apr 2012 18:43
- Forum: DOS Batch Forum
- Topic: list files from DIR line and hiding extensions (Batch)
- Replies: 14
- Views: 10417
list files from DIR line and hiding extensions (Batch)
Hi guys, another connundrum... Im trying to perform the following command at the prompt: dir /s /b c:\ojw\completed_album\*.wav But want to hide the .wav in the results and output to a text file... It seems it's doable... m but i'll be damned if i can get the working command! Given the command dir /...
- 13 Apr 2012 10:17
- Forum: DOS Batch Forum
- Topic: Reading from 3 files to create a command...
- Replies: 9
- Views: 6400
Re: Reading from 3 files to create a command...
I'll try it when i get home tonight!
Thanks Foxi...
Thanks Foxi...
- 13 Apr 2012 08:20
- Forum: DOS Batch Forum
- Topic: Reading from 3 files to create a command...
- Replies: 9
- Views: 6400
Re: Reading from 3 files to create a command...
Lol ... I'm 99% of the way there... although im sure this could be a LOT cleaner! @echo off setlocal EnableDelayedExpansion dir /s /b c:\ojw\temp\ape\*.wav >c:\ojw\logs\APE_fullpath.txt dir /s /b c:\ojw\temp\ape\*.cue >c:\ojw\logs\APE_cuefullpath.txt dir /b c:\ojw\temp\ape >c:\ojw\logs\APE_albumfold...
- 13 Apr 2012 04:26
- Forum: DOS Batch Forum
- Topic: Reading from 3 files to create a command...
- Replies: 9
- Views: 6400
Reading from 3 files to create a command...
Hi guys, In a similar vein to a previous query that i had i've got a situation where i need to read information from 3 files to build a command to be run... The three files contain pathnames on different lines and i simply need a loop to call the whole line of data from each of the files and echo it...
- 12 Apr 2012 14:07
- Forum: DOS Batch Forum
- Topic: Batch question on deleting!
- Replies: 28
- Views: 18645
Re: Batch question on deleting!
Sure thing - Will do.
Thanks again..
Stay posted, im sure i'll hit another conundrum in a day or so!
Thanks again..
Stay posted, im sure i'll hit another conundrum in a day or so!
- 12 Apr 2012 09:48
- Forum: DOS Batch Forum
- Topic: Batch question on deleting!
- Replies: 28
- Views: 18645
Re: Batch question on deleting!
That is beautifully simpler!
Just stuck that in and it works like a charm! Thanks so much guys!
I'm sure it's not the last hurdle but thanks so much or the help on this!
Just stuck that in and it works like a charm! Thanks so much guys!
I'm sure it's not the last hurdle but thanks so much or the help on this!
- 12 Apr 2012 08:59
- Forum: DOS Batch Forum
- Topic: Batch question on deleting!
- Replies: 28
- Views: 18645
Re: Batch question on deleting!
Sure. At this stage in the batch two DIR's are run and output to two files DIR /B /S c:\OJW\TEMP\APE\*.ape >>c:\OJW\LOGS\MONKEYSPATH1.TXT DIR /B c:\OJW\TEMP\APE >>c:\OJW\LOGS\MONKEYSPATH2.TXT MONKEYSPATH1.TXT = Is a list of the FULL pathnames to the files that will be processed by monkeys audio deco...
- 12 Apr 2012 07:27
- Forum: DOS Batch Forum
- Topic: Batch question on deleting!
- Replies: 28
- Views: 18645
Re: Batch question on deleting!
Sorry my batch isnt that strong yet! I've just worked it into my code and can see where i went wrong... its now outputting the data to screen... Any idea how i could refer to the variables when there needed within the command i plan on using in the post above? Eg. c:\tools\decompress.exe %var1% c:\c...