I have taken what you have so graciously provided and used it as a simple and efficient way of clearing off the Desktop.
All of the shortcuts that are typically put on the Desktop are removed, producing the desired "Clean Desktop" outcome,
all without the taboo of editing any of the PUBLIC DAT files.
NOTE: The following method will snag any shortcuts that the PLATFORM may attempt to put on the desktop too.
I only made minor changes to one line in PostFmergeObj.bat (added /L and /C options):
findstr /I /L /V /C /G:PostFmergeObj.txt initobj.org > initobj.tmp
I used the following string in my PostFmergeObj.txt:
"\Windows\Desktop"
And the final tweak I made is...
Rather than put the PostFmergeObj files in your PLATFORM\BSP\FILES folder as directed...
I chose to put the PostFmergeObj files in my OS Design in "OAK\files" under:
so that one set of files can be used by all platforms of my OS Design.
To utilize the "shared files for all platforms of an OS Design" approach I added the following Custom Build Actions section to each platform in my pbxml OS Design file:
<CustomBuildActions Name="CustomBuildActions">
<BuildStep Step="PreSysgen">
<StringCollectionEX Name="Action">
<String>echo In PreSysgen CustomBuildActions</String>
<String>echo ALL Platforms for this OS Design use the same Project files...</String>
<String>echo copy /Y %_PROJPUBLICROOT%\OAK\files\Project.* %_PROJECTOAKROOT%\files</String>
<String>copy /Y %_PROJPUBLICROOT%\OAK\files\Project.* %_PROJECTOAKROOT%\files</String>
<String>echo Out PreSysgen CustomBuildActions</String>
</StringCollectionEX>
</BuildStep>
<BuildStep Step="PreMakeImage">
<StringCollectionEX Name="Action">
<String>echo In PreMakeImage CustomBuildActions</String>
<String>copy /Y %_PROJPUBLICROOT%\OAK\files\pegconn.wav %_FLATRELEASEDIR%\infbeg.wav</String>
<String>copy /Y %_PROJPUBLICROOT%\OAK\files\pegdisc.wav %_FLATRELEASEDIR%\infend.wav</String>
<String>copy /Y %_PROJPUBLICROOT%\OAK\files\pegdisc.wav %_FLATRELEASEDIR%\infintr.wav</String>
<String>copy /Y %_PROJPUBLICROOT%\OAK\files\*.dll %_FLATRELEASEDIR%</String>
<String>copy /Y %_PROJPUBLICROOT%\OAK\files\*.bib %_FLATRELEASEDIR%</String>
<String>copy /Y %_PROJPUBLICROOT%\OAK\files\*.bmp %_FLATRELEASEDIR%</String>
<String>copy /Y %_PROJPUBLICROOT%\OAK\files\*.reg %_FLATRELEASEDIR%</String>
<String>copy /Y %_PROJPUBLICROOT%\OAK\files\*.wav %_FLATRELEASEDIR%</String>
<String>copy /Y %_PROJPUBLICROOT%\OAK\files\PostFmergeObj.* %_FLATRELEASEDIR%</String>
<String>echo Out PreMakeImage CustomBuildActions</String>
</StringCollectionEX>
</BuildStep>
</CustomBuildActions>
Adding the PreSysgen CustomBuildActions listed above allows me to also use shared project.bib project.dat and project.reg
files across all PLATFORMS in my OS Design as well.
Clean Desktop
I have taken what you have so graciously provided and used it as a simple and efficient way of clearing off the Desktop.
All of the shortcuts that are typically put on the Desktop are removed, producing the desired "Clean Desktop" outcome,
all without the taboo of editing any of the PUBLIC DAT files.
NOTE: The following method will snag any shortcuts that the PLATFORM may attempt to put on the desktop too.
I only made minor changes to one line in PostFmergeObj.bat (added /L and /C options):
findstr /I /L /V /C /G:PostFmergeObj.txt initobj.org > initobj.tmp
I used the following string in my PostFmergeObj.txt:
And the final tweak I made is...
Rather than put the PostFmergeObj files in your PLATFORM\BSP\FILES folder as directed...
I chose to put the PostFmergeObj files in my OS Design in "OAK\files" under:
_PROJPUBLICROOT (e.g.
\WINCE600\OSDesigns\<OSDesignName>\<OSDesignName>\WINCE600\PUBLIC)so that one set of files can be used by all platforms of my OS Design.
To utilize the "shared files for all platforms of an OS Design" approach I added the following Custom Build Actions section to each platform in my pbxml OS Design file:
<BuildStep Step="PreSysgen">
<StringCollectionEX Name="Action">
<String>echo In PreSysgen CustomBuildActions</String>
<String>echo ALL Platforms for this OS Design use the same Project files...</String>
<String>echo copy /Y %_PROJPUBLICROOT%\OAK\files\Project.* %_PROJECTOAKROOT%\files</String>
<String>copy /Y %_PROJPUBLICROOT%\OAK\files\Project.* %_PROJECTOAKROOT%\files</String>
<String>echo Out PreSysgen CustomBuildActions</String>
</StringCollectionEX>
</BuildStep>
<BuildStep Step="PreMakeImage">
<StringCollectionEX Name="Action">
<String>echo In PreMakeImage CustomBuildActions</String>
<String>copy /Y %_PROJPUBLICROOT%\OAK\files\pegconn.wav %_FLATRELEASEDIR%\infbeg.wav</String>
<String>copy /Y %_PROJPUBLICROOT%\OAK\files\pegdisc.wav %_FLATRELEASEDIR%\infend.wav</String>
<String>copy /Y %_PROJPUBLICROOT%\OAK\files\pegdisc.wav %_FLATRELEASEDIR%\infintr.wav</String>
<String>copy /Y %_PROJPUBLICROOT%\OAK\files\*.dll %_FLATRELEASEDIR%</String>
<String>copy /Y %_PROJPUBLICROOT%\OAK\files\*.bib %_FLATRELEASEDIR%</String>
<String>copy /Y %_PROJPUBLICROOT%\OAK\files\*.bmp %_FLATRELEASEDIR%</String>
<String>copy /Y %_PROJPUBLICROOT%\OAK\files\*.reg %_FLATRELEASEDIR%</String>
<String>copy /Y %_PROJPUBLICROOT%\OAK\files\*.wav %_FLATRELEASEDIR%</String>
<String>copy /Y %_PROJPUBLICROOT%\OAK\files\PostFmergeObj.* %_FLATRELEASEDIR%</String>
<String>echo Out PreMakeImage CustomBuildActions</String>
</StringCollectionEX>
</BuildStep>
</CustomBuildActions>
Adding the PreSysgen CustomBuildActions listed above allows me to also use shared project.bib project.dat and project.reg
files across all PLATFORMS in my OS Design as well.