Jump to content


  • Posts

  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country


Everything posted by nakira

  1. Why not just make it a .vbs from go to whoa? On Error Resume Next Dim Garbage, Shell, U, S Set Shell = WScript.CreateObject("WScript.Shell") U = Shell.ExpandEnvironmentStrings("%UserProfile%") S = Shell.ExpandEnvironmentStrings("%SystemDrive%") Set Garbage = CreateObject("Scripting.FileSystemObject") Garbage.DeleteFile(U & "\Desktop\Connect to the Internet.LNK") Garbage.DeleteFile(U & "\Application Data\Microsoft\Internet Explorer\Quick Launch\Launch Internet Explorer Browser.lnk") Garbage.DeleteFile(U & "\Favorites\MSN.url") Garbage.DeleteFile(U & "\Favorites\Radio Station Guide.url") Garbage.DeleteFile(U & "\Favorites\Web Events.url") Garbage.DeleteFile(U & "\Favorites\MSN.com.url") Garbage.DeleteFolder(U & "\Favorites\Links") Garbage.DeleteFolder(U & "\Favorites\Media") Garbage.DeleteFolder(S & "\winapps") Garbage.DeleteFile(WScript.ScriptFullName)
  2. Ehm, The vbscript and sample.cmd I gave didn't add anything, they only echoed some text along with the drive letter (e.g. C), no ":\\" at all anywhere. Any added would be from your code. Anyway try this cmdfile along with the vbsfile from my earlier post. This seeks the current places, and adds all drive letters as entries from the last existing entry it finds. That is, you already have "Place0"="G:\\" "Place1"="C:\\" "Place2"="C:\\Documents and Settings\\Administrator\\Desktop\\Wallpapers" "Place3"="C:\\Documents and Settings\\Administrator\\My Documents\\My Pictures" So this would add from Place4 onwards for as many drives as you have (with Place4 being C:\ again ) I don't know how many PlaceS you want though, you already have 4 and AFAIK only 5 are valid. *shrug* REM Addplaces.cmd @echo off setlocal ENABLEDELAYEDEXPANSION set cnt=-2 for /f %%i in ('reg query HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\comdlg32\PlacesBar /s') do ( set /A cnt+=1 ) cscript //nologo drives.vbs>drives.list FOR /F %%i in (drives.list) do ( reg add HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\ComDlg32\PlacesBar /v Place!cnt! /d %%i:\ /f set /A cnt+=1 ) del drives.list
  3. Well as I said I know nothing about WPI so I cannot say how to escape chars in it, sorry.
  4. Maybe use AutoIT, it has IniRead/IniWrite commands.
  5. In that case I would guess that WPI also needs the extra quotes etc to be escaped, because pos 42 on that line is right after the second quotation mark in the line. If you want an editor which will tell you exactly what line#|char# you're at try Metapad, I replace Notepad with on my XPCDs
  6. Exactly which line is 52? If it's the first, do you need to have a space before the parenthesis like below "if (document.inner.WPI.chkbox040.checked) {" PS I know nothing about WPI, just guessing here
  7. Yeah, if the key you need extra quotation marks or /switches that conflict with REG's switches you escape them.
  8. REG ADD %KEY%\080 /V 1 /D "\"%systemdrive%\program files\winzip\winzip32.exe\" /noqp /notip /autoinstall" /f
  9. This vbs file will create a shortcut named MyLink in %systemdrive% pointing to %windir%\a.cmd with the icon from regedit.exe
  10. ROFL of course. *slaps self* I need to wake my brain up.
  11. Here is a (messy) suggestion This vbs will return a list of all fixed drives. 'Drives.vbs Set fso = CreateObject("Scripting.FileSystemObject") Set dc = fso.Drives For Each d in dc if (d.DriveType = 2) Then ltr = ltr & vbCrLf & d.DriveLetter Next WSCript.Echo ltr A sample.cmd for usage @echo off cscript //nologo drives.vbs>drives.list FOR /F %%i in (drives.list) do echo Maybe use reg add on this line: %%i pause
  12. I think it's actually this entry [HKEY_CURRENT_USER\SOFTWARE\Microsoft\Internet Explorer\Desktop\Components] "GeneralFlags"=dword:00000000 Seems to be On = "GeneralFlags"=dword:00000002 Off = "GeneralFlags"=dword:00000000
  13. Here's an example... @echo off set realdate=%date:~4% date 01/01/03 date /t date %realdate% date /t
  14. Same reason as I included the makecab from the CAB SDK. The versions that come with Windows have a bug where files added to a cab archive have their file creation date changed to the date they were added to the archive.For what it's worth, I performed numerous tests between the CAB SDK version and the version included with XP SP2 and there was little to no difference in file sizes. OK thanks, I just wondered what the reason was. Edit Hm, does this bug only happen under certain conditions? I just unpacked several cabs and found the original file dates.
  15. Just a question. Why do you include such an ancient version of cabarc.exe? The version found in XP's Support tools (in CD\SUPPORT\TOOLS\SUPTOOLS.MSI) is much more recent.
  16. Get sleep.exe from http://unattended.msfn.org/xp/downloads.htm
  17. Have you run bootvis.exe by any chance? If so, you should run it again and select "Stop Tracing" from the 'Trace' menu in bootvis.exe. The first time it runs you turn logging on. After you reboot it analyzes trace.log. Then you run it again and turn logging off. HiH

  • Create New...