Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Store Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems.

Go Back   Vista Forums > Vista Newsgroups > Vista General

DOS Command

Reply
 
Thread Tools Display Modes
Old 05-11-2008   #1 (permalink)
Marv
Guest
 
Posts: n/a

DOS Command

I realize this may be off topic but I don't find any place to post it. I am
trying to do a DOS coy command that combines a number of files into single
one.

This syntax works if I am in the directory where the files are located:

Copy *.csv Prices.txt

But if I am in another folder and try to put a path to it like

copy C:\Finance\Mutual Funds\Get Prices\*.csv Prices.txt

It always says it cannot find the file. I KNOW the location IS correct. Is
there some error in the syntax that can cause this?

Thanks for any assistance.

Marv


  Reply With Quote

Old 05-11-2008   #2 (permalink)
Michael Walraven
Guest
 
Posts: n/a

Re: DOS Command

Try putting quote marks around the parts (the space in Mutual Funds and Get
Prices is probably what is hurting you).
copy "C:\Finance\Mutual Funds\Get Prices\*.csv" "Prices.txt"

Michael


"Marv" <marvwade@xxxxxx> wrote in message
news:ec$DbG7sIHA.4952@xxxxxx
Quote:

> I realize this may be off topic but I don't find any place to post it. I
> am trying to do a DOS coy command that combines a number of files into
> single one.
>
> This syntax works if I am in the directory where the files are located:
>
> Copy *.csv Prices.txt
>
> But if I am in another folder and try to put a path to it like
>
> copy C:\Finance\Mutual Funds\Get Prices\*.csv Prices.txt
>
> It always says it cannot find the file. I KNOW the location IS correct.
> Is there some error in the syntax that can cause this?
>
> Thanks for any assistance.
>
> Marv
>
>
  Reply With Quote
Old 05-11-2008   #3 (permalink)
Newbie
codes is on a distinguished road
 
codes's Avatar
 
Join Date: May 2008
Vista Business x64
Posts: 7

Re: DOS Command

You need to use quotes due to spaces between directory folder names.
Code:
 
copy "C:\Finance\Mutual Funds\Get Prices\*.csv" Prices.txt
codes is offline   Reply With Quote
Old 05-11-2008   #4 (permalink)
Synapse Syndrome
Guest
 
Posts: n/a

Re: DOS Command

"Michael Walraven" <mexxwalraven@xxxxxx> wrote in message >> I realize
this may be off topic but I don't find any place to post it. I
Quote:
Quote:

>> am trying to do a DOS coy command that combines a number of files into
>> single one.
>>
>> This syntax works if I am in the directory where the files are located:
>>
>> Copy *.csv Prices.txt
>>
>> But if I am in another folder and try to put a path to it like
>>
>> copy C:\Finance\Mutual Funds\Get Prices\*.csv Prices.txt
>>
>> It always says it cannot find the file. I KNOW the location IS correct.
>> Is there some error in the syntax that can cause this?
>
> Try putting quote marks around the parts (the space in Mutual Funds and
> Get Prices is probably what is hurting you).
> copy "C:\Finance\Mutual Funds\Get Prices\*.csv" "Prices.txt"
Yeah, but he only needs the first pair of quotes, in that example.

ss.


  Reply With Quote
 
Reply

Thread Tools
Display Modes









Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48