Windows XP Community - XPHeads



Move command XP

microsoft.public.windowsxp.basics


Reply
  #1 (permalink)  
Old 03-24-2008, 01:21 PM
Oni
 
Posts: n/a
Move command XP
Hi i'm trying to figure out the MOVE command using the command line. My
understanding is that it can be used to move several files and I can
accomplish this by using wildcards . But when trying to move 2 or 3 files
with different extensions separating the files with "," it fails saying
syntax is incorrect. Any tips?
--
Regards
Oni
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 03-24-2008, 01:58 PM
VanguardLH
 
Posts: n/a
Re: Move command XP
"Oni" wrote in message
news:1EA76130-8F7B-474F-85B9-7305A78DE69D@microsoft.com...
> Hi i'm trying to figure out the MOVE command using the command line.
> My
> understanding is that it can be used to move several files and I can
> accomplish this by using wildcards . But when trying to move 2 or 3
> files
> with different extensions separating the files with "," it fails
> saying
> syntax is incorrect. Any tips?



If there are spaces in the paths or filenames to the files, you will
have to enclose them within double-quotes; otherwise, the spaces screw
up the parsing of the command line. Allowing spaces in path and file
names was a stupid idea by both Microsoft and UNIX operating systems.
Many programs, even some that come with the OS, don't like them.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 03-24-2008, 03:49 PM
Oni
 
Posts: n/a
Re: Move command XP
Thanks for the explanation, but i still cannot accomplish this.
Lets say i have the following 2 folders "test" "test1" located on my Z drive
Default all files are placed in the "test" folder but I want certain files
*.mdb *.xls *.txt moved to "test1" from "test".

Can you provide an example?

Thanks in advance
--
Regards
Oni


"VanguardLH" wrote:

> "Oni" wrote in message
> news:1EA76130-8F7B-474F-85B9-7305A78DE69D@microsoft.com...
> > Hi i'm trying to figure out the MOVE command using the command line.
> > My
> > understanding is that it can be used to move several files and I can
> > accomplish this by using wildcards . But when trying to move 2 or 3
> > files
> > with different extensions separating the files with "," it fails
> > saying
> > syntax is incorrect. Any tips?

>
>
> If there are spaces in the paths or filenames to the files, you will
> have to enclose them within double-quotes; otherwise, the spaces screw
> up the parsing of the command line. Allowing spaces in path and file
> names was a stupid idea by both Microsoft and UNIX operating systems.
> Many programs, even some that come with the OS, don't like them.
>
>

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 03-24-2008, 06:31 PM
VanguardLH
 
Posts: n/a
Re: Move command XP
"Oni" wrote in message
news:41EA7511-591C-476F-9251-DD1E58CB14E4@microsoft.com...
>
> "VanguardLH" wrote:
>
>> "Oni" wrote ...
>> > Hi i'm trying to figure out the MOVE command using the command
>> > line. My understanding is that it can be used to move several
>> > files and I can accomplish this by using wildcards . But when
>> > trying to move 2 or 3 files with different extensions separating
>> > the files with "," it fails saying syntax is incorrect. Any tips?

>>
>> If there are spaces in the paths or filenames to the files, you will
>> have to enclose them within double-quotes; otherwise, the spaces
>> screw
>> up the parsing of the command line. Allowing spaces in path and file
>> names was a stupid idea by both Microsoft and UNIX operating systems.
>> Many programs, even some that come with the OS, don't like them.

>
> Thanks for the explanation, but i still cannot accomplish this.
> Lets say i have the following 2 folders "test" "test1" located on my Z
> drive
> Default all files are placed in the "test" folder but I want certain
> files
> *.mdb *.xls *.txt moved to "test1" from "test".
>
> Can you provide an example?


We learn by doing. So what have you tried so far for the 'move'
command?

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 03-24-2008, 07:14 PM
Don Phillipson
 
Posts: n/a
Re: Move command XP
"Oni" <Oni@discussions.microsoft.com> wrote in message
news:1EA76130-8F7B-474F-85B9-7305A78DE69D@microsoft.com...
> Hi i'm trying to figure out the MOVE command using the command line. My
> understanding is that it can be used to move several files and I can
> accomplish this by using wildcards . But when trying to move 2 or 3 files
> with different extensions separating the files with "," it fails saying
> syntax is incorrect. Any tips?


CLI commands under WinXP are listed under MS-DOS.v.6 at
http://www.microsoft.com/technet/arc....mspx?mfr=true
Choose in the left panel the section "More...REName"

--
Don Phillipson
Carlsbad Springs
(Ottawa, Canada)


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 03-24-2008, 07:28 PM
Oni
 
Posts: n/a
Re: Move command XP
Ok here goes, as the command says you can move multiple files using the
following:

MOVE [/Y | /-Y] [stasjon:][bane]filnavn1[,...] mål

MOVE /Y Z:\test\*.mdb, *.txt, *.xls Z:\test1\

FYI
Z:\ contains 10 different filetypes, none of the files or folders contain
any spaces.
--
Regards
Oni


"VanguardLH" wrote:

> "Oni" wrote in message
> news:41EA7511-591C-476F-9251-DD1E58CB14E4@microsoft.com...
> >
> > "VanguardLH" wrote:
> >
> >> "Oni" wrote ...
> >> > Hi i'm trying to figure out the MOVE command using the command
> >> > line. My understanding is that it can be used to move several
> >> > files and I can accomplish this by using wildcards . But when
> >> > trying to move 2 or 3 files with different extensions separating
> >> > the files with "," it fails saying syntax is incorrect. Any tips?
> >>
> >> If there are spaces in the paths or filenames to the files, you will
> >> have to enclose them within double-quotes; otherwise, the spaces
> >> screw
> >> up the parsing of the command line. Allowing spaces in path and file
> >> names was a stupid idea by both Microsoft and UNIX operating systems.
> >> Many programs, even some that come with the OS, don't like them.

> >
> > Thanks for the explanation, but i still cannot accomplish this.
> > Lets say i have the following 2 folders "test" "test1" located on my Z
> > drive
> > Default all files are placed in the "test" folder but I want certain
> > files
> > *.mdb *.xls *.txt moved to "test1" from "test".
> >
> > Can you provide an example?

>
> We learn by doing. So what have you tried so far for the 'move'
> command?
>
>

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 03-24-2008, 08:16 PM
John
 
Posts: n/a
Re: Move command XP
You might try using windows explorer to move your files.


"Oni" <Oni@discussions.microsoft.com> wrote in message
news:1EA76130-8F7B-474F-85B9-7305A78DE69D@microsoft.com...
> Hi i'm trying to figure out the MOVE command using the command line. My
> understanding is that it can be used to move several files and I can
> accomplish this by using wildcards . But when trying to move 2 or 3 files
> with different extensions separating the files with "," it fails saying
> syntax is incorrect. Any tips?
> --
> Regards
> Oni




--
Posted via a free Usenet account from http://www.teranews.com

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 03-24-2008, 08:20 PM
Oni
 
Posts: n/a
Re: Move command XP
Hi Don, thanks for your response.

I've now read through and i'm still not able to perform this action.
Have you treid this and been successful?...please post line used to make
this happen.
--
Regards
Oni


"Don Phillipson" wrote:

> "Oni" <Oni@discussions.microsoft.com> wrote in message
> news:1EA76130-8F7B-474F-85B9-7305A78DE69D@microsoft.com...
> > Hi i'm trying to figure out the MOVE command using the command line. My
> > understanding is that it can be used to move several files and I can
> > accomplish this by using wildcards . But when trying to move 2 or 3 files
> > with different extensions separating the files with "," it fails saying
> > syntax is incorrect. Any tips?

>
> CLI commands under WinXP are listed under MS-DOS.v.6 at
> http://www.microsoft.com/technet/arc....mspx?mfr=true
> Choose in the left panel the section "More...REName"
>
> --
> Don Phillipson
> Carlsbad Springs
> (Ottawa, Canada)
>
>
>

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 03-24-2008, 08:26 PM
Oni
 
Posts: n/a
Re: Move command XP
Hi John.

I'm well aware of this possibility, but seeing i'm using this as a part of a
script this won't solve my problem. But thanks anyway ;-)
--
Regards
Oni


"John" wrote:

> You might try using windows explorer to move your files.
>
>
> "Oni" <Oni@discussions.microsoft.com> wrote in message
> news:1EA76130-8F7B-474F-85B9-7305A78DE69D@microsoft.com...
> > Hi i'm trying to figure out the MOVE command using the command line. My
> > understanding is that it can be used to move several files and I can
> > accomplish this by using wildcards . But when trying to move 2 or 3 files
> > with different extensions separating the files with "," it fails saying
> > syntax is incorrect. Any tips?
> > --
> > Regards
> > Oni

>
>
>
> --
> Posted via a free Usenet account from http://www.teranews.com
>
>

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 03-24-2008, 09:31 PM
LVTravel
 
Posts: n/a
Re: Move command XP
You would be better creating your script or batch file to move each file
type separately.

MOVE /Y Z:\TEST\*.MDB Z:\TEST1
MOVE /Y Z:\TEST\*.TXT Z:\TEST1
and so forth.

Even though the syntax shows ,... in it which makes you believe that you can
separate the file names with commas, I have never been able to get this to
work even back in the good old DOS days.

"Oni" <Oni@discussions.microsoft.com> wrote in message
news:CFD74043-8677-495D-A37B-DBE194D7A953@microsoft.com...
> Ok here goes, as the command says you can move multiple files using the
> following:
>
> MOVE [/Y | /-Y] [stasjon:][bane]filnavn1[,...] mål
>
> MOVE /Y Z:\test\*.mdb, *.txt, *.xls Z:\test1\
>
> FYI
> Z:\ contains 10 different filetypes, none of the files or folders contain
> any spaces.
> --
> Regards
> Oni
>
>
> "VanguardLH" wrote:
>
>> "Oni" wrote in message
>> news:41EA7511-591C-476F-9251-DD1E58CB14E4@microsoft.com...
>> >
>> > "VanguardLH" wrote:
>> >
>> >> "Oni" wrote ...
>> >> > Hi i'm trying to figure out the MOVE command using the command
>> >> > line. My understanding is that it can be used to move several
>> >> > files and I can accomplish this by using wildcards . But when
>> >> > trying to move 2 or 3 files with different extensions separating
>> >> > the files with "," it fails saying syntax is incorrect. Any tips?
>> >>
>> >> If there are spaces in the paths or filenames to the files, you will
>> >> have to enclose them within double-quotes; otherwise, the spaces
>> >> screw
>> >> up the parsing of the command line. Allowing spaces in path and file
>> >> names was a stupid idea by both Microsoft and UNIX operating systems.
>> >> Many programs, even some that come with the OS, don't like them.
>> >
>> > Thanks for the explanation, but i still cannot accomplish this.
>> > Lets say i have the following 2 folders "test" "test1" located on my Z
>> > drive
>> > Default all files are placed in the "test" folder but I want certain
>> > files
>> > *.mdb *.xls *.txt moved to "test1" from "test".
>> >
>> > Can you provide an example?

>>
>> We learn by doing. So what have you tried so far for the 'move'
>> command?
>>
>>



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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

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



All times are GMT. The time now is 03:58 PM.


Registry Mechanic - Free Scan Now
Driver Scanner 2009 - Free Scan Now




Design by Vjacheslav Trushkin for phpBBStyles.com.
Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0

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 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74