On 25/04/2012 02:39, Char Jackson wrote:
On 24/04/2012 17:51, Gene Wirchenko wrote:
On 4/23/2012 2:18 PM, Gene Wirchenko wrote:
Dear Win7ers:
I am working between two systems: an XP system and a 7 system. I
copy files back and forth on a USB stick. Some of the filenames are
long, and I have old utility software that is limited to the 8.3 file
format. I need short filenames, and I can not trust the the short
names generated by Windows will be consistent.
I created a batch file to make a short filename version:
del WFCNew.asp
xcopy WorkFunctionCodes_New.asp WFCNew.asp /v
^1^^^^^^^^^^^^^^^^^^^^^^^ ^2^^^^^^^^
1 is the source; 2 is the destination.
[snip]
I don't see a source and/or destination in your batch file.
If the file is already on the USB stick, why don't use just use ren or
rename?
I want a copy with a different name.
The simplest way is to copy and paste the file to another folder, rename
it there and then drag and drop it to the original folder. IF they are
in different drives then use the CUT& PASTE method.If you want both
copies of the file in the same folder that is...
Remember the motto, *Keep it simple*.
There's nothing "simple" about all of that rigmarole. I fail to see
the reason, and I fail to see why it would be any easier, to rename
files in one folder versus another. Just rename them where they lie.
But I thought he wanted *two* copies of the same file under different
names. Hence my suggestion... Got it?!
That's where xcopy (and copy, etc.) come in. They do exactly that, but
without requiring you to move files somewhere else first.
Otherwise you can rename a file in loco as you suggest. But you cannot
rename a file in loco and still retain the old version with the old
original filename.
That's where xcopy (and copy, etc.) come in. They do exactly that, but
without requiring you to move files somewhere else first.
I sound like a broken record, but these kinds of basic file operations
are, well, basic. They've been with us for over 30 years now.