(Msg. 1) Posted: Sun May 11, 2008 5:54 pm
Post subject: DOS Command Archived from groups: microsoft>public>windows>vista>general (more info?)
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
(Msg. 2) Posted: Sun May 11, 2008 5:54 pm
Post subject: Re: DOS Command [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
You need to use quotes due to spaces between directory folder names.
(Msg. 3) Posted: Sun May 11, 2008 6:15 pm
Post subject: Re: DOS Command [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
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.RemoveThis@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
>
>
(Msg. 4) Posted: Sun May 11, 2008 10:43 pm
Post subject: Re: DOS Command [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
On 2008-05-11, Marv <marvwade RemoveThis @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/ *
(Msg. 5) Posted: Sun May 11, 2008 11:23 pm
Post subject: Re: DOS Command [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
"Michael Walraven" <mexxwalraven RemoveThis @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.
All times are: Eastern Time (US & Canada) (change)
Page 1 of 1
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum