Jump to content

Recommended Posts

Posted

I've been working with my unattended DVD for a while but just started having a problem with it and can't figure out what I may have done to cause the problem. The Quick Launch folder in C:\Documents and Settings\Administrator\Application Data\Internet Explorer has become a file instead of a folder for some reason. I have no idea why so my shortcuts can't copy properly and the quick launch toolbar is blank. I can't figure out where the problem lies. My last batch file is below (launched upon the second automatic logon):

cmdow @ /HID
@echo off
ECHO PLEASE WAIT
::Remove Misc Folders
RD /S /Q "C:\My Shared Folder"
RD /S /Q "C:\Documents and Settings\All Users\Start Menu\Programs\PrintMe Internet Printing"
::Remove Desktop Shortcuts
DEL "C:\Documents and Settings\All Users\Desktop\Adobe Reader 6.0.lnk"
DEL "C:\Documents and Settings\All Users\Desktop\Microsoft Baseline Security Analyzer 1.2.lnk"
DEL "C:\Documents and Settings\All Users\Desktop\Java Web Start.lnk"
DEL "C:\Documents and Settings\All Users\Desktop\AVG Free.lnk"
DEL "C:\Documents and Settings\Administrator\Desktop\Mozilla Thunderbird.lnk"
DEL "C:\Documents and Settings\All Users\Desktop\Mozilla Thunderbird.lnk"
DEL "C:\Documents and Settings\Administrator\Desktop\Mozilla Firefox.lnk"
::Remove Unneeded Start Menu Shortcuts
::DEL "C:\Documents and Settings\Administrator\Start Menu\Programs\Startup\finish.cmd.lnk"
DEL "C:\Documents and Settings\Administrator\Start Menu\Programs\Startup\OpenOffice.org 1.1.4.lnk"
DEL "C:\Documents and Settings\All Users\Start Menu\Programs\Microsoft Baseline Security Analyzer 1.2.lnk"
DEL "C:\Documents and Settings\All Users\Start Menu\Programs\MSN Explorer.lnk"
DEL "C:\Documents and Settings\All Users\Start Menu\Programs\Windows Messenger.lnk"
DEL "C:\Documents and Settings\All Users\Start Menu\Programs\Adobe Reader 6.0.3.lnk"
::Create 3 New Folders For The Start Menu
MD "C:\Documents and Settings\All Users\Start Menu\Programs\Multimedia"
MD "C:\Documents and Settings\All Users\Start Menu\Programs\Online Stuff"
MD "C:\Documents and Settings\All Users\Start Menu\Programs\Utilities"
::Move Start Menu Folders Into Previously Created Folders
MOVE /Y "C:\install\shortcuts\Mozilla Sunbird.lnk" "C:\Documents and Settings\All Users\Start Menu\Programs\Online Stuff"
MOVE /Y "C:\install\shortcuts\TaskSwitchXP" "C:\Documents and Settings\Administrator\Start Menu\Programs\Utilities"
MOVE /Y "C:\install\shortcuts\mIRC.lnk" "C:\Documents and Settings\All Users\Start Menu\Programs\Online Stuff""
MOVE /Y "C:\install\TaskSwitchXP" "C:\Program Files\Utilities"
MOVE /Y "C:\install\AVG\avg_update-040705.bin" "C:\Documents and Settings\Administrator\Desktop"
MOVE /Y "C:\Documents and Settings\All Users\Start Menu\Programs\K-Lite Codec Pack" "C:\Documents and Settings\All Users\Start Menu\Programs\Multimedia"
MOVE /Y "C:\Documents and Settings\All Users\Start Menu\Programs\Kazaa Lite K++" "C:\Documents and Settings\All Users\Start Menu\Programs\Multimedia"
MOVE /Y "C:\Documents and Settings\Administrator\Start Menu\Programs\Mozilla Firefox" "C:\Documents and Settings\All Users\Start Menu\Programs\Online Stuff"
MOVE /Y "C:\Documents and Settings\All Users\Start Menu\Programs\Java Web Start" "C:\Documents and Settings\All Users\Start Menu\Programs\Online Stuff"
MOVE /Y "C:\Documents and Settings\All Users\Start Menu\Programs\AVG Free Edition" "C:\Documents and Settings\All Users\Start Menu\Programs\Utilities"
MOVE /Y "C:\Documents and Settings\Administrator\Start Menu\Programs\Mozilla Thunderbird" "C:\Documents and Settings\All Users\Start Menu\Programs\Online Stuff"
MOVE /Y "C:\Documents and Settings\All Users\Start Menu\Programs\WinRAR" "C:\Documents and Settings\All Users\Start Menu\Programs\Utilities"
::RD /S /Q "C:\Documents and Settings\All Users\Start Menu\Programs\WinRAR"
MOVE /Y "C:\install\shortcuts\Process Explorer.lnk" "C:\Documents and Settings\Administratot\Start Menu\Programs\Utilities"
MOVE /Y "C:\install\shortcuts\TCP Viewer.lnk" "C:\Documents and Settings\Administratot\Start Menu\Programs\Utilities"
MOVE /Y "C:\install\shortcuts\Notepad 2.lnk" "C:\Documents and Settings\All Users\Start Menu\Programs\Accessories"
RENAME "C:\Documents and Settings\All Users\Start Menu\Programs\OpenOffice.org 1.9.79" "OpenOffice.org 2.0"
MOVE /Y "C:\install\shortcuts\Quick Launch" "C:\Documents and Settings\Administrator\Application Data\Microsoft\Internet Explorer"
::Remove Folders and Files Installed During XP Setup
RD /S /Q %systemdrive%\install
RD /S /Q %systemdrive%\drivers
del %0

I've also attached my registry tweaks as I remember playing with them before the problem but I don't think it would have anything to with them (it wouldn't make sense to me). Any help would be greatly appreciated.

RegistryTweaks.reg


Posted

The move command is somewhat limited When you try to MOVE an entire folder into a directory that already has that folder in it, you'll get access denied. MOVE will work if you specify that all you wish to move are the files. For example:

MOVE /Y "C:\install\shortcuts\Quick Launch\*.*" "C:\Documents and Settings\Administrator\Application Data\Microsoft\Internet Explorer\Quick Launch"

Posted

heh.. I'm always making little spelling mistakes. Thanks for informing me. :D

Anyway, I'll deffinately have to give that a try. I do wish that there was a way to solve the Quick Launch folder being a file for whatever reason. I've been trying to find out why it changed from a folder to a file but can't figure out how. Is there a way to convert a file back into a folder via batch file?

Posted

There's no way to convert a file back to a folder after this happens. Don't be too frustrated, it has happened to all of us. Essentially the stream is copied as a file.... I had it happen to me a lot in the DOS days.

To troubleshoot your batch file REM out the @echo off line and insert several PAUSE commands. This way you can see the output to make sure everything is cool.

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...