MSFN Forum: Help with BAT/CMD + File-Directories Add-On - MSFN Forum

Jump to content



Last warning

1. This is not a warez site! Links/Requests to warez and/or illegal material (porn, cracks, serials, etc..) will not be tolerated. Discussion of circumventing WGA/activation/timebombs/keygens or any other illegal activity will also not be tolerated. Any offenders of this rule may be banned on first violation. We take issues like this very seriously here at MSFN.
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Help with BAT/CMD + File-Directories Add-On Needing to place a CMD file & a directory structure into an Add-On Rate Topic: -----

#1 User is offline   raf1231 

  • Group: Members
  • Posts: 2
  • Joined: 09-August 08

  Posted 13 July 2009 - 09:10 PM

:hello:
I'm trying to create an Add-On that will copy a file-folder & files to a specific location on the system drive. I've provided a brief example of what I'm trying to do.
1. First is a directory tree of the file-folder & files I want to copy. The folder names are in upper-case & are preceded by an asterisk. The file names are in lower-case & are preceded by a #-sign.
2. Second is a sample of the CMD/BAT file which I converted into an EXE file using BAT-to-EXE-Converter.

I created an 'svcpack' folder that contains the 'START_MENU_SHORTCUTS' directory & files plus the 'FILES-TO-COPY.EXE' command. My 'entries.ini' file contains:

[EditFile]
I386\SVCPACK.INF,SetupHotfixesToRun,AddProgram
[AddProgram]
FILES-TO-COPY.exe

I used 'AlphaZIP' to create a CAB file taking in both "svcpack" & "entries.ini". For some reason, this causes the XP Pro Set-Up process to run through set-up, Windows start-up (file copying) & quit with a message stating 'there is a problem with set-up & to contact your administrator' just before the point where the PC is suppose to re-boot to bring up XP for the first time.

What's the correct way to turn this into an Add-On file for my XP PRO Slipstream CD?

Please keep in mind, this is just a simple example; my end product will be much more involved and considerably larger. Thanks in advance for your time & assistance.

======================================================
FILE-FOLDER & FILES TO BE COPIED TO C:\Documents and Settings\All Users\Start Menu\Programs
-------------------------------------------------------------------------------------

* START_MENU_SHORTCUTS


* DRIVER-UPDATES


* DRIVERGUIDE-TOOLKIT


# driverguide-toolkit-home-page.lnk
# driverguide-toolkit.lnk


* FTP-FILESHARE-&-P2P


# free-rapid-downloader.lnk




* MSG-&-CDs
# msg-&-cds--common-ctop-messages.lnk
# msg-&-cds--device-manager-error-codes.lnk
# msg-&-cds--security-event-messages.lnk




* SECURITY-&-CLEANERS


* AVG-ANTI-VIRUS
# avg-free-user-interface.lnk
# avg-kill.lnk
# avg-start.lnk
# uninstall-avg-free.lnk




* CCLEANER
# ccleaner-homepage.url
# ccleaner.lnk
# uninstall-ccleaner.lnk




* MS-MRT-PGM
# downloaded-ms-mrt-pgm.lnk
# ms-mrt-web-site.url




* SYSTEM-INFO
# belarc-advisor.lnk
# win-sys-info.lnk

======================================================
FILES-TO-COPY.CMD
-------------------------------------------------------------------------------------

set PrimDrive=%SystemDrive%

xcopy "START_MENU_SHORTCUTS"
"%PrimDrive%\Documents and Settings\All Users\Start Menu\Programs" /E /C /R /I

======================================================


#2 User is offline   g-force 

  • Tester
  • PipPipPipPip
  • Group: Members
  • Posts: 596
  • Joined: 20-June 07
  • OS:XP Pro x86
  • Country: Country Flag

Posted 13 July 2009 - 09:37 PM

Welcome @ MSFN-Forums!

Sorry about my re-question, but why don`t you use $OEM$-Method for that?
It would be quiet easier to build the structure and links.

#3 User is offline   raf1231 

  • Group: Members
  • Posts: 2
  • Joined: 09-August 08

Posted 14 July 2009 - 08:11 AM

:thumbup

Don't mind the re-question since it offers another thought on how to accomplish my tasks.

The answer to your question is: As I've looked over the forum, I've seem $OEM$ mentioned in different places but I didn't really understand what it was about. I did a quick search this morning & located one post - seems it has to do with the 'RunOnce' tab in nlite where the code will be run after the XP install at the beginning of the first logon. After thinking about things last night, the stuff I want to do really needs to be done AFTER the XP install. So, this is probably the way I should go.

I'll research the forum more this evening when I have more time. It would be of help if you could possibly direct me to some other post addressing the $OEM$-Method.

Thanks for the quick response. :hello:

#4 User is offline   g-force 

  • Tester
  • PipPipPipPip
  • Group: Members
  • Posts: 596
  • Joined: 20-June 07
  • OS:XP Pro x86
  • Country: Country Flag

Posted 14 July 2009 - 08:55 AM

A little overview of $OEM$: http://unattended.ms...xp/view/web/18/

Not explained is how to copy a shortcut to startmenu, so here we go.
First of all you might use this pre-prepared $OEM$-structure: http://www.german-winlite.de/wbb/index.php...D=6982#post6982
Don`t mind the thread is german - the structure of the folders is the same.
Only use it as an example.

"$OEM$\$DOCS\Default User" is the basic folder for every new user who logs on.
To put files or links there means every new user gets this in his own "Documents & Settings".
The folderstructure in $OEM$ is like that in "Documents & Settings", so if we put "MyProg.lnk"
into folder "$OEM$\$DOCS\Default User\Startmenu\MyOwnFolder" it will exist in Startmenu
for every User.

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy