Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista General Discussion > DOS Command

Reply
 
 
Marv
Guest
Posts: n/a

 
      05-11-2008
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
 
 
 
 
Michael Walraven
Guest
Posts: n/a

 
      05-11-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" <> wrote in message
news:ec$...
> 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
 
codes
Guest
Posts: n/a

 
      05-11-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
 
Reply With Quote
 
Synapse Syndrome
Guest
Posts: n/a

 
      05-11-2008
"Michael Walraven" <> 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.


 
Reply With Quote
 
I_Am_The_Walrus
Guest
Posts: n/a

 
      05-11-2008
On 2008-05-11, Marv <> 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/ *
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
RUN command in SP1 Martin Racette Windows Vista General Discussion 34 03-24-2008 04:45 AM
some cmd command qsn Ghung Windows Vista General Discussion 2 03-02-2008 10:12 PM
Run command: Piet Windows Vista General Discussion 6 02-26-2008 03:06 PM
run command Martin Windows Vista General Discussion 3 04-24-2007 08:10 PM
Run Command TonySper Windows Vista General Discussion 7 03-24-2007 01:13 PM



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 49 50 51 52 53 54 55 56 57 58 59