Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: can we find a file inside one directory and copy?  (Read 2152 times)

0 Members and 1 Guest are viewing this topic.

mala_un

  • Guest
can we find a file inside one directory and copy?
« on: July 27, 2006, 08:30:12 PM »
can we find a file inside one directory which contains many files and copy the file into another file?

i'm running Windows 98 (4.10.2222)...

thanks in advance

uli_glueck

  • Guest
Re: can we find a file inside one directory and co
« Reply #1 on: July 28, 2006, 12:32:16 AM »
set source=Name and place of the file you search
set target=target folder

for %%a in (dir /b %source%) do xcopy %%a %target%

hope it helps
uli
« Last Edit: July 28, 2006, 12:32:57 AM by uli_glueck »

mala_un

  • Guest
Re: can we find a file inside one directory and co
« Reply #2 on: July 28, 2006, 02:46:42 AM »
it's working man...

thanks..