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. That line would give a title of "%USERPROFILE%\Desktop" to the window. The "/h" is a paremeter to "some.exe". Read again the given link. command means the name of executable, including a fully qualified path to it UNLESS: the program is in the SAME directory as the running batch the program is anywhere in the PATH A GENERAL rule about command line and batch parsing is that the SPACE is a separator, thus a full path containing spaces MUST be enclosed in double quotes. A workaround is using 8.3 compliant names, but this can generate "colliding" paths. (hint: use DIR /X) Don't be tricked by the optional [/Dpath] option that sets the "working directory", not the target to be executed. jaclaz
  2. Well, I can recommend doing baby steps, just copy and paste this: Sub CountQualifiedLines() Dim CharCount As Integer Dim tCount As Integer Dim LineCount As Integer Dim Qualifier As String Qualifier = InputBox("Enter minimum line length:", "Line Length", 1) tCount = ActiveDocument.ComputeStatistics(wdStatisticLines) Selection.HomeKey wdStory Do While tCount > 0 Selection.EndKey Unit:=wdLine, Extend:=wdExtend CharCount = Selection.Characters.Count tCount = tCount - 1 If CharCount > Qualifier Then LineCount = LineCount + 1 End If Selection.Collapse wdCollapseStart Selection.MoveDown Unit:=wdLine, Count:=1 Selection.EndKey Unit:=wdLine, Extend:=wdExtend Loop Selection.HomeKey wdStory MsgBox "There are " & LineCount & " qualified lines in this document" End Sub In a new module in a Word Document (already containing some text). Run the Macro. See what it does, and study the code. (Hint1: You don't need a FOR loop, the example does a "countdown" from the total number of lines in the document down to 0) (Hint2: Anything following a Dim statement is a variable) jaclaz
  3. No, you don't need a patched SETUPREG.HIV. You need to patch your SETUPREG.HIV, READ here: http://www.msfn.org/board/48-bit-lba-win2k...13-page-17.html The batch will ONLY set the appropriate keys, leaving all the other ones (including the ones related to the version) as-they-are-now. jaclaz
  4. You don't have a problem with the USB booting, you have a problem with booting in Protected Mode, when text setup "switches" to it. Sometimes it can be solved by using a modified NTDETECT.COM, FAQ's (Frequently Asked Questions) are there exactly for this scope, check #3 here: http://www.msfn.org/board/faqs-t116766.html They should be actually called FGA (Frequently Given Answers) but call them how you like, they should be ALWAYS READ before asking what's already covered in them And BTW : Yes. http://homepages.tesco.net/J.deBoynePollar...no-answers.html jaclaz
  5. Paying a ransom? Naaah, better trying TESTDISK on it (if the filesystem structures are still good - which I doubt if you overwrote it by installng Windows 7 on it) or PHOTOREC (for file based only recovery): http://www.cgsecurity.org/wiki/TestDisk In any case it is STRONGLY recommended that you image the drive on another one; if you need to use PHOTOREC you will need ANYWAY another hard disk to store the recovered files. jaclaz
  6. Some ideas: http://technet.microsoft.com/en-us/library/ee692861.aspx http://vbcity.com/forums/p/146575/628427.aspx And some real world Macro examples: http://web.ticino.com/multilingual/word_ch..._count_tips.htm http://gregmaxey.mvps.org/Count_Lines_of_Text.htm The second example in the latter should be a good base for you. jaclaz
  7. @soarinblue I do understand that most of the board is dedicated to help not-very-expert people and that one should be very gentle with them. As well I perfectly know that "common sense" is one of the least common things around. You BLOCKED the present Board thread by posting in three subsequent posts three logs by copying and pasting them inside your posts! For the record, first one is 1,590,262 bytes long, second one is 1,592,324 and the third one (since you "reduced" it as being bigger than 200Kb) is a mere 43,502 bytes. Please find ATTACHED, NOT, and I mean NOT pasted inside a post, your three files COMPRESSED in a .7z archive, totaling 66,781 bytes. Next time, please ask how to send a file BEFORE posting two of them, each over 1.5 Megabytes! It took me more than half an hour and had to use all the tricks of the trade +1 to be able to access the thread and fix the mess you created. jaclaz soarinbluelogs.7z
  8. Actually it has a simplified sintax, look: dd [bs=SIZE] [count=BLOCKS] [if=FILE] [of=FILE] [seek=BLOCKS] [skip=BLOCKS] [--size] [--list] [--progress] semplified to: dd [if=FILE] [skip=BLOCKS] [count=BLOCKS] [of=FILE] TO copy the MBR of hard disk 1 (Second hard disk) to file C:\mymbr1.bin: dd [bs=512] if=\\.\PhysicalDrive1 skip=0 count=1 of=C:\mymbr1.bin Example of output: C:\VSS>dd /? rawwrite dd for windows version 0.5. Written by John Newbigin <jn@it.swin.edu.au> This program is covered by the GPL. See copying.txt for details Unknown command /? dd [bs=SIZE] [count=BLOCKS] [if=FILE] [of=FILE] [seek=BLOCKS] [skip=BLOCKS] [--s ize] [--list] [--progress] SIZE and BLOCKS may have one of the following suffix: k = 1024 M = 1048576 G = 1073741824 default block size (bs) is 512 bytes skip specifies the starting offset of the input file (if) seek specifies the starting offset of the output file (of) C:\VSS>dd if=\\.\PhysicalDrive1 skip=0 count=1 of=C:\mymbr1.bin rawwrite dd for windows version 0.5. Written by John Newbigin <jn@it.swin.edu.au> This program is covered by the GPL. See copying.txt for details 1+0 records in 1+0 records out The same using dsfo: dsfo \\.\PhysicalDrive1 0 512 C:\mymbr1.bin Example of output: C:\VSS>dsfo dsfo v1.03-CLI, Freeware - use at your own risk (c)2005 Dariusz Stanislawek, http://freezip.cjb.net/freeware Usage: dsfo source offset size destination Note: null size is interpreted as max possible output negative size is calculated on current file size negative offset is calculated from end of file use "$" as destination to check MD5 signature only Example: dsfo c:\tmp\my.avi -50000 0 test.bin dsfo \\.\d: 0 512 c:\0\partition-sectors.dat dsfo \\.\PHYSICALDRIVE0 0 0 \\srv\shr\tmp\first.dsk dsfo \\.\a: 0 0 "c:\tmp\floppy disk image.img" dsfo \\.\e: 0 0 d:\CDROM_or_DVD_image.iso C:\VSS>dsfo \\.\PhysicalDrive1 0 512 C:\mymbr1.bin C:\mymbr1.bin - Existing file. (dsfo, UNLIKE dd will NOT overwrite an existing file) C:\VSS>del c:\mymbr1.bin C:\VSS>dsfo \\.\PhysicalDrive1 0 512 C:\mymbr1.bin OK, 512 bytes, 0.000s, MD5 = fc5ffca90519daa9c9c8d5dfeb7911a4 jaclaz
  9. Optimism is your not strong point, I presume. You should separate the problem in two parts: 1) unbricking the drive 2) updating the firmware The worst thing that can happen with #1 is that the procedure doesn't work (and then there is no reason to worry about #2), but it is unlikely given the number of people that reported success. Of course it is well possible that the problem of your drive is NOT related to the issue that the procedures try to fix (0LBA oer BSY due to the 320th log entry. On the other hand, if you succeed with #1 the ONLY thing that you should do in your right mind is FORGET about the firmware, get all the data you can off the stoopid seagate and put it on another disk, then the seagate will have NO value whatsoever, and you can do all the experiments and tests you want with it, again, even if the Firmware update is successful, DO NOT trust that drive. However, and since you asked: judging also from your other post here: http://www.msfn.org/board/instructions-che...63.html&hl= You are approaching it the "wrong" way. You are a bit pessimist/overcautious BUT: you are going to use a non-supported OS (Windows 7 instead of XP/2003) you are going to use a known to be a possible failure hardware (the CA-42): you don't trust yourself but are willing to trust a stranger that says he is able to do recover for you and give him your drive The suggested approach is: use the OS that has been reported to be working for sure (XP/2003) use one of the TTL adapters that have been reported to be working for sure trust ONLY yourself and/or a friend of yours technically oriented or a professional The "main" thread is full of people who reported success with one or the other method and practically noone reporting an "absolute" failure, i.e NO hints that performing the procedure has damaged a drive even when it failed to unbrick it. jaclaz
  10. It's a simple one way switch, you either try WD-40 or a similar contact cleaner or you simply connect the two pins to which the microswitch is connected on the motherboard with a loop of wire. But it should not affect external displey. Cannot say more without a better description of what is happening, but it does smell like a "real" hardware problem (fried videocard). jaclaz
  11. YES. http://homepages.tesco.net/J.deBoynePollar...no-answers.html Read post #8 above, and all the following ones, for good measure, and particularly #11. Replace the call to diskpart with a call to your interactive batch or other disk management utility. jaclaz
  12. Great! jaclaz
  13. This is gonna be tricky business. It is possible that something has changed in the drive (something at a low enough level to be not a problem on a non-raid setup, but high-level enough to be detected by the controller). It greatly depends on the controller and the utilities that come with it, but AFTER having made a forensic sound (dd-like byte by byte copy of each and every disk) you could try forcing the failed drives online, there should be a way to do so. It is also possiblre to re-assemble the data, example: http://www.freesoftwaremagazine.com/articles/recovery_raid a Commercial app: http://www.runtime.org/raid.htm that has a demo capable of telling you if the "full" version will be able to recover the data. DO NOT EVEN THINK of doing any work on those drives before having imaged them. jaclaz
  14. Thank goodness, then I can sum the + 667 I got on another one and have an average of 261.50 jaclaz
  15. Well, no. I mean the idea was to try using showdrive.exe or mountstorePE INSTEAD of mnt.exe. mnt.exe needs to be given "arguments", showdrive.exe or mountstorePE will IF they find a device not mounted to a drive letter to mount it. jaclaz
  16. DO NOT go here: hxxp://www.immaginidivertenti.com/details.php?image_id=10408 jaclaz
  17. JFYI : http://ibw.cwbuechler.com/newblog/?p=1374 Now, seriously, the SPAMmers appear to be using megawebservers/megamailservers, you should report what is happening to them: http://www.megawebservers.com/ http://www.megamailservers.com/ The hxxp://beachavenuemedical.com/ appears like a compromised site: http://whois.domaintools.com/beachavenuemedical.com that tries to run a "fake antivirus" script on access. jaclaz
  18. Yep, the NEW Windows 7 bootsect.exe, UNLIKE the Vista one, can "touch" the MBR, but with the /mbr switch, NOT with the OLD (Longhorn) /fixmbr Though I wonder why there is this: Last time I checked computer worked with binary, things are either 0 or 1, On or Off, work or don't work..... Should it be not clear, IN VISTA: Bootsect.exe Modifies the Bootsector Not the MBR!! http://neosmart.net/blog/2007/bootsectexe-...or-not-the-mbr/ VISTA: http://technet.microsoft.com/en-us/library...177(WS.10).aspx WINDOWS 7: http://technet.microsoft.com/en-us/library...577(WS.10).aspx BUT: A very good example of how things are properly documented and changes are clearly highlighted. There may be a way out in the future : http://www.physorg.com/news182595455.html Yep, a really nice lapsus calami ... lapsus clavi ... lapsus Freudiani : http://en.wikipedia.org/wiki/Lapsus jaclaz
  19. No matter if they work or not, DO NOT use them , use the first one: one single set of double quotes wrapping around the WHOLE path\exe. SYNTAX is there to be respected, not "invented", the first "wrong" example works only because you do not have a space in \Desktop\some.exe and the second (the one with the odd double quote) only works because of a "parsing defect" of the command interpreter, don't trust it. Third is pointless, it only adds to extra unneeded characters. jaclaz
  20. START often needs a "title" to work: http://ss64.com/nt/start.html If there is a space in the path to the command, it must be enclosed in double quotes. Check if userprofile is defined I.E:: SET USERPROFILE PAUSE START "Window Title" "%USERPROFILE%\Desktop\some.exe" jaclaz
  21. I added this to the txtsetup.sif and after ending up by the setup-error. I tryed to run it in the cmd. But it shows nothing but a empty line. Are there any parameters i can use? I don't understand the Chines/Japanes-symbols No, it's a "silent tool". Read the referenced thread. Try running dosdev before and after using showdrive ot mountstorePE: http://www.boot-land.net/forums/index.php?...c=10169&hl= jaclaz
  22. WHICH threads? WHERE? bootsext.exe And no, even bootsect.exe won't work. http://neosmart.net/blog/2007/bootsectexe-...or-not-the-mbr/ You can use MBRFIX allright, however: http://www.sysint.no/nedlasting/mbrfix.htm jaclaz
  23. D@mn, it seems like I am not allowed in the society for US$79, I also tried to bribe them with another 100 bucks , but nothing , they keep saying that the problem with my result of 144 is the little "-" sign in front of it..... jaclaz
  24. Some Toshiba's (cannot say if that model) do suffer from a problem of connection between motherboard/videocard and display (the cable is simply a slightly bit too short and can make a loose contact). Can you try with an external VGA display and see if it behaves the same? Usually all it is needed is to remove the little cover between keyboard and scrren hinges and take out/re-seat connector: http://www.paulstravelpictures.com/Toshiba...uide/index.html http://www.paulstravelpictures.com/Toshiba...-Guide-042.html http://www.paulstravelpictures.com/Toshiba...-Guide-043.html http://www.paulstravelpictures.com/Toshiba...-Guide-044.html http://www.tomshardware.co.uk/forum/53660-...re-repair-guide Also sometimes the microswitch that turns screen on/off gets stuck. jaclaz
×
×
  • Create New...