Content Type
Profiles
Forums
Events
Everything posted by jaclaz
-
Without doubt Grub4dos, as it has BOTH the abilities of booting from RAM with internal commands AND by using memdisk, + a bunch of VERY interesting "direct booting" features, possibility of integration with NTLDR, and to be used (GRLDR) as a no-emulation bootsector for CD's. Have a look at these threads on 911CD: http://www.911cd.net/forums//index.php?showtopic=16980 http://www.911cd.net/forums//index.php?showtopic=18231 Search foor "Grub4dos" on the board for more. jaclaz
-
There is a way to change system drive letter, though not so straightforward: http://www.petri.co.il/change_system_drive..._windows_xp.htm http://www.dougknox.com/tips/xp_drive_letters.htm jaclaz
-
Yep, sure. Easiest: http://www.911cd.net/forums//index.php?sho...c=16543&hl= jaclaz
-
The correct procedure is the one that is not working, at the moment, i.e. fdisk and Format the card, sys files onto it. It is possible that some of the limits that on some PCs/motherboards apply to USB flash drives do apply on PCMCIA CF card booting. These include: FAT16 and not FAT32 FAT16 06 (BIGDOS) and not 0E (V-FAT) Volume size, maybe the 1,2 Gb is too big and finds some kind of "barrier". What I would try first: 1) Fdisk the card using Freedos FDISK with one active primary partition about 500 Mb FAT16 http://www.23cc.com/free-fdisk/ 2) Format the card using the /s switch (that copies the system files) If it does not work, post again, there is another way by making a virtual drive (image file) and binary copying it to the CF card, and another one by using a bootloader to boot to a disk image in RAM. jaclaz
-
How to make NTFS partition bootable and keep the data?
jaclaz replied to bbiandov's topic in Windows 2000/2003/NT4
Sorry, wrong, the MBR "picks" a partition BOOTSECTOR, the partition BOOTSECTOR "picks" NTLDR. Since you can boot from floppy, the MBR is probably OK, the boot.ini on the floppy has an entry like multi(0)disk(0)rdisk(0)partition(1)\Windows that work, this means that the partition data is read allright by BIOS. The problem could be the bootsector. Nothing for the moment, you should use it to save the BOOTSECTOR, than copy the backup bootsector over its original position. Details are in the link in my previous post. However, before the above, do download this freeware utility: BEEBLEBROX http://students.cs.byu.edu/~codyb/ and use it to check both MBR and boot record, helping yourself with the info found here: http://thestarman.pcministry.com/ If you don't feel like using a hex editor directly on the system, you can use testdisk to copy backup bootsector: http://www.cgsecurity.org/wiki/TestDisk http://www.cgsecurity.org/wiki/Data_Recovery_Examples jaclaz -
XP Batch file help need
jaclaz replied to jftuga's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
Interesting, but not really needed there are standard ways to do it: @jftugaFor future use, you are getting the R's because the underlined part is wrong: The variable is %%R, not %R: jaclaz -
How to make NTFS partition bootable and keep the data?
jaclaz replied to bbiandov's topic in Windows 2000/2003/NT4
NO, sorry but you have it wrong. The OLD format from DOS did that. Under NT/2K/XP/2003, whenever the format command is used, the bootsector for booting NTLDR is written everytime. It is quite difficult however to help you without exact information, since we are not allowed to ask HOW it happened, maybe you can post WHAT it is now, by answering the folowing. 1) The partition you call C:\ is a PRIMARY one? 2) The partition you call C:\ was modified by some third party tools (like Partition Magic, Acronis or the like?) 3) Was it the result of using the CONVERT tool to convert it from FAT16/32 to NTFS 4) Are you confident with using a hex/disk editor? 5) Have you an alternate method to access the system (mount the drive in another PC, Live Linux CD with NTFS support, BartPE)? A NTFS partition has a "backup" bootsector at the END of it: http://thestarman.pcministry.com/asm/mbr/NTFSBR.htm#BSback If the partition is a primary one, you just copy it to the first sector, make the partition Active, copy to it NTLDR/BOOT.INI/DETECT.COM and if needed NTBOOTDD.SYS and you are done. jaclaz -
just an idea, mind you, but it seems like you have a bad screen resolution/setting/frequency range for the "other" user. You can try logging directly with the "other" user credentials and temporarily set the display as VGA 640x480 16 colours .... jaclaz
-
Yes, if you have a look at http://www.everythingusb.com/forums/ you'll find hundred of reports of "smart" people buying LARGE sticks from "occasional" sources, like some e-bay auctions, for a SMALL price and later find that the stick is a fake one. But I thought that the smallest was 16 Mb, not 8Mb, so maybe this is not the case. jaclaz
-
Expand to file size (%~zI) doesn't work in XP
jaclaz replied to spacesurfer's topic in Unattended Windows 2000/XP/2003
by the way, it seems almost completely not needed. I mean: Since the idea is to replace ntldr with grldr (not grub, that won't work), most probably following this idea: http://www.911cd.net/forums//index.php?showtopic=18045 the ntldr to be replaced must be the one the machine usually boots from, which is 99,9999% in First Active Partition of First Harddisk (read C:\). And this also explains why the original script has drive letters the "wrong" way.... ... and the way it works, "overwriting" previous positive finds in other partitions While I was thinking about it, I happened to produce these few lines: for /f "tokens=3 delims= " %%A in ('Dir /A C:\ntldr ^| FINDSTR /I "ntldr"') DO ( echo ntldr size is %%A REM whatever else ) That effectively does the work without even needing an IF EXIST, as if the Dir command fails to find the file, feeds to FINDSTR an empty line, and the FOR loop is not executed. Just change the C:\ntldr and ntldr with another string or with a variable to put it in a loop or called subroutine..... jaclaz -
Well, basically, you should try re-running the CBM 2080 program. Reading an English manual (not really for it, but for a device that uses it): http://www.crystalking.com.tw/FLASH.htm http://www.crystalking.com.tw/Flash/PDF/eManual.pdf Might help in understanding the settings to use, most probably you did something "wrong", like using the "Fix Volume size"or partition percentage.... Why did you use it in the first place? No warranties implied, but if you re-format it with the correct settings it should work, unless of course, you tried the production tool because it did not. On the other hand if the device worked, you should not "play" with this kind of utilities... jaclaz P.S.: just for the sake of trying keeping info together as possible I am crosslinking this thread to this 911CD one: http://www.911cd.net/forums//index.php?showtopic=15776 where some other make/models are mentioned
-
Try using ycopy: http://www.ruahine.com/ http://www.ruahine.com/ycopy-file-copy-utility.html jaclaz
-
Yes, sure, the only difference will be that the output of the command will be shown on screen, i.e. a listing of all found files matching *.ext. the >nul redirects the standard output of the command to a "NULL DEVICE" instead of default "CONSOLE". jaclaz
-
isn't this easier? Dir /B /S %1*%2 | FIND "%2">nul ECHO Errorlevel is %ERRORLEVEL% @echo off ::Check if a file exists in a given directory ::(and subs) by extension - FFBE.CMD ::by Jacopo Lazzari ::thanks to Rob van Der Woude for the examples, tutorials and ::info on his page http://www.robvanderwoude.com/ ::and to Simon Sheppard http://www.ss64.com/ ::----------------------------------------------------------- ::Usage: FFBE.CMD <path> <.ext> :: path must end with \ ::----------------------------------------------------------- ::Example FFBE.CMD Dir /B /S %1*%2 | FIND "%2">nul If %ERRORLEVEL%==0 Echo At least one file with .ext %2 was found (no need to write to a temp file) jaclaz
-
Expand to file size (%~zI) doesn't work in XP
jaclaz replied to spacesurfer's topic in Unattended Windows 2000/XP/2003
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 -
Expand to file size (%~zI) doesn't work in XP
jaclaz replied to spacesurfer's topic in Unattended Windows 2000/XP/2003
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 -
Is there a way to compare folders in a batch file?
jaclaz replied to glaurung's topic in Windows 9x/ME
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 -
How to write a script?
jaclaz replied to kabucek's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
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 -
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
-
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
-
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
-
Multiboot problem : ( Added a SATA card )
jaclaz replied to gemini_shooter's topic in Multi-Boot CD/DVDs
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 -
How to use Choice.com in Unattended Setup?
jaclaz replied to spacesurfer's topic in Unattended Windows 2000/XP/2003
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 -
Installing Unattended from a USB Thumb Drive
jaclaz replied to pdmcmahon's topic in Unattended Windows 2000/XP/2003
Sorry, I really cannot understand .... jaclaz