Thread View: alt.games.thief-dark-project
8 messages
8 total messages
Started by John Webb
Sat, 08 Apr 2006 09:38
Batch file
Author: John Webb
Date: Sat, 08 Apr 2006 09:38
Date: Sat, 08 Apr 2006 09:38
4 lines
1181 bytes
1181 bytes
A few years ago while visiting one of the FM websites I ran across a batch file that would strip the leading contest numbers from all the FM files in your directory. For example "c2020_XXXXXX.ZIP". I can't seem to locate this file again. Can someone tell me where I can find it? Thanks!
Re: Batch file
Author: Anders Thulin
Date: Sat, 08 Apr 2006 11:46
Date: Sat, 08 Apr 2006 11:46
19 lines
1735 bytes
1735 bytes
John Webb wrote:
> A few years ago while visiting one of the FM websites I ran across a batch
> file that would strip the leading contest numbers from all the FM files in
> your directory. For example "c2020_XXXXXX.ZIP". I can't seem to locate this
> file again. Can someone tell me where I can find it? Thanks!
Look for batch file rename utilities, and check out what kind of file name
rewriting they can use.
On Windows, I occasionally use one by Softech Intercorp called BatchRename ...
in your case the trick seems to be to use
{Split(_,2) + <no extension>
as new file name. The wizard mode shows how the files will be renamed, so it's
easy to experiment.
--
Anders Thulin ath*algonet.se http://www.algonet.se/~ath
Re: Batch file
Author: Spud
Date: Sat, 08 Apr 2006 14:13
Date: Sat, 08 Apr 2006 14:13
23 lines
2167 bytes
2167 bytes
On Sat, 08 Apr 2006 11:46:08 GMT, Anders Thulin
<ath_no_spam_please@algonet.se> wrote:
>John Webb wrote:
>> A few years ago while visiting one of the FM websites I ran across a batch
>> file that would strip the leading contest numbers from all the FM files in
>> your directory. For example "c2020_XXXXXX.ZIP". I can't seem to locate this
>> file again. Can someone tell me where I can find it? Thanks!
>
> Look for batch file rename utilities, and check out what kind of file name
>rewriting they can use.
>
> On Windows, I occasionally use one by Softech Intercorp called BatchRename ...
>in your case the trick seems to be to use
>
> {Split(_,2) + <no extension>
>
>as new file name. The wizard mode shows how the files will be renamed, so it's
>easy to experiment.
The DOs command C: > ren c2020_*,zip *.zip should do it. Experiment
first though, I tried with XP pseudo DOS and it works OK with that.
Re: Batch file
Author: Michael Cecil
Date: Sat, 08 Apr 2006 15:28
Date: Sat, 08 Apr 2006 15:28
32 lines
2491 bytes
2491 bytes
On Sat, 08 Apr 2006 15:13:21 +0100, Spud <spud@tatties.com> wrote:
>On Sat, 08 Apr 2006 11:46:08 GMT, Anders Thulin
><ath_no_spam_please@algonet.se> wrote:
>
>>John Webb wrote:
>>> A few years ago while visiting one of the FM websites I ran across a batch
>>> file that would strip the leading contest numbers from all the FM files in
>>> your directory. For example "c2020_XXXXXX.ZIP". I can't seem to locate this
>>> file again. Can someone tell me where I can find it? Thanks!
>>
>> Look for batch file rename utilities, and check out what kind of file name
>>rewriting they can use.
>>
>> On Windows, I occasionally use one by Softech Intercorp called BatchRename ...
>>in your case the trick seems to be to use
>>
>> {Split(_,2) + <no extension>
>>
>>as new file name. The wizard mode shows how the files will be renamed, so it's
>>easy to experiment.
>
>
>The DOs command C: > ren c2020_*,zip *.zip should do it. Experiment
>first though, I tried with XP pseudo DOS and it works OK with that.
Why not get the prefix remover from Komag. He's the one who hosts those
contests anyways. http://www.keepofmetalandgold.com/files/removeprefix.zip
--
Michael Cecil
http://home.comcast.net/~macecil/
http://home.comcast.net/~safehex/
Re: Batch file
Author: John Webb
Date: Mon, 10 Apr 2006 10:31
Date: Mon, 10 Apr 2006 10:31
47 lines
2838 bytes
2838 bytes
"Michael Cecil" <macecil@comcast.net> wrote in message
news:1jlf32ddouhcic16oub373iuk51p1veu0t@4ax.com...
> On Sat, 08 Apr 2006 15:13:21 +0100, Spud <spud@tatties.com> wrote:
>
>>On Sat, 08 Apr 2006 11:46:08 GMT, Anders Thulin
>><ath_no_spam_please@algonet.se> wrote:
>>
>>>John Webb wrote:
>>>> A few years ago while visiting one of the FM websites I ran across a
>>>> batch
>>>> file that would strip the leading contest numbers from all the FM files
>>>> in
>>>> your directory. For example "c2020_XXXXXX.ZIP". I can't seem to locate
>>>> this
>>>> file again. Can someone tell me where I can find it? Thanks!
>>>
>>> Look for batch file rename utilities, and check out what kind of file
>>> name
>>>rewriting they can use.
>>>
>>> On Windows, I occasionally use one by Softech Intercorp called
>>> BatchRename ...
>>>in your case the trick seems to be to use
>>>
>>> {Split(_,2) + <no extension>
>>>
>>>as new file name. The wizard mode shows how the files will be renamed, so
>>>it's
>>>easy to experiment.
>>
>>
>>The DOs command C: > ren c2020_*,zip *.zip should do it. Experiment
>>first though, I tried with XP pseudo DOS and it works OK with that.
>
> Why not get the prefix remover from Komag. He's the one who hosts those
> contests anyways. http://www.keepofmetalandgold.com/files/removeprefix.zip
> --
> Michael Cecil
> http://home.comcast.net/~macecil/
> http://home.comcast.net/~safehex/
The file from Komag was the one I was looking for, but it doesn't work. I
copied it into the folders that contain the prefixed files and ran the batch
file. The text in the dos window runs so fast it is unreadable, but I think
I detected a "file not found" error.
John
Re: Batch file
Author: Michael Cecil
Date: Mon, 10 Apr 2006 13:45
Date: Mon, 10 Apr 2006 13:45
56 lines
3386 bytes
3386 bytes
On Mon, 10 Apr 2006 06:31:45 -0400, "John Webb" <jwebb7@cox.net> wrote:
>
>"Michael Cecil" <macecil@comcast.net> wrote in message
>news:1jlf32ddouhcic16oub373iuk51p1veu0t@4ax.com...
>> On Sat, 08 Apr 2006 15:13:21 +0100, Spud <spud@tatties.com> wrote:
>>
>>>On Sat, 08 Apr 2006 11:46:08 GMT, Anders Thulin
>>><ath_no_spam_please@algonet.se> wrote:
>>>
>>>>John Webb wrote:
>>>>> A few years ago while visiting one of the FM websites I ran across a
>>>>> batch
>>>>> file that would strip the leading contest numbers from all the FM files
>>>>> in
>>>>> your directory. For example "c2020_XXXXXX.ZIP". I can't seem to locate
>>>>> this
>>>>> file again. Can someone tell me where I can find it? Thanks!
>>>>
>>>> Look for batch file rename utilities, and check out what kind of file
>>>> name
>>>>rewriting they can use.
>>>>
>>>> On Windows, I occasionally use one by Softech Intercorp called
>>>> BatchRename ...
>>>>in your case the trick seems to be to use
>>>>
>>>> {Split(_,2) + <no extension>
>>>>
>>>>as new file name. The wizard mode shows how the files will be renamed, so
>>>>it's
>>>>easy to experiment.
>>>
>>>
>>>The DOs command C: > ren c2020_*,zip *.zip should do it. Experiment
>>>first though, I tried with XP pseudo DOS and it works OK with that.
>>
>> Why not get the prefix remover from Komag. He's the one who hosts those
>> contests anyways. http://www.keepofmetalandgold.com/files/removeprefix.zip
>> --
>> Michael Cecil
>> http://home.comcast.net/~macecil/
>> http://home.comcast.net/~safehex/
>
>The file from Komag was the one I was looking for, but it doesn't work. I
>copied it into the folders that contain the prefixed files and ran the batch
>file. The text in the dos window runs so fast it is unreadable, but I think
>I detected a "file not found" error.
>John
>
Open a command prompt window first, that way it won't close. Then run the
batch file. Maybe you'll get more feedback doing it that way.
--
Michael Cecil
http://home.comcast.net/~macecil/
http://home.comcast.net/~safehex/
Re: Batch file
Author: John Webb
Date: Mon, 10 Apr 2006 14:23
Date: Mon, 10 Apr 2006 14:23
74 lines
3859 bytes
3859 bytes
"Michael Cecil" <macecil@comcast.net> wrote in message
news:0aok32dnjhghhani6q9vvmk71m6hk0bm47@4ax.com...
> On Mon, 10 Apr 2006 06:31:45 -0400, "John Webb" <jwebb7@cox.net> wrote:
>
>>
>>"Michael Cecil" <macecil@comcast.net> wrote in message
>>news:1jlf32ddouhcic16oub373iuk51p1veu0t@4ax.com...
>>> On Sat, 08 Apr 2006 15:13:21 +0100, Spud <spud@tatties.com> wrote:
>>>
>>>>On Sat, 08 Apr 2006 11:46:08 GMT, Anders Thulin
>>>><ath_no_spam_please@algonet.se> wrote:
>>>>
>>>>>John Webb wrote:
>>>>>> A few years ago while visiting one of the FM websites I ran across a
>>>>>> batch
>>>>>> file that would strip the leading contest numbers from all the FM
>>>>>> files
>>>>>> in
>>>>>> your directory. For example "c2020_XXXXXX.ZIP". I can't seem to
>>>>>> locate
>>>>>> this
>>>>>> file again. Can someone tell me where I can find it? Thanks!
>>>>>
>>>>> Look for batch file rename utilities, and check out what kind of
>>>>> file
>>>>> name
>>>>>rewriting they can use.
>>>>>
>>>>> On Windows, I occasionally use one by Softech Intercorp called
>>>>> BatchRename ...
>>>>>in your case the trick seems to be to use
>>>>>
>>>>> {Split(_,2) + <no extension>
>>>>>
>>>>>as new file name. The wizard mode shows how the files will be renamed,
>>>>>so
>>>>>it's
>>>>>easy to experiment.
>>>>
>>>>
>>>>The DOs command C: > ren c2020_*,zip *.zip should do it. Experiment
>>>>first though, I tried with XP pseudo DOS and it works OK with that.
>>>
>>> Why not get the prefix remover from Komag. He's the one who hosts those
>>> contests anyways.
>>> http://www.keepofmetalandgold.com/files/removeprefix.zip
>>> --
>>> Michael Cecil
>>> http://home.comcast.net/~macecil/
>>> http://home.comcast.net/~safehex/
>>
>>The file from Komag was the one I was looking for, but it doesn't work. I
>>copied it into the folders that contain the prefixed files and ran the
>>batch
>>file. The text in the dos window runs so fast it is unreadable, but I
>>think
>>I detected a "file not found" error.
>>John
>>
> Open a command prompt window first, that way it won't close. Then run the
> batch file. Maybe you'll get more feedback doing it that way.
> --
> Michael Cecil
> http://home.comcast.net/~macecil/
> http://home.comcast.net/~safehex/
I did that and the message was, indeed, "file not found". I renamed the .cmd
file to a .txt file and opened it, and found that the batch file has a long
list of FMs to rename. My problem is that FMs created after the batch file
was created won't be affected. I guess I should check into a batch file that
uses wildcards, such as mentioned earlier in the thread. What are your
thoughts?
John Webb
Re: Batch file
Author: Michael Cecil
Date: Mon, 10 Apr 2006 19:43
Date: Mon, 10 Apr 2006 19:43
16 lines
2000 bytes
2000 bytes
On Mon, 10 Apr 2006 10:23:18 -0400, "John Webb" <jwebb7@cox.net> wrote: >I did that and the message was, indeed, "file not found". I renamed the .cmd >file to a .txt file and opened it, and found that the batch file has a long >list of FMs to rename. My problem is that FMs created after the batch file >was created won't be affected. I guess I should check into a batch file that >uses wildcards, such as mentioned earlier in the thread. What are your >thoughts? >John Webb Why not email Komag himself about the problem. Maybe he has a newer batch file? -- Michael Cecil http://home.comcast.net/~macecil/ http://home.comcast.net/~safehex/
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads