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

Re: DOS Command by Michael

Michael
Sun May 11 15:15:21 PDT 2008

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@columbus.rr.com> wrote in message
news:ec$DbG7sIHA.4952@TK2MSFTNGP05.phx.gbl...
> 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
>
>

Re: DOS Command by Synapse

Synapse
Sun May 11 15:23:17 PDT 2008

"Michael Walraven" <mexxwalraven@verizon.not> wrote in message >> 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?
>
> 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.



Re: DOS Command by codes

codes
Sun May 11 15:19:22 PDT 2008


You need to use quotes due to spaces between directory folder names.

Code:
--------------------

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

--------------------


--
codes

Re: DOS Command by I_Am_The_Walrus

I_Am_The_Walrus
Sun May 11 15:43:10 PDT 2008

On 2008-05-11, Marv <marvwade@columbus.rr.com> wrote:
> 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
>
>

Put quotes around the first part. DOS doesn't like long file names
or filenames with spaces in them.


--
* I am the walrus. *
* RLU 451587 *
* Running Vista Ultimate SP1 and Ubuntu Gutsy Gibbon *
* Sea creatures unite and take back usenet http://improve-usenet.org/ *