Jump to content

tomasz86

Member
  • Posts

    2,787
  • Joined

  • Days Won

    1
  • Donations

    0.00 USD 
  • Country

    Poland

Everything posted by tomasz86

  1. The advantage is that you also get seconds and that it's completely locale independent (you get hours in the 24-hour format).
  2. How about this as a workaround? CD.>temp cabarc n temp._ temp FOR /F "skip=9 tokens=3-8 delims=/: " %%A IN ('cabarc l temp._') DO ECHO %%A%%B%%C.%%D%%E%%F The result is same as using date.exe +%%Y%%m%%d.%%H%%M%%S
  3. @Yzöwl Expand.exe works but is extremely slow compared to "cabarc L". @jaclaz Why "!0,28!"? It won't work for longer filenames, will it? This is a good question Probably not but I just want to go safe.
  4. UPDATE This is an update to the post #25. You need to patch the cabbed archive differently depending on whether it's an update or a service pack. 1) Patching update.exe (v. 6.x.x.x) using XVI32: ECHO>sfxcab.xsc REPLACE 0B 01 04 89 1D BY 0B 01 10 89 1D START/WAIT xvi32.exe update.exe /S=sfxcab.xsc DEL sfxcab.xsc 2) Patching the archive (update.cab) before merging it with MSCF.sfx: Update ECHO>sfxcab.xsc REPLACE 20 00 75 70 64 61 74 65 5C 75 70 64 61 74 65 2E 65 78 65 BY 60 00 75 70 64 61 74 65 5C 75 70 64 61 74 65 2E 65 78 65 START/WAIT xvi32.exe update.cab /S=sfxcab.xsc DEL sfxcab.xsc Service Pack ECHO>sfxcab.xsc REPLACE 20 00 69 33 38 36 5C 75 70 64 61 74 65 5C 75 70 64 61 74 65 2E 65 78 65 BY 60 00 69 33 38 36 5C 75 70 64 61 74 65 5C 75 70 64 61 74 65 2E 65 78 65 START/WAIT xvi32.exe update.cab /S=sfxcab.xsc DEL sfxcab.xsc
  5. It seems to be Windows 2000 / IE5. You can probably use the files for Windows 9x too.
  6. And these included CURRENT updates for IE 5? Yes
  7. Where in heck are you getting updates for Windows 2000, let alone Internet Explorer 5x? The updates should have ended in July 2010. They are included in the Security Releases ISO images http://support.microsoft.com/kb/913086
  8. M$ still releases updates for IE5 (Windows 2000) three years after EOL...
  9. I'm now trying to solve a different problem... I want to retrieve filename from a cabbed file. Let's say that the file is called "abc.dl_" and the real filename is "a b c.dll". If you run cabarc l abc.dll_ you get Microsoft (R) Cabinet Tool - Version 5.2.3790.0 Copyright (c) Microsoft Corporation. All rights reserved.. Listing of cabinet file 'abc.dl_' (size 18989): 1 file(s), 1 folder(s), set ID 0, cabinet #0 File name File size Date Time Attrs ----------------------------- ---------- ---------- -------- ----- a b c.dll 36352 2013/03/30 12:13:14 -a-- I've come up with this script: @ECHO OFF SETLOCAL ENABLEDELAYEDEXPANSION SET tokens1=1 :loop1 FOR /F "skip=9 tokens=%tokens1%" %%A IN ('cabarc l abc.dll') DO ( SET/A tokens1+=1 GOTO :loop1 ) SET/A tokens1-=5 SET tokens2=1 :loop2 FOR /F "skip=9 tokens=%tokens2%-%tokens1%" %%A IN ('cabarc l abc.dll') DO ( IF DEFINED File ( SET File=!File! %%A ) ELSE ( SET File=%%A ) SET/A tokens2+=1 GOTO :loop2 ) ECHO "!File!" PAUSE which does work, the result being "a b c.dll" but I'm just wondering if there's any simpler way to do it instead of using such two loops. My method is also far from perfect because it won't work if the real filename has more than one space in between, ex. "a b c.dll"
  10. You're probably right about MORE. I'll leave it for now. As for gsar, I just wanted to say that in case of gsar you need to take into account more special characters than in case of a pure batch. In your SPLITINF script gsar is used to replace characters like "?" or "&", etc. Is it really a problem to just use batch like this instead of gsar? FOR /F delims^=^ eol^= %%A IN (1.txt) DO ( SET Line=%%A SET Line=!Line: =! SET Line=!Line:%%=%%%%! SET Line=!Line:^&={#}! SET Line=!Line:^?={##}! SET Line=!Line:^<={###}! SET Line=!Line:^>={####}! SET Line=!Line:^^!={#####}! SET Line=!Line:^|={######}! ECHO !Line! )
  11. @marcdw Glad that the certificate issue has been fixed. I don't really know what the problem with the SQL Server is. Does it work correctly without UURollup? We need to make sure that it's UURollup to break it and not any other component. Please also take into account that I'm not a programmer and have got no knowledge about more advanced debugging so if the problem is really caused by the unofficial patches then it will be probably necessary to ask blackwingcat about it. Still, first of all, we need to know which unofficial package is the culprit. @AnX This is very interesting. There are only two differences between the daily and the weekly version. The first one is Calculator (calc.exe) which I'm 99% sure that has got nothing to do with Avast. The second one is urlmon.dll which may be related since Avast seems to rely on IE engine (that's why it doesn't work in Windows 2000 with IE5). I'll try to check it later. @bluebolt Which exact driver are you talking about? Could you give me a link, and also tell me the hardware ID of the device? I'll try to look into it.
  12. You can just use the official Java installer What's the problem with it? Are there any drivers available? What's the hardware ID of the device? I also use the same ASMedia driver so I can confirm that there are errors in the Event Viever. The system does shut down / suspend a little bit slowly but I haven't thought that it's because of the driver. Unfortunately I've got no skills to do anything more about it. As long as the system is stable and works properly then I'd say that it's not a serious issue.
  13. If you only add the driver and don't change any other options then I'm sure that everything will be OK. At least that's what I can say basing on the fact that I've done it numerous times in my system.
  14. If it's a completely different driver then you can safely use nLite again to integrate it.
  15. I find gsar quite problematic. There are characters like ":" or "\" which have to be replaced with something else in order to use them with gsar's "-r" option. It's also limited to 256 characters. At the moment I've changed the script so that everything which was done by gsar can be done with pure batch using the SET command, and there's even no significant different in speed (it's actually got faster by a few seconds). I can remove TABs using SET too. But that's not the point. I've discovered the "MORE /T" switch by accident and played with it for a while until I encounter the problem described above. I was just wondering why MORE suddenly stops when processing larger files. By the way, I think I've managed to get the Strings sorted: FOR /F "tokens=1* delims== " %%A IN (1.txt) DO ( IF "%%B"=="" ( SET Line=%%A="" ) ELSE ( FOR /F tokens^=1*^ delims^=^" %%C IN ("%%A="%%B"") DO ( SET Line=%%C"%%D IF !Line:~-2!==^"^" SET Line=!Line:~0,-1! ) ) ECHO !Line! ) This seems to work for all kinds of strings, including these: TZROOT=SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones HelpLink = "http://support.microsoft.com{##}kbid=2829069" MainCancelIntroString = "Thank you for reporting the Request. When you click ""Send Report"" button, data concerning why install failed will be sent to Microsoft" PowerShell_ReleaseNotesDir= the result being: TZROOT="SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones" HelpLink="http://support.microsoft.com{##}kbid=2829069" MainCancelIntroString="Thank you for reporting the Request. When you click ""Send Report"" button, data concerning why install failed will be sent to Microsoft" PowerShell_ReleaseNotesDir=""
  16. @allen2 MORE seems to work like TYPE when you pipe it to a file. MORE 1.txt>2.txt TYPE 1.txt>2.txt I don't see any difference in the output except for the case mentioned above when larger files are processed and it gets stuck at some moment...
  17. To be more specific, the current version of blackwingcat's 979683 is v14a and it's available together with his kernel here. Both of them are included in UURollup-v11.
  18. Does anyone know what the problem may be with: MORE /T0 1.txt>2.txt ? This removes all TABs from a file and seems to work fine when processing small files. However, when I try to do this with larger files then the command suddenly stops at 1.65MB (the size differs but the point is that it just won't go further). The last line of 2.txt is something like: -- More (86%) -- What's the case here?
  19. Installing KB979683-v2 won't change anything. You also need to manually add the registry entry after installing it. As I said, it's already included in UURollup-v11 so no need to add / install it separately
  20. At the moment the system is using only 2 cores. You need to increase the number in the registry. I've attached a script which will set the maximum number to 32. Thanks for reporting the problem. I'll add this setting to the new version of UURollup. Windows 2000 may not like HT. I'd suggest downloading CrystalMark 2004R3, doing a full benchmark with HT enabled and disabled, and then comparing the results. Windows2000_32CPU.cmd
  21. It's included in UURollup-v11 What do you mean? As long as your system detects all CPUs / cores then everything should be all right. @marcdw I'm suspecting that the problem may be caused by the broken user32.dll which is included in UURollup-v10d. Could you try to install the newest daily release of UURollup-v11 and see if it's fixed?
  22. Yes What are the sentences?
  23. Thanks Yours is actually better because it works even for something like this: MainCancelIntroString = "Thank you for reporting the Request. When you click ""Send Report"" button, data concerning why install failed will be sent to Microsoft" while mine doesn't.
  24. It would be extremely important to know whether it was caused just by Update Rollup 2 or by UURollup First of all, could you tell me exactly which unofficial packages you've installed? You can just list their filenames.
  25. Hmm, actually the strings go like this: 1.txt abc = 1 abc= 1 abc =1 abc = "1 2" abc= "1 2" abc ="1 2" etc. They're not consistent so sometimes there are quotes in other cases there aren't. Some goes for spaces. I'm using this script: FOR /F tokens^=1*^ delims^=^"^=^ %%A IN ('TYPE "1.txt"') DO ( FOR /F delims^=^" %%C IN ("%%B") DO ECHO %%A="%%C" ) and the output is: abc="1" abc="1" abc="1" abc="1 2" abc="1 2" abc="1 2"
×
×
  • Create New...