Jump to content

os2fan2

Member
  • Posts

    442
  • Joined

  • Last visited

  • Days Won

    1
  • Donations

    0.00 USD 
  • Country

    Australia

Everything posted by os2fan2

  1. Gostpe is ghost personal edition, the DOS program that came with Ghost up to vers 7. Vers 8 has ghost.exe and ghost32.exe, which are the DOS and win32 versions of ghost. ghost32.exe works under bartpe, but it also needs one or two dll files that are often removed in the de-networking of WindowsPE. (something like smnpapi.dll or something close to that). W
  2. Proggie called 'autoexecnt.exe' is what you're looking for. zb http://www.jsiinc.com/dl/autoexnt.zip
  3. I actually use $oem$ and i386 to directories not on the cdrom, and not in the same tree. That is, you can point these to different shares, or different hard drives or whatever. These are only used in the copy stage of the install. I set up an appserver partition, with the stable forms of the different windows in use, eg K:\win2ksp4\i386 <-- win2k files K:\win2ksp4\support <-- support K:\win2ksp4\autopatcher K:\winxpsp2\i386 <--- winxp files You then can have some current form of the OEM tree, for different installs + machines. These can live anywhere, eg as follows. Note that the directory must have the name "$oem$". You can't call it OEMFILES, or W2kOEM or whatever. x:\penning\2k\$oem$ <- copied over $oem$ x:\penning\2k\i386 <- stuff copied over the cd install x:\penning\xp\$oem$ These directories don't need a lot of stuff there, because it's added to the directories. If you are doing a lot of common stuff (eg drivers for 2k = drivers for xp, or common installs, you could use unattend.cmd to build (by xcopy) the \penning\$oem$ directory, eg by copying the modem, the video driver and the 2k oem stuff to the directory. I use a rexx script that keeps all sorts of options present, so the one line to build the files will put the right things there based on selected options. I then check under the bartpe that K and X are installed in their right places, because having things like Zipdrives and usb's plugged in can create holes in your drive letters. If these are plugged in, you should unmount them first. Use ntsubst from http://www.hhdsoft.com/ or mountvol to remove these extraneous volumes. Check your unattend.cmd and unattend.txt, to make sure that the OEMFilesPath points to the correct directories. Then, run unattend.cmd, and it will run. What happens is this. /syspart:c: will create the hidden 6MB directory c:\$WIN_NT$.~BT . This must be on the drive with boot.ini and ntldr. So you don't need this switch at all, because the default drive is c:\ anyway. /tempdrive:g will create the huge directory g:\$WIN_NT$.~LS, with the directories under it of I386 and $OEM$, viz c: <- where the boot.ini menu lives c:\TXTSETUP.SIF <- copied here c:\$WIN_NT$.~BT g: <- where the WINNT directory lives. g:\$WIN_NT$.~LS\I386 <- source files copied here g:\$WIN_NT$.~LS\$OEM$ <- oem files copied here When you rerun the boot, the system will start, and start "looking through your hard disks". What is happening here is that it is looking for a drive with a $win_nt$.~ls directory to start the install. This is why it suddenly stops: it's found the $WIN_NT$ directory Using the /syspart switch The only time you might want to use /syspart, is if you are setting up a hard disk that will end up in another box: eg you might want to put the boot block on hdb1 and the windows install on hdb5. When you install this, you point your directories to hdb1 and hdb5 directories (eg d:\ and r:\ drives). When you take the second hard drive out of your box, and plug it into some other machine, then hdb becomes the hda, and partitions hda1 and hda5 become c: and d: respectively, and windows is set up on drive d: when it is booted. W
  4. The article says they're reg_dword, so you enter them as: 0x0 = dword:00000000 0x1 = dword:00000001 0x2 = dword:00000002 There are seven zeros: dword is an 8 hexit word.
  5. It does do as indicated: that is, it creates an environment in a different cmd or 4nt session. The interesting thing is now, that if you have a usb-stick and a zip-drive, both of these are seen as removable. But i suppose it's better than nothing 4nt allows you to test if a drive is removable, cdrom, etc, but does not return a list of them (eg removable1). Wendy
  6. I'm trying it under win2k, and it's doing nothing, either with the win2k or winxp version of the msvbvm60.dll. It does not set the variables under either 4nt or cmd. If i recall correctly, you can't set environment variables from an exe, only a batch. So what most people usually do under OS/2 or windows is to pass the output to a batch file, and then call the batch file. This would be quite handy under bartpe, because the environment changes in the registry is not passed through to started to later shells. You have to use something like nu2menumsg.exe to change the real-mode environment. Calling a batch file, eg setdrive.cmd, would allow you to query once and set in many sessions, eg detectdrive all > %temp%\drives.cmd, and then call drives.cmd whenever you want to find out who's where. W
  7. I use sygates' sfc under win98se and win2k. never had probs with either of them. I was attempted-hacked a few times, but i fixed them up. W
  8. You can quite easily have the following, primary-1 boot partition [can have anything on it] primary-2 bartpe extended partitions, including where Windows lives I have for example, three primary partitions, and an extended one. BartPE lives on the non-active one, and appears at the end of the alphabet when the normal windows boots. The main windows boot partitions are extended partitions F: and G: BartPE is loaded by a boot-sector loader created by bootpart.exe W
  9. I use regina rexx and patrick mcphee's w32util.dll to do this. This code turns on and off the throbber for ie and the explorer, by using registry keys. It reads a key, changes a bit and puts it back. /* Shell throbber/dethrobber. The core now works. */ numeric digits 50 regroot = 'HKEY_CURRENT_USER' regbase = 'Software\Microsoft\Internet Explorer\Toolbar\' regword = 'ITBarLayout' call rxfuncadd 'w32loadfuncs', 'w32util', 'w32loadfuncs' call w32LoadFuncs parse arg a1 a2 if pos(a1,'012') = 0 then do say "THROB.REX non-distructively alters the throbber in IE and the Shell" say "" say "the throbber is the little rotating thing in the top right hand corner" say "of the window" say "This is to be run under the target system, not in PE boot"; say say "Usage: THROB shell ie" say " 0 turn off the throbber" say " 1 turn on the throbber" say " 2 just look."; say "" say "if the throbber is on, then the last hex digit is a letter or over 8" say "a value of 0 to 7 means it is off". end if pos(a1,'012') = 0 then a1 = 2 if pos(a2,'012') = 0 then a2 = 2 /* Shell Browser */ call regpeek 'ShellBrowser', a1 call regpeek 'Explorer', a1 /* IE */ call regpeek 'WebBrowser', a2 exit regpeek: parse arg t0, t1 reghere = w32regopenkey(regroot, regbase || t0) if reghere=0 then do; call w32regclosekey(reghere); return; end; k1 = w32regqueryvalue(reghere, regword) parse var k1 1 k1a 33 k1b 35 k1c select when t1 = 1 then r1 = b2x( bitor(x2b(k1b), '00001000')) when t1 = 0 then r1 = b2x(bitand(x2b(k1b), '11110111')) when t1 = 2 then r1 = k1b otherwise; r1 = k1b; say 'invalid option' t1; end r0 = w32regqueryvaluetype( reghere, regword) r2 = k1a || r1 || k1c s1 = w32regsetvalue(reghere, regword, r0, r2) if s1=0 then s2 = 'Y'; else s2 = 'N' call w32regclosekey(reghere) say t1 left(t0,20) r0 k1b r1 s2 return
  10. i found a download point for msconfig.exe at Axcel216's site. http://www.mdgx.com/toy.htm just search for msconfig and ye will find all the links there.
  11. To create file associations from the command prompt, you may need one or both of, eg assoc .rex=Regina ftype Regina=e:\programs\exe\regina.exe %%1 %* To make the association more permanent (that is, every time you boot BartPE), you need to modify the source .inf file. [Software.AddReg] ; --- REX --- 0x1,"Classes\.rex","","rexxfile" 0x1,"Classes\rexxfile","","Regina Rexx" 0x2,"Classes\rexxfile\DefaultIcon","",""%SystemDrive%\Programs\exe\regina.exe",1" 0x2,"Classes\rexxfile\shell\open\command","","""%SystemDrive%\Programs\exe\regina.EXE"" ""%1"" %*"
  12. You can also group "send to" menus as well. Simply create and move folders in your "sendto" folder. Subfolders appear as menus under sendto menu, eg sendto/debug/depends
  13. net use x: \\server\share is how to connect a drive to a share net use h: \\frotto\os2fan2$ How ever, if you want to create the share \\frotto\$os2fan2, you need to run this command from frotto net share os2fan$ d:\users\os2fan2 The $ sign at the end of the share prevents the share comming up in the browser, but if you want to see the thing from anyone's computer, make the share without the $ sign, eg net use g: \\frotto\groups You can add additional flags, which are revealed via net use /? and net share /?
  14. A ramdisk is useful, since in some situations, you don't want to write to the hard disk. The one i prefer is to use XMSDSK.EXE, which can load from the command prompt with a settable letter. I normally set the letter high, just below the cdroms (eg r:), and cdroms at s:, etc. Once you do this, you don't have to play the silly game with findrd or findcd: they're set. Also, setting the cdrom to s:/ and using a ramdrive is useful even under a normal situation, since you can do lots of writes without worrying about defrags. I compile my web pages to the ram drive. No amount of memory or caching is going to solve being able to write files to somewhere: a ram drive does just that. W
  15. Hello people I am an os2 fan 2, but i have to use assorted legacy systems such as windoze and dos. I spent the last monthish doing a wonderful bartpe project, and when i finally iron out the more blatant bugs, i might move onto doing an integrated setup of windoze xp home + pro. This is of course, somewhat different to what has been done here, but i should try, i suppose. In the main, i tend to be interested in lots of different things at varying degrees: even 15- and 24-dimensional geometry has tickled my fancy from time to time, The os2fan2 page is http://www.geocities.com/os2fan2/ Always caring w
×
×
  • Create New...