victorbx
asked on
mv(linux) command under windows
hi
can some tell me if i can move files and folder from one folders to another ?
( like linux )
mv /tmp/* /tmp2 /rf -----> this command will move everyhing from /tmp to /tmp2
i am looking this command for windows/dos
victor
can some tell me if i can move files and folder from one folders to another ?
( like linux )
mv /tmp/* /tmp2 /rf -----> this command will move everyhing from /tmp to /tmp2
i am looking this command for windows/dos
victor
ASKER
well i need the regular way ,
i need it for a corporate windows server to perform some task
on a file server
victor
i need it for a corporate windows server to perform some task
on a file server
victor
Is this an automated task or some-thing you are doing yourself? You can use the standard MS-DOS commands in Windows 2k within a script or manually.
move c:\windows\temp\*.* c:\temp - This would move the files of c:\windows\temp to the temp directory in root, this is of course assuming you have the windows\temp directory.
http://www.computerhope.com/movehlp.htm#04
http://www.computerhope.com/movehlp.htm#04
ASKER
well ,
this is an automated task with the scheduler...
" move c:\windows\temp\*.* c:\temp " ----> will not move folders as well
i need to move every thing
EXTRA 500 FOR THE ONE WHO WILL FIND A SOLUTION
VICTOR
this is an automated task with the scheduler...
" move c:\windows\temp\*.* c:\temp " ----> will not move folders as well
i need to move every thing
EXTRA 500 FOR THE ONE WHO WILL FIND A SOLUTION
VICTOR
XXCopy can do that (see /RC option) : http://www.xxcopy.com
ASKER
i need the standard windows commands
builded batch files will be accepted as well
victor
builded batch files will be accepted as well
victor
xcopy source destination /E
This will copy everything "inside" source to destinations
rd /s source
will delete all file in source and its subdirectories
xcopy source destination /E
rd /s source
should do it for you
This will copy everything "inside" source to destinations
rd /s source
will delete all file in source and its subdirectories
xcopy source destination /E
rd /s source
should do it for you
ASKER
i don't want to remove the directory ...
i want to delete everything in the directory including subfolder
and RD does not support wildcards
victor
i want to delete everything in the directory including subfolder
and RD does not support wildcards
victor
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You can ......mv *.* /dir
or
mv *.* ../dir
It works!
or
mv *.* ../dir
It works!
there is a move command on windows
move /?
but I doubt it supports wildcards ... anyway you can download cygwin and get linux functionality on windows machine
Cheers!
Sunny:o)