Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Vista Newsgroups > Vista General

DOS Command

Update your Vista Drivers Update Your Drivers Now!!
Closed Thread
 
Thread Tools Display Modes
Old 05-11-2008   #1 (permalink)
Marv
Guest


 

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



My System SpecsSystem Spec
Old 05-11-2008   #2 (permalink)
Michael Walraven
Guest


 

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
>
>
My System SpecsSystem Spec
Old 05-11-2008   #3 (permalink)
codes's Avatar
Newbie


Join Date: May 2008
Vista Business x64
 
Rep Power: 4
codes is on a distinguished road
  codes is offline

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
My System SpecsSystem Spec
Old 05-11-2008   #4 (permalink)
Synapse Syndrome
Guest


 

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.


My System SpecsSystem Spec
Closed Thread
Update your Vista Drivers Update Your Drivers Now!!

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
Command Line Ren (Rename) command broken? SixSigmaGuy Vista General 5 05-20-2008 05:52 AM
Command prompt "COPY" command not working in brand new Windows Vis CMD COPY command not working in Vista Vista file management 7 02-05-2008 03:20 PM
formatting command syntax like get-help or get-command klumsy@xtra.co.nz PowerShell 1 10-18-2006 12:04 PM
net use command =?Utf-8?B?Z2xlbm5fOTcxMjQ=?= Vista General 2 08-07-2006 03:48 PM
Executing a command like run [command] Singee PowerShell 5 06-05-2006 02:17 PM


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 49 50 51