Jump to content

jaclaz

Member
  • Posts

    21,300
  • Joined

  • Last visited

  • Days Won

    53
  • Donations

    0.00 USD 
  • Country

    Italy

Everything posted by jaclaz

  1. Just for the record it does not work fully in win2k, or at least it does not work how it should. Here is the output of the original script when run for the first time in a newly open box in Win2K (I omitted the PAUSE statements and took out some line feeds): O:\>tntori O:\>echo. ntldr location is boot.ini location is C: Size of ntldr is Size of boot.ini is 171 ntldr location is C: boot.ini location is C: Size of ntldr is 215472 Size of boot.ini is 171 ntldr location is C: boot.ini location is C: Size of ntldr is 215472 Size of boot.ini is 171 Whilst here is the one from my script (I have a copy of NTLDR/BOOT.INI in O:\) : O:\>tnt O:\ntldr size is 215472 O:\boot.ini size is 171 C:\ntldr size is 215472 C:\boot.ini size is 741 And the one from first Yzowl one, (I don't like using MOUNTVOL as it accesses the floppy): O:\>tnt2 ntldr location is O: boot.ini location is O: Size of ntldr is 215472 bytes Size of boot.ini is 171 bytes And the one from 2nd Yzowl one: O:\>tnt3 C:\NTLDR size is 215472 bytes C:\boot.ini size is 741 bytes jaclaz
  2. Also, it (the original one, I mean, Yzowl beat me on time) loops more times than needed. See if this works: @echo off for %%A in (Z Y W X W V U T S R Q P O N M L K J I H G F E D C) do call :setvars %%A:\ntldr %%A:\boot.ini pause goto :eof :setvars if exist %1 ( if exist %2 ( echo. echo. echo %1 size is %~z1 echo %2 size is %~z2 echo. ) ) goto :eof this one checks if BOTH boot.ini and NTLDR are present. jaclaz P.S.: reference: http://www.robvanderwoude.com/ntcall.html
  3. I don't think there is in Windows 9x batch file, it is relatively simple in 2K/XP: @echo off ::Find duplicates files in two directories - DUPLI.CMD ::by Jacopo Lazzari ::thanks to Rob van Der Woude for the examples, tutorials and ::info on his page [url="http://www.robvanderwoude.com/"]http://www.robvanderwoude.com/[/url] ::and to Simon Sheppard [url="http://www.ss64.com/"]http://www.ss64.com/[/url] ::----------------------------------------------------------- ::Usage: DUPLI.CMD <folderA> <folderB> ::----------------------------------------------------------- setlocal ENABLEDELAYEDEXPANSION Set dirA=%1 Set dirB=%2 dir /B /O %dirA% >dirA.txt dir /B /O %dirB% >dirB.txt Echo Files that are found in BOTH folders %dirA% AND %dirB% >both.txt Echo. >>both.txt findstr /G:dirA.txt dirB.txt >>both.txt echo ------------------------------------- >>both.txt Echo Files that are found in folder %dirA% but NOT in folder %dirB% >AnotinB.txt Echo. >>AnotinB.txt find /V /C "this_is_an_absurd_string" dirB.txt >numlines.txt for /f "tokens=3 delims= " %%B in (numlines.txt) do set /A maxnum=%%B for /F "tokens=* delims= " %%A in (dirA.txt) do ( find /V /C "%%A" dirB.txt >numlines.txt for /f "tokens=3 delims= " %%B in (numlines.txt) do set /A foundnum=%%B if %maxnum%==!foundnum! echo %%A >>AnotinB.txt ) echo ------------------------------------- >>AnotinB.txt Echo Files that are found in folder %dirB% but NOT in folder %dirA% >BnotinA.txt Echo. >>BnotinA.txt find /V /C "this_is_an_absurd_string" dirA.txt >numlines.txt for /f "tokens=3 delims= " %%B in (numlines.txt) do set /A maxnum=%%B for /F "tokens=* delims= " %%A in (dirB.txt) do ( find /V /C "%%A" dirA.txt >numlines.txt for /f "tokens=3 delims= " %%B in (numlines.txt) do set /A foundnum=%%B if %maxnum%==!foundnum! echo %%A >>BnotinA.txt ) echo. >>BnotinA.txt echo ------------------------------------- >>BnotinA.txt copy /B both.txt+AnotinB.txt+BnotinA.txt dupli.txt >nul more dupli.txt for %%A in (dirA.txt dirB.txt both.txt AnotinB.txt BnotinA.txt numlines.txt) do ( if exist %%A del %%A ) You could see in Rob van der Woude's site if there is such a script in DOS/W9x version..... jaclaz
  4. As mentioned in the SmartFTP forums: http://www.smartftp.com/forums/index.php?showtopic=5725 A solution is cURL: http://curl.haxx.se/ Win32 ports are by Dirk Paehl: http://www.paehl.com/open_source/index.php?CURL_7.15.4 or the (elder) ncftp and its command line side apps: http://www.ncftp.com/ncftp/ jaclaz
  5. Just for the record, besides the original Regshot by TianWei: http://regshot.blog.googlepages.com/regshot.html there is also the Paraglider's version that saves differences in REG4 format: http://www.paraglidernc.com/RegShot.html http://www.paraglidernc.com/plugins/RegShot1725.cab A good idea is to start from a cleaned and defragmented registry, EVERYONE should use DAILY ERUNT: http://www.larshederer.homepage.t-online.de/erunt/ but even if you don't, it's companion app REGOPT is a must! To pick one of the various FREEWARE Registry cleaners, check this list with opinions by Jeremy: http://www.msfn.org/board/index.php?showtopic=68677 Regseeker appears to be a winner! B) jaclaz
  6. Well, it is your money, but a rapid google search would show you that a small (8 oz - 236 ml) can of Brasso can be bought for US$4.29 or a 150 ml one goes for GB£2.09 http://www.shop.com/op/~76523_8_OZ_BRASSO_...814?xit_recom=1 http://www.britsuperstore.com/acatalog/Brasso.html (and it can usually be fond at the grocery around the corner) A CD polishing paste, (first one I found): http://www.gadgetsuk.com/Disc-repair-paste-p-17150.html costs for a really tiny tube. ...and with Brasso you can also polish all your other metal or plastic hardware, or repair CD's for all your lifetime, that of your sons, of your nephews, and all other future descendants .... jaclaz
  7. It seems like you have tried almost everything known, so it is possible that something is wrong in your particular setup. Here are a few examples of CONFIG.SYS settings for the various utilities, including some that are not commonly used: http://www.tecumsehconsulting.com/usb.htm http://www.bootdisk.com/usb.htm The one that I use is this one: http://hddguru.com/content/en/software/200...-MS-DOS-Driver/ get also the Magic Boot Disk here: http://hddguru.com/content/en/software/200...agic-Boot-Disk/ there are both a floppy and an .ISO image of it The above did never failed me. jaclaz
  8. Cannot say, most probably is a wrong setup in the BIOS, either the one of the PC or of the add-on board (the latter could be also a jumper) No problem at all, if you pay attention NOT to overwrite MBR of your current drive(s) when installing Linux. A very handy way to triple boot with the minimal hassle is to keep your current setup with NTLDR and BOOT.INI and use GRLDR (part of Grub4dos) as a secondary bootloader to boot Linux. Get latest version of Grub4dos here: http://grub4dos.jot.com/WikiHome If the read me text has not enough details, search on the 911CD forum for Grub4dos, you'll find some threads better explaining the procedure. jaclaz
  9. Well, even original choice.com does work on XP. with a bit of tweaking (16 bit DOS subsystem). The CHOIX.COM is very similar (but smaller), never tested it in XP, but it works under 2K, so it should in XP too. The Win2K RK CHOICE.EXE does work perfectly in XP, without the problems detailed on http://www.ss64.com/nt/choice.html I haven't tested it, but I reasonably presume that the Server 2003 version works in XP too. I gave the alternatives more as a "license" alternative than for real need, I mean even if it's not "elegant" from a programmer's point of view, WHO cares whether "when in wait state" CHOICE.COM eats CPU's cycles? jaclaz
  10. Sorry, I really cannot understand .... jaclaz
  11. Read this: http://www.911cd.net/forums//index.php?showtopic=16980 and these: http://www.911cd.net/forums//index.php?showtopic=17425 http://www.911cd.net/forums//index.php?showtopic=18031 Basically your windows setup on a .ISO file behaves exactly as a BartPE loaded in RAM (with files from Windows Server 2003 SP1 and later - i.e. the /minint switch) Hope that you can get the hang of it from those threads. Another method would be to to install on the Stick either Dos 7.x or win9.x, or even a smallish BartPE and use WINNT or WINNT32 to start the install see this: http://www.msfn.org/board/index.php?showtopic=47125 jaclaz
  12. Yes, there is no way to use set /P with a default timeout selection. There are workarounds, see these: http://www.robvanderwoude.com/choice.html (using kixstart) or you can use CHOIX.COM, part of Horst Schaeffer utilities: ftp://ftp.sac.sk/pub/sac/utiltask/horst31.zip or the choice.exe that comes with the NT4 or 2000 Resource kit: http://www.ss64.com/nt/choice.html here you can get it as a single file: http://www.petri.co.il/download_free_reskit_tools.htm http://www.dynawell.com/reskit/microsoft/win2000/choice.zip (21 kb download) Also, LLXX is "partially" right, starting with Server 2003 (not XP) CHOICE is in the OS not in the RK. jaclaz
  13. hmm...... 5 reasons WHY does this post appear as ADVERTISEMENT to me: 1) It is written in "oversimplified" English 2) It is the first post of a user with name "recoveryguru" 3) The company is situated in SOUTH DELHI (see #1 above) 4) 2nd and 3rd sentence are clearly "self promoting" ones 5) most if not all references to the company you can find in a google search are from the site itself, from free sites, from "connected" sites like this http://www.recoverybkf.com/ (same registrar) or from similar posts on other boards, see this one: http://www.theofficeexperts.com/forum/showthread.php?t=6469 strangely enough another 1st post by user "recoveryguru", you can find tens of similar posts on tens of other boards I cannot say if their products are this good, maybe they are, but surely their advertisement policy is really poor. jaclaz
  14. You use the SYS command (or if you have already FDISKED the Hard Disk but haven't yet FORMATted it you use FORMAT /S): http://www.computerhope.com/msdos.htm#02 http://www.computerhope.com/syshlp.htm http://www.computerhope.com/fdiskhlp.htm http://www.computerhope.com/formathl.htm jaclaz
  15. Maybe I am late, but check this: http://www.mirkes.de/en/freeware/batch.php a bunch of batch miniapps for win32/nt/2000/xp, including: (untested) jaclaz
  16. Well, the fact that people trying to help did not give you the right answer does not mean that you are allowed to be rude. The idea behind these kind of forums is that people asks questions and people willing to help TRY to help, no result is guaranteed. I already read your post and, since this is not really my field of expertise and I did not fully understand your requirements, I refrained from posting an answer I was not sure about, but others, quite evidently "in good faith" tried to help you, and, as I see it, they do not deserve to be thanked like you did. jaclaz
  17. Sorry, LLXX, I have overlooked your previous reply, and have to correct it: No, the 1.68 DMF format is explained here: http://www.winimage.com/wimushlp/wini1a1y.htm There are actually three 1.68 formats, all have geometry 2x21x80 and thus have a total of 1,720,320 bytes: 1) "normal" has 1 sector (512 bytes) cluster and 1 sector for boot, 2x10 sectors for FAT and 14 sectors for dirs, which allows for max 224 files in root, usable size is 1,702,400 2) DMF 1.68 "1024" has 2 sectors (1024 bytes) cluster and 1 sector for boot, 2x5 sectors for FAT and 1 sectors for dirs, which allows for max 16 files in root, usable size is 1,714,176 2) DMF 1.68 "2048" has 4 sectors (2048 bytes) cluster and 1 sector for boot, 2x3 sectors for FAT and 1 sectors for dirs, which allows for max 16 files in root, usable size is 1,716,224 Then there is the 1.72 format: geometry 2x21x82, total size 1,763,328 bytes, 1 sector (512 bytes) cluster and and 1 sector for boot, 2x10 sectors for FAT and 14 sectors for dirs, which allows for max 224 files in root, usable size is 1,745,408 I suppose we can call the format you mentioned a "1.76 DMF", just like: 1,474,560/1024/1000=1.44 1,720,320/1024/1000=1.68 1,763,328/1024/1000=1.72 we have: 1,806,336/1024/1000=1.76 I think this is the biggest format that does not use some "trick" like the 2m formats or the IBM XDF 1.84 format. Actually, strange as it might seem, the opposite of "normality" is true. Going beyond the 80th or in some cases 81th track appears to be a major problem with "brand name" drives, whilst "no name" ones behave better. However these formats do push the drive to (and beyond) design limits, so they are not dependable. Moreover, due to the drop in price of floppies (the media I mean), they appear to be of lesser quality than they used to be. I have used for a certain period the Naslite software that uses a 1.72 floppy and I was able to get about one working floppy out of three using new "brand name" media, whilst I had about 90% success with a few years old "recovered from gargage bin" used floppies. jaclaz
  18. Nice, positive and friendly approach! I am sure that the people who tried to help you will do better next time you ask for something.... jaclaz
  19. Thanks LLXX, do you also happen to know if it uses 1, 2 or 4 sector(s) cluster? (the 1.68 DMF format differed from "normal" 1.68 as it had two sub-versions one DMF1024 with two sectors clusters and DMF2048 wit 4 sectors clusters) jaclaz
  20. @LLXX Nice app. Tiny, and has quite a bit of features, I can use the boot builder part. jaclaz
  21. Did you try to put quotes to the names: should be: jaclaz
  22. You can use either Tightvnc: http://www.tightvnc.com/ or Ultravnc/Ultravnc sc: http://ultravnc.sourceforge.net/index.html http://ultravnc.sourceforge.net/addons/singleclick.html http://sc.uvnc.com/index.php?section=12 Unlike PC Anywhere they are Free. jaclaz
  23. Hey, take it easy man. Can you please give us some details, like: 1) which kind of USB drive it is (manufacturer/model/capacity/etc.) 2) which tools did you use 3) which operating systems you use/can use 4) how the problem developed the first time The standard procedure is to first thing make a byte by byte copy of the disk contents to a file, but you need to have (or be able to get) enough space on another disk. jaclaz
  24. Also check this: http://www.jeffothy.com/weblog/filedisk-iso-mounter/ and this: http://www.benlaufer.com/2006/04/24/filedisk-ua/ jaclaz
×
×
  • Create New...