Works perfectly for [ and ].
Would i be able to adjust this to replace
- page
with
_page
Many thanks
Paul
Search found 8 matches
- 09 Jul 2013 05:26
- Forum: DOS Batch Forum
- Topic: Remove [] from file name
- Replies: 4
- Views: 4589
- 08 Jul 2013 08:51
- Forum: DOS Batch Forum
- Topic: Remove [] from file name
- Replies: 4
- Views: 4589
Remove [] from file name
Hi
I have a number of files in a folder like below:
200002 - [20130708] - Test1
258258 - [20130907] - Test2
Is it possible to remove the [ and ] so i would be left with:
200002 - 20130708 - Test1
258258 - 20130907 - Test2
Many thanks
Paul
I have a number of files in a folder like below:
200002 - [20130708] - Test1
258258 - [20130907] - Test2
Is it possible to remove the [ and ] so i would be left with:
200002 - 20130708 - Test1
258258 - 20130907 - Test2
Many thanks
Paul
- 14 Jan 2013 13:06
- Forum: DOS Batch Forum
- Topic: Rename files
- Replies: 4
- Views: 4049
Re: Rename files
Cheers guy that worked a treat.
However, some idiot (yes me!) used the naming _PF_ instead of _PS_. Is there a way to replace _PF_ with _PS_ in the file name?
Cheers
Paul
However, some idiot (yes me!) used the naming _PF_ instead of _PS_. Is there a way to replace _PF_ with _PS_ in the file name?
Cheers
Paul
- 10 Jan 2013 15:54
- Forum: DOS Batch Forum
- Topic: Rename files
- Replies: 4
- Views: 4049
Rename files
Hi In a folder i have a number of files which i would like to rename. They are currently named like this: 111111_1 111111_2 111111_3 33333333_1 33333333_2 I would like them to be outputted like so: 0000111111_PF_20130110_1 0000111111_PF_20130110_2 0000111111_PF_20130110_3 0003333333_PF_20130110_1 00...
- 26 Nov 2012 07:10
- Forum: DOS Batch Forum
- Topic: File name and size
- Replies: 4
- Views: 3602
File name and size
Hi I have the following code that will give me the file name and size when run directly from the command prompt: for %l in (readme.txt) do echo %~nl %~zl BYTES >> C:\Paul\output.txt This puts the details in the output document fine. However when i put this in a batch file it no longer works. c: cd\ ...
- 20 Oct 2011 03:29
- Forum: DOS Batch Forum
- Topic: Batch File Menu
- Replies: 6
- Views: 7536
Re: Batch File Menu
Hi Dave This works a treat – many thanks for this. Just a quick question – would it be possible to add an option after the selection from the folder? e.g. test1.sql (from test folder) test2.sql (from test folder) test3.sql (from test folder) Press Q to quit (go to :QUIT in batch file) Press M to go...
- 19 Oct 2011 03:26
- Forum: DOS Batch Forum
- Topic: Batch File Menu
- Replies: 6
- Views: 7536
Batch File Menu
Hi I am creating a batch file used to run a number of SQL’s. Is it possible to have a batch file menu that will populate on the contents of a folder? e.g. I have a folder C:\test containing: test1.sql test2.sql test3.sql I would like a menu which would ask me to select one of these files. Based on m...
- 17 Oct 2011 05:21
- Forum: DOS Batch Forum
- Topic: using cmd /foff in batch file
- Replies: 1
- Views: 2944
using cmd /foff in batch file
Hi
I am trying to use 'cmd /foff' in a simple batch file but all it runs is this and nothing else after it.
Any ideas what im doing wrong?
Many thanks
Paul
I am trying to use 'cmd /foff' in a simple batch file but all it runs is this and nothing else after it.
Any ideas what im doing wrong?
Many thanks
Paul