Subject: | |
From: | |
Reply To: | |
Date: | Thu, 24 Feb 2011 20:29:35 +0000 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
In message <[log in to unmask]>, Brice
Yokem <[log in to unmask]> writing at 13:30:08 in his/her local time
opines:-
>I have been trying to find a way to move a file from one folder in
>windows to another using ftp in a batch process.
>
>Rename does not seem to want to work across windows folders.
>
>I don't want to copy and delete, if the copy fails for some reason the
>delete will go on and we lose the file.
>If the move works we want the file to be gone and appear in the new folder.
>
>This has to be automated as part of a job rather than have a person do
>it each time.
I have MOVE as a command-line option (hence you can put it in a script)
in the 'DOS' on my Windows Vista.
I'd hazard a guess it's in XP as well, and possibly earlier MS OSes as
well.
Will this fit the bill for you?
Roy
Microsoft Windows [Version 6.0.6002]
Copyright (c) 2006 Microsoft Corporation. All rights reserved.
C:\Users\Roy>move /?
Moves files and renames files and directories.
To move one or more files:
MOVE [/Y | /-Y] [drive:][path]filename1[,...] destination
To rename a directory:
MOVE [/Y | /-Y] [drive:][path]dirname1 dirname2
[drive:][path]filename1 Specifies the location and name of the file
or files you want to move.
destination Specifies the new location of the file.
Destination
can consist of a drive letter and colon, a
directory name, or a combination. If you are
moving
only one file, you can also include a filename
if
you want to rename the file when you move it.
[drive:][path]dirname1 Specifies the directory you want to rename.
dirname2 Specifies the new name of the directory.
/Y Suppresses prompting to confirm you want to
overwrite an existing destination file.
/-Y Causes prompting to confirm you want to
overwrite
an existing destination file.
The switch /Y may be present in the COPYCMD environment variable.
This may be overridden with /-Y on the command line. Default is
to prompt on overwrites unless MOVE command is being executed from
within a batch script.
--
Roy Brown 'Have nothing in your houses that you do not know to be
Kelmscott Ltd useful, or believe to be beautiful' William Morris
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|
|
|