WUGNET, the Windows User Group Network
Your Complete Resource Center for "The Best" in Shareware, Computing Tips and Support, Windows Industry News... and much more!
Home Forums Shareware Windows Tips Hot Offers FREE Newsletters Arcade Contact Us About Partners
Search WUGNET: RSS Feeds RSS Feeds Advertise with WUGNET    |    Shareware eBooks
HomeHome FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

DOS Command

 
   Home -> Vista -> General Discussions RSS
Next:  Outlook Calendar 2003 to Vista Calendar  
Author Message
Marv

External


Since: Jun 29, 2007
Posts: 11



(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

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
Back to top
Login to vote
codes

External


Since: May 11, 2008
Posts: 4



(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.

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

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

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


--
codes
Back to top
Login to vote
Michael Walraven

External


Since: Nov 15, 2007
Posts: 280



(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
>
>
Back to top
Login to vote
I_Am_The_Walrus

External


Since: Apr 21, 2008
Posts: 4



(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/ *
Back to top
Login to vote
Synapse Syndrome

External


Since: Mar 02, 2008
Posts: 1094



(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.

ss.
Back to top
Login to vote
Display posts from previous:   
       Home -> Vista -> General Discussions 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
Categories:
 Windows XP
  Windows Vista
 Windows Other
 Office
 Office Other
 Security
 WinRAR
  • Home |
  • Shareware |
  • Windows Tips |
  • Hot Offers |
  • FREE Newsletters |
  • Arcade |
  • Forums |
  • eBooks |
  • About WUGNET |
  • Partners |
  • Contact

  • WUGNET Privacy Policy |
  • Link to WUGNET