Page 1 of 1 1
Topic Options
#36863 - 2003-02-23 11:09 PM Search by file extension
itnewbie Offline
Lurker

Registered: 2003-02-23
Posts: 2
Loc: home
I am wondering if there is a basic script that i can run to copy data from a pc by capturing it's file extension?

Any input on this would be helpful.

Thanks!

Top
#36864 - 2003-02-23 11:15 PM Re: Search by file extension
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
Please give more details and an example of what you want to do.
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#36865 - 2003-02-23 11:18 PM Re: Search by file extension
itnewbie Offline
Lurker

Registered: 2003-02-23
Posts: 2
Loc: home
Example would be to copy *.doc,.xls,.ppt etc... to a server share.
Top
#36866 - 2003-02-23 11:23 PM Re: Search by file extension
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
If all you want to is copy files then check out the doc and read the COPY command.
code:
Copy

Action: Copies one or more files.

Syntax: COPY "source" "destination" [/h]

Remarks: Wildcards are supported.
If a file already exists at the destination, it is overwritten without warning.
The /h option can be used to include files with the hidden or system attribute set in the copy.



_________________________
Home page: http://www.kixhelp.com/hb/

Top
#36867 - 2003-02-24 04:12 AM Re: Search by file extension
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
You could also do this in a batch file, no need for KiXtart if it's just simple file copying. Take a lok at
code:
xcopy /?
robocopy /?
rem robocopy is part of the Windows ResourceKit

_________________________
There are two types of vessels, submarines and targets.

Top
#36868 - 2003-02-24 02:36 PM Re: Search by file extension
Waltz Offline
Seasoned Scripter

Registered: 2002-08-01
Posts: 485
Loc: Waterloo, Ontario, Canada
This thread may give you some ideas for copying files with specific extensions...
Xcopy and excluding files
_________________________
We all live in a Yellow Subroutine...

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 2175 anonymous users online.
Newest Members
fgarcia, Viginette, ManuvdWielNL, Sir_Barrington, batdk82
17889 Registered Users

Generated in 0.17 seconds in which 0.127 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org