Search found 11 matches

by haggy
18 Jan 2024 13:13
Forum: DOS Batch Forum
Topic: How to copy a txt file into multiple txt files in a destination folder
Replies: 3
Views: 10106

How to copy a txt file into multiple txt files in a destination folder

Hello All,
I tried copying the content of a txt file into multiple txt files in a destination folder but not getting the expected result. I've tried :
"Copy my file.txt floder\×.txt" but it's not updating all the txt files. Can someone help me out?
by haggy
31 Mar 2021 04:39
Forum: DOS Batch Forum
Topic: Howto: Renaming of files in a folder
Replies: 2
Views: 3989

Re: Howto: Renaming of files in a folder

Thank you very much for the resque.
by haggy
29 Mar 2021 09:09
Forum: DOS Batch Forum
Topic: Howto: Renaming of files in a folder
Replies: 2
Views: 3989

Howto: Renaming of files in a folder

Hi, I want to rename all the files in a folder by removing substring of the files name. 1. i want to remove all the "[NLRC]steed]" and "[NLRC]]teed]" from the files name 2. Find below the image of the file names in the folder. Volume in drive C has no label. Volume Serial Number is 9436-4BDD Directo...
by haggy
09 Sep 2018 03:21
Forum: DOS Batch Forum
Topic: Cmdwiz - 54 operation cmd helper tool (now with Unicode)
Replies: 65
Views: 192788

Re: Cmdwiz - cmd helper tools (now with Unicode)

Yikes. Thanks Mediafire. I'm going to have to do something about that. EDIT: It might take some time for Mediafire to reply, so I attached a smaller archive here for now. In order to stay below the 100kb limit, it contains only cmdwiz.exe, cmdwiz-ascii.exe, and two example scripts. EDIT: Haggy, I s...
by haggy
07 Sep 2018 05:46
Forum: DOS Batch Forum
Topic: Cmdwiz - 54 operation cmd helper tool (now with Unicode)
Replies: 65
Views: 192788

Re: Cmdwiz - cmd helper tools (now with Unicode)

Nice job you have done. Please note that the archive cant be downloaded. can you please send to my mail. hakeemakinde@yahoo.com. Thanks
by haggy
04 Jun 2018 05:29
Forum: DOS Batch Forum
Topic: Any way to send log file or txt file into email
Replies: 5
Views: 6741

Re: Any way to send log file or txt file into email

You may want to have a look at this tool . it is an external prog though but scriptable.

https://retired.beyondlogic.org/consult ... nemail.htm
by haggy
25 May 2018 16:15
Forum: DOS Batch Forum
Topic: How do i move files from series of folders
Replies: 7
Views: 7124

Re: How do i move files from series of folders

By root folder i mean the upper folder. Take this scenario: mkdir a cd a mkdir b cd b move txtfile ../ "Dir a is the upper folder" I need the to enter a folder and move the file to the upper folder. Thanks. Directory "A" is the upper. All i want to achieve is enter the folders and move out the file...
by haggy
25 May 2018 15:24
Forum: DOS Batch Forum
Topic: How do i move files from series of folders
Replies: 7
Views: 7124

Re: How do i move files from series of folders

By root folder i mean the upper folder. Take this scenario:

mkdir a
cd a
mkdir b
cd b
move txtfile ../

"Dir a is the upper folder" I need the to enter a folder and move the file to the upper folder. Thanks.
by haggy
25 May 2018 14:44
Forum: DOS Batch Forum
Topic: How do i move files from series of folders
Replies: 7
Views: 7124

Re: How do i move files from series of folders

Yes . i ran it from command line.
I actually intend it to be a generic script regardless of wherever i'm running it from. it should be able to access each folder and move out the file to the upper folder.
by haggy
25 May 2018 04:36
Forum: DOS Batch Forum
Topic: How do i move files from series of folders
Replies: 7
Views: 7124

Re: How do i move files from series of folders

Thank you phil for this though it doesn't work for me. it throws error "%%i was unexpected at this time." and secondly i want a scenario where i don't have an fore knowledge what the root-folder is. can i do?

Code: Select all

PushD ..
For /r %%i in (*) do if "%%~fi" neq "%~f0" if NOT exist %%~nxi move "%%i"
Popd
by haggy
24 May 2018 04:03
Forum: DOS Batch Forum
Topic: How do i move files from series of folders
Replies: 7
Views: 7124

How do i move files from series of folders

Hi All, I've got series of folders in a folder(Root) and in these folders exist one file each. I'm trying to move each file from thier corresponding folders to the main root folder(Root). I have tried this but not yeilding. @echo off rem For each folder in your folders for /R %%~dp0 %%i in (.) do ( ...