Jump to content

jaclaz

Member
  • Posts

    21,291
  • Joined

  • Last visited

  • Days Won

    53
  • Donations

    0.00 USD 
  • Country

    Italy

Everything posted by jaclaz

  1. NO, you DID NOT. It's first line says: You FAILED reading the read-me-first BEFORE. READ it NOW : Pay PARTICULAR attention to point #7! While you are at it ALSO READ the FGA's: again, #7 will interest you. jaclaz
  2. Where? Please choose one: Popular mechanics Disney's Cinderella A friend told me Cannot remember Technically, re-formatting does NOT mean "wiping". If ONLY formatting is performed it is likely that data can be recovered. If formatting is done after wiping (as in the case of a "forced access" with no password may do) NO data will be recoverable. But it GREATLY depends on the platform and HOW the password is set. Some SD cards use a file called MMCSTORE, see here: http://www.ehow.com/how_6932377_unlock-micro-sd-card-password.html and here: http://www.mobiletipstricks.com/how-to-unlock-the-password-protected-memory-card-of-your-mobile-phone/ jaclaz
  3. Also, third party and with source: http://www.codeproject.com/KB/DLL/showver.aspx jaclaz
  4. The "§" is just a "never or very rarely used" character I have on my italian keyboard, it's ALT+0167 You can use any other character that is "never" used that you have handy, like "#" or "Ø" or a string that you know is not in the address. As an example you could do (since in the example we have only %2f and %3a: and later: SET myaddress=%myaddress:mickey_mousea=:% SET myaddress=%myaddress:minnief=/% Whenever the command parser finds a "%" followed by a number, like "%2", "%3" since that is the way to designate parameters in batch, it automatically sustitutes them with the value of the corresponding parameter. %0 is the actual command that started the batch %1 to %9 are the first nine parameters passed to it when invoked. So if you do not pass these parameters when the batch finds: "http%3a%2f%2fdownload.microsoft.com%2fdownload%2f8%2f4%2fA%2f84A35BF1-DAFE-4AE8-82AF-AD2AE20B6B14%2fdirectx_Jun2010_redist.exe" it will nicely "expand" it to: "httpaffdownload.microsoft.comfdownloadf8f4fAf84A35BF1-DAFE-4AE8-82AF-AD2AE20B6B14fdirectx_Jun2010_redist.exe" i.e. will replace any occurrence of %2 and of %3 with the values of the corresponding parameter (which is "null"). by calling a sub-routine giving it the (fake) parameters, we replace effectively %2 and %3 with the values of the respective parameter, i.e. §2 and §3. Then we replace §2f with / and §3a with : . jaclaz
  5. That's not "different". For *any* reason *something* changed the link. Those are "common" characters "translated". %3a=:= ASCII 58 Dec %2f=/= ASCII 47 Dec etc. Managing % signs in batch is tricky, but in this case it can be done nonetheless, by using a subroutine. You can use Variable text substitution allright, example: CALL :my_sub §1 §2 §3 §4 §5 §6 §7 §8 §9 GOTO :EOF :my_sub SET myaddress="http%3a%2f%2fdownload.microsoft.com%2fdownload%2f8%2f4%2fA%2f84A35BF1-DAFE-4AE8-82AF-AD2AE20B6B14%2fdirectx_Jun2010_redist.exe" SET myaddress=%myaddress:§3a=:% SET myaddress=%myaddress:§2f=/% SET myaddress GOTO :EOF See if something like the above fits in your script/for your use. jaclaz EDIT: beware of trailing spaces added by the board!
  6. Well, it depends on the OS you are running, if anyhting like 2K and later you can use the %DATE% variable allright. Some reference: http://www.robvanderwoude.com/datetime.php http://www.robvanderwoude.com/datetimentbasics.php http://www.robvanderwoude.com/datetiment.php The problem is usually with regional settings/international standards, but if you only use on a given system or on more systems with the same country settings, it is quite easy to manage it.. jaclaz
  7. There is a pre-made batch, here: http://www.robvanderwoude.com/files/readini_nt.txt to parse .ini files (very similar if not identical to .inf/.sif files) that can possibly be adapted to your uses. Read also these: http://reboot.pro/3960/ Also, there is a tool, fedit.exe , here: that has the "once" switch that may come useful. The "prepare.cmd" here contains some examples of the use of fedit: jaclaz
  8. @allen2 I don't know either, I just provided what IMHO is the simplest solution that fulfills the OP requirements and works with the examples posted. It is not meant in any way as a competition of the type "my batch is better than yours", it's simply a way to exchange ideas. @tomasz86 Try with: @ECHO OFF FOR /F %%A IN ('dir /b .\TEMP2\*.ver') DO ( FOR /F "skip=1 tokens=*" %%B IN (.\TEMP2\%%A) DO ( ECHO .\TEMP2\%%A -- %%B ECHO %%B >>.\TEMP2\update.txt ) ) ECHO [SourceFileInfo] >.\HFMER\UPDATE\update.ver SORT .\TEMP2\update.txt >>.\HFMER\UPDATE\update.ver DEL .\TEMP2\update.txt ECHO. MORE .\HFMER\UPDATE\update.ver Or use %~dp0: @ECHO OFF FOR /F %%A IN ('dir /b %~dp0*.ver') DO ( FOR /F "skip=1 tokens=*" %%B IN (%~dp0%%A) DO ( ECHO .%~dp0%%A -- %%B ECHO %%B >>%~dp0update.txt ) ) ECHO [SourceFileInfo] >%~dp0HFMER\UPDATE\update.ver SORT .\TEMP2\update.txt >>%~dp0HFMER\UPDATE\update.ver DEL %~dp0TEMP2\update.txt ECHO. MORE %~dp0HFMER\UPDATE\update.ver If I get it right what you need/want. %0 is the actual command line invoked i.e. the name of the batch or parameter 0 (zero). %~dp0 is the same variable expanded to only drive and path (with a trailing backslash) jaclaz
  9. @allen2 You don't actually *need* grep or any other "third party" program for such a simple task. You can use either FIND /V "[" to exclude the line(s) containing square brackets or or use a FOR /F with a SKIP=1 (if that line is always the first one), or use FIND or FINDSTR to only get lines containing commas. This could do: @ECHO OFF IF EXIST result.txt DEL result.txt FOR /F %%A IN ('dir /b *.txt') DO ( FOR /F "skip=1 tokens=*" %%B IN (%%A) DO ( ECHO %%A -- %%B ECHO %%B >>lines.txt ) ) ECHO [SourceFileInfo] >result.txt SORT lines.txt >>result.txt DEL lines.txt ECHO. MORE result.txt jaclaz
  10. Sorry, but I completely fail to see the point. If you have a sore throat or a flu, normally you DO NOT set your left ankle in a plaster cast for 1 month. This is because casting your left ankle is a solution/cure for a broken left ankle and NOT for the sore throat. Not really a problem of the "cure" in itself, but rather of applying the cure to a different disease. Whomever you took those drives to is DOUBTLY a "good" recovery company, drives with sticked heads can normally be recovered by doing a transplant or manually freeing the heads, and at least part of the data can usually be recovered. Of course this is not "normal" data recovery and has very high costs, but normally it is doable. If you have nothing to loose (and I mean NOTHING), in a very few cases "percussive maintenance" can free a stuck head, only don't think it will work, chances are very, very, and I mean VERY low. If you think of it just like playing the lottery, you may win: http://forum.hddguru.com/failed-amateur-diy-repair-seagate-barracuda-7200-t15326.html jaclaz
  11. If you get to a text menu that allows you to choose between Vista and XP probably you have that kind of setup. If you installed XP first, then Vista , then you have that kind of setup. If you cannot remember HOW you installed the thingy, you may want to read on the given site, it also contains nice graphical explanation of the "normal" dual boot... jaclaz
  12. Knowing which EXACT BSOD (STOP ERROR number) you get would greatly help.... jaclaz
  13. As I see it, easiest would be (I presume that your current dual boot uses Vista BOOTMGR), as described and detailed here: http://www.multibooters.co.uk/multiboot.html So: Boot to XP run bootsect.exe /NT52 on the drive delete all Vista files (in the Vista partition) rename (in the boot partition) the BOOTMGR to BOOTMGR.OLD and the \boot\BCD to \boot\BCD.OLD re-boot (verify that XP boots allright) At this point you have a "normal" XP with an additional empty partition. Install 7 normally. jaclaz
  14. In my experience, 98 in 32 Mb is not going to work "right" (in the sense that it will be SLOW). A 95 will work allright. Most probably a good compromise will be a "Mindows" or "98-lite" (i.e. 95 base+additional 98). This will pose serious licensing questions as you theoretically need TWO licenses, one for the 95 and one for the 98. Some info about making a "98 lite" can be found here: http://reboot.pro/forum/53/ http://www.winimize.com/ jaclaz
  15. The same reason why any parent shouldn't have more than 64,000 children? http://support.microsoft.com/kb/303969/en-us More interesting KB's : http://www.jazzkeyboard.com/jilly/funny-microsoft-q-articles-from-the-technet-support-knowledge-base/ jaclaz
  16. Something to try (of course TOTALLY at YOUR risk ): http://revosleep.realspooky.de/ jaclaz
  17. Yeah, with more than 10 000 000 files , usually a small white flag is waved out of the PC Comeon , there are better ways and more suitable tools to access/find a file in a directory with more than a senceful number of files... jaclaz
  18. Winzip was NOT mentioned AFAIK, 7-zip has two panes. And yes, Necromancer is a "branch" of DN. jaclaz
  19. Nice catch, vinifera , completely forgot about that issue For the record the dud is here: http://www3.telus.net/_/dud/ Some info here: http://volja.hr/dmakriev/moj/articles.html jaclaz
  20. Hmm, no. AFAIK, it's not an "XP problem" is "Explorer in XP". Try using some other filemanager, as suggested in one of the given links, try XPlorer: http://www.zabkat.com/x2lite.htm or do a "paradigm shift", personally I use 7-zip as a file manager as though not exactly OFM (reference): http://www.softpanorama.org/OFM/index.shtml it can use two panes, and I cannot live without this feature. Of the actual NC "clones", the one that works best for me on NT based systems is DN: http://www.ritlabs.com/en/products/dn/ http://www.dnosp.com/ http://www.dn2.byte.nsk.su/ though quite a bit of configuration is needed. But there are many other Freeware ones, including this one (UNtested by me, but that I have seen mentioned as being a nice one): http://xiles.net/downloads/#NexusFile jaclaz
  21. That's my bad , I used as "base" the original batch. But isn't anyway the "its" redundant? Like: Echo Pls enter [full file path] / filename including extension below. jaclaz
  22. I guess you should run an antivirus/malware removal utility ANYWAY. (they are not only for "newbies"). Now, seriously, that "delay" is INHERENT to using Explorer as a filemanager, NC or similar simply behave differently. There may be also a .dll version problem: http://support.microsoft.com/kb/873414/en-us If you are using NTFS, NTFS Last Access Time and NTFS 8.3 Filenames may be part of the problem: http://home.comcast.net/~SupportCD/OptimizeXP.html http://support.microsoft.com/kb/121007/en-us http://technet.microsoft.com/en-us/library/cc785435(WS.10).aspx Drive indexing may be another cause. http://forums.techarena.in/guides-tutorials/3829.htm http://forums.techarena.in/guides-tutorials/3829.htm#post38730 Do not underestimate conflicts with some software you have installed, and particularly with Context Menu handlers and with file associations, a semi-random example: http://answers.google.com/answers/threadview?id=464700 jaclaz
  23. You are right. My sincere compliments to the good IPB guys that managed to **** (four letter word asterisked to protect the innocents) yet another feature of the board software. Happy everything is fine, now, thanks for noticing. jaclaz
  24. Well, first thing it is NOT "counterfeited". As said, it is perfectly normal to change the DRVCOPY.INF to point to a new, different driver. This is actually WHY DRVCOPY.INF is there in the first place. See contents of CONFIG.SYS: DEVICE=HIMEM.SYS BUFFERS=20 FILES=60 REM ============== REM OEM Notes - remove these remarks before shipping to customers. REM - You need to include the correct CD driver information for your REM IDE or SCSI CDROM Drivers below. REM - You must modify Autoexec.bat and DRVCOPY.INF also. REM ============== ;DEVICE=SAMPLE.SYS /D:OEMCD001 DEVICE=TEAC_CDI.SYS /D:TEAC-CDI /P:S In other words, the actual floppy that MS sent to the OEM did use a "dummy" driver, "SAMPLE.SYS" and it was up to the OEM to replace it with the appropriate driver for the particular hardware the machine was shipped with. If you prefer, an OEM floppy with DRVCOPY.INF and SAMPLE.SYS dated July 11 1995, 9:50 AM was NEVER released to a customer. Second thing if you like "genuine goods" you should PAY for them (instead of begging for them). and get a "real" floppy and NOT an image, which is "counterfeited" ANYWAY. Rest assured that from your behaviour on this and on other boards where you issued this or similar requests I do know that the above will be perfectly unuseful as you simply refuse to listen and understand, but I feel it was needed anyway, compare with the But ... then, why? in my signature, also available here: http://homepage.ntlworld.com./jonathan.deboynepollard/FGA/dukhat-on-foolishness.html jaclaz
  25. This checks if %1 (the first parameter given when the file is run) is null. Technically, to avoid an error if there is no parameter, one adds a charcter (the dot is just a commonly used one) on both side of the equal sign. %* means ALL parameters given to the batch, since it is possible that - for any reason - a string containing a space is given as parameter, we use the "whole" set. This does not really apply to drag 'n drop, since if the dropped filepath/name contains a space, it will always be surrounded by double quotes, you can replace in your case %* with %1 allright This sintax that means: find in variable file2check the characters after the : and to the left of the = and replace it with the characters on the right of the = (which in this case is "nothing") More details here: http://www.robvanderwoude.com/ntset.php String substitution Are you sure the second example doesn't work? It does work here. jaclaz
×
×
  • Create New...