Jump to content

Every file in image directory starts with "Copy of"


Recommended Posts

Posted

I'm not sure if it's a bug in the program or something I did, but somehow (almost) every file had "Copy of " before the actual name of the file. I did all of the steps except Integrate Drivers and Unattended Setup. When it got to the Create ISO page I skipped creation and clicked Finish. Later when I came back it wouldn't let me get past the "Locate the Windows installation folder" page. That's when I discovered several of the files started with "Copy of ". Sadly every file in i386 was like that too. I wrote a little bash script to rename them all. If this happens to anyone else hope this helps.

#!/bin/sh

rename ()
{
for somefile in `find . -maxdepth 1 -name 'Copy of *' | cut -d " " -f 3-`; do
#echo $somefile
mv "Copy of $somefile" $somefile
done
}

search_dirs ()
{
rename
for somedir in `ls`; do
if [ -d $somedir ]; then
cd $somedir
search_dirs
cd ..
fi
done
}

search_dirs


Posted

that happens in explorer if you drag the files in a folder to another area of the same folder when holding shift if i remember right..

not an nlite bug..!

Posted

I'm pretty sure I didn't do that (drag files while holding shift), but you never know. I don't think it's a bug in nlite, but on the other hand I don't know what else could have caused it. The thing is subdirectories were affected also, but none of the folders were renamed (at least any that I saw; I didn't check them all, just ran the script). The main thing is if it happens to anybody else hopefully they'll see this and be able to fix it.

I'm pretty sure I didn't do that (drag files while holding shift), but you never know. I don't think it's a bug in nlite, but on the other hand I don't know what else could have caused it. The thing is subdirectories were affected also, but none of the folders were renamed (at least any that I saw; I didn't check them all, just ran the script). The main thing is if it happens to anybody else hopefully they'll see this and be able to fix it.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...