Link to home
Start Free TrialLog in
Avatar of victorbx
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


Avatar of sunnycoder
sunnycoder
Flag of India image

Hi victorbx,

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)
Avatar of victorbx
victorbx

ASKER

well i need the regular way ,

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
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
XXCopy can do that (see /RC option) : http://www.xxcopy.com
i need the standard windows commands

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
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
SOLUTION
Avatar of sunnycoder
sunnycoder
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
You can ......mv *.*  /dir

or

mv *.* ../dir

It works!