Content Type
Profiles
Forums
Events
Everything posted by Yzöwl
-
Batch Script Tips and Tricks for XPCDs
Yzöwl replied to DarkShadows's topic in Unattended Windows 2000/XP/2003
@ phkninja many of the altenative methods mentioned will incorporate your idea, just using a slightly different method. Taking a WMIC approach for example, I would do it according not to a file on the cd, but the volume name given by me when I created the disk. @echo off&setlocal enableextensions for /f "usebackq skip=1" %%a in ( `wmic cdrom where "VolumeName='UAWXPCD'" get drive ^2^>nul` ) do if errorlevel 0 set UACDROM=%%a for /f "usebackq skip=1" %%b in ( `wmic cdrom where "VolumeName='XTRASOFT'" get drive ^2^>nul` ) do if errorlevel 0 set SOFT_CD=%%b if defined UACDROM echo/ %%UACDROM%% is set as %UACDROM% if defined SOFT_CD echo/ %%SOFT_CD%% is set as %SOFT_CD% endlocal&goto :eofYou would ony need to adjust your VolumeNames to suit 'UAWXPCD' and 'XTRASOFT' <Edit> Small error noticed and fixed… </Edit> -
@ Rosebud6 A simple mistake first, %ALLUSERPROFILE% should be %ALLUSERSPROFILE% What is wrong with Windows built-in tool, start » run and type cleanmgr and click OK There are many batch files on the internet based upon this tool. Your biggest problem is that unless you get a third party solution, you should as a general rule leave well alone, most of the batch stuff you'll see on the web is downright dangerous, even on this forum. One of my first projects since moving to an XP system was to perform a similar task yours. It probably took around a year on and off, and although seemingly perfect, I still keep looking to improve it… …and no it's never going to be offered
-
Need help making a reg query batch.
Yzöwl replied to BoardBabe's topic in Unattended Windows 2000/XP/2003
What exactly are you wanting it for? Have you got more than one Network card? If yes then do any of them need setting up differently? I only ask because it may be better to build that functionality into the batch. -
login as your brother, then start » run and type REG ADD HKCU\Software\Microsoft\Windows\CurrentVersion\UnreadMail /v MessageExpiryDays /t REG_DWORD /d 0 /f then click OKand log out again.
-
That cannot be done for a drive, (they are asking for it for D:)
-
<Edit> I note from your posting, you do not have an E: drive and your D: drive is your optical drive. This of course means that choosing E will not work at all, how does yours? </Edit> Tools » Folder Options » General » Tasks Click the radio button Use Windows classic folders or open an explorer window instead Ctrl+E You could even use something like this in the Run dialogexplorer /e,/root,D:
-
If this doesn't do it, I doubt anything else will [SetupHotfixesToRun] .\java\javainstall.exe
-
Sorry for the cause of confusionto enable HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon",SFCDisable,0x10001,0 or HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon",SFCDisable,0x00010001,0x00000000 to disable HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon",SFCDisable,0x10001,-99 or HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon",SFCDisable,0x00010001,0xFFFFFF9D
-
I would try adding this line to HIVESFT.INF HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon",SFCDisable,0x10001,0
-
That is actually your winnt.sif file and will likely need locating at <UWXPCD>\I386. Read this for examples of both files.
-
Script To Access URL
Yzöwl replied to jeremychin's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
I don't mean to sound overly harsh, as we all tend to want answers without giving out information which someone may steal, but a script, a URL, a browser, possibly and a UserName is all a bit too vague and unlikely to attract many responses. -
I didn't say that your command wouldn't work BoardBabe just that it was technically incorrect. Now one thing that could feasibly happen is: If the del commands are all using the /s switch is that once it has found for example, C:\MyDir\MyFile.ext it will then continue searching through all subdirectories of C:\MyDir looking for files called MyFile.ext before moving onto the next command, you could end up with the scenario of commands not completing before the next one starts or even memory errors
-
WINNT.SIF entries ignored during setup
Yzöwl replied to jimbobmcgee's topic in Unattended Windows 2000/XP/2003
No the version of XP has no effect, you have made an error. Start again with a new directory structure and fresh source files. Also as I stated in my previous, ignored, post why rename Common Files to Common, when you are happy to leave all other directory names unchanged. I also gave you correct information for your regional settings, to which I have also had no response. Start again with a new directory structure and fresh source files. -
Cartoonite's, latest example is technically the most correct. The /S switch instructs to delete from all sub-directories too. The /F switch forces deletion of read-only files, which this file shouldn't be The /Q switch is really only needed on global wildcards in order to prevent 'are you sure…' type messages. Just in case this is of any interest to anybody, here is a list of shortcuts ----- Windows XP (sp2) Profile Directory Shortcuts (English) ----- "%AllUsersProfile%\Start Menu\Set Program Access and Defaults.lnk" "%AllUsersProfile%\Start Menu\Windows Catalog.lnk" "%AllUsersProfile%\Start Menu\Windows Update.lnk" "%AllUsersProfile%\Start Menu\Programs\MSN.lnk" "%AllUsersProfile%\Start Menu\Programs\Windows Messenger.lnk" "%AllUsersProfile%\Start Menu\Programs\Windows Movie Maker.lnk" "%AllUsersProfile%\Start Menu\Programs\Accessories\Calculator.lnk" "%AllUsersProfile%\Start Menu\Programs\Accessories\Paint.lnk" "%AllUsersProfile%\Start Menu\Programs\Accessories\WordPad.lnk" "%AllUsersProfile%\Start Menu\Programs\Accessories\Accessibility\Accessibility Wizard.lnk" "%AllUsersProfile%\Start Menu\Programs\Accessories\Communications\HyperTerminal.lnk" "%AllUsersProfile%\Start Menu\Programs\Accessories\Communications\Network Connections.lnk" "%AllUsersProfile%\Start Menu\Programs\Accessories\Communications\Network Setup Wizard.lnk" "%AllUsersProfile%\Start Menu\Programs\Accessories\Communications\New Connection Wizard.lnk" "%AllUsersProfile%\Start Menu\Programs\Accessories\Communications\Remote Desktop Connection.lnk" "%AllUsersProfile%\Start Menu\Programs\Accessories\Communications\Wireless Network Setup Wizard.lnk" "%AllUsersProfile%\Start Menu\Programs\Accessories\Entertainment\Sound Recorder.lnk" "%AllUsersProfile%\Start Menu\Programs\Accessories\Entertainment\Volume Control.lnk" "%AllUsersProfile%\Start Menu\Programs\Accessories\System Tools\Backup.lnk" "%AllUsersProfile%\Start Menu\Programs\Accessories\System Tools\Character Map.lnk" "%AllUsersProfile%\Start Menu\Programs\Accessories\System Tools\Disk Cleanup.lnk" "%AllUsersProfile%\Start Menu\Programs\Accessories\System Tools\Disk Defragmenter.lnk" "%AllUsersProfile%\Start Menu\Programs\Accessories\System Tools\Files and Settings Transfer Wizard.lnk" "%AllUsersProfile%\Start Menu\Programs\Accessories\System Tools\Scheduled Tasks.lnk" "%AllUsersProfile%\Start Menu\Programs\Accessories\System Tools\Security Center.lnk" "%AllUsersProfile%\Start Menu\Programs\Accessories\System Tools\System Information.lnk" "%AllUsersProfile%\Start Menu\Programs\Accessories\System Tools\System Restore.lnk" "%AllUsersProfile%\Start Menu\Programs\Administrative Tools\Component Services.lnk" "%AllUsersProfile%\Start Menu\Programs\Administrative Tools\Computer Management.lnk" "%AllUsersProfile%\Start Menu\Programs\Administrative Tools\Data Sources (ODBC).lnk" "%AllUsersProfile%\Start Menu\Programs\Administrative Tools\Event Viewer.lnk" "%AllUsersProfile%\Start Menu\Programs\Administrative Tools\Local Security Policy.lnk" "%AllUsersProfile%\Start Menu\Programs\Administrative Tools\Performance.lnk" "%AllUsersProfile%\Start Menu\Programs\Administrative Tools\Services.lnk" "%AllUsersProfile%\Start Menu\Programs\Games\Freecell.lnk" "%AllUsersProfile%\Start Menu\Programs\Games\Hearts.lnk" "%AllUsersProfile%\Start Menu\Programs\Games\Internet Backgammon.lnk" "%AllUsersProfile%\Start Menu\Programs\Games\Internet Checkers.lnk" "%AllUsersProfile%\Start Menu\Programs\Games\Internet Hearts.lnk" "%AllUsersProfile%\Start Menu\Programs\Games\Internet Reversi.lnk" "%AllUsersProfile%\Start Menu\Programs\Games\Internet Spades.lnk" "%AllUsersProfile%\Start Menu\Programs\Games\Minesweeper.lnk" "%AllUsersProfile%\Start Menu\Programs\Games\Pinball.lnk" "%AllUsersProfile%\Start Menu\Programs\Games\Solitaire.lnk" "%AllUsersProfile%\Start Menu\Programs\Games\Spider Solitaire.lnk" "%AllUsersProfile%\..\Default User\Start Menu\Programs\Remote Assistance.lnk" "%AllUsersProfile%\..\Default User\Start Menu\Programs\Windows Media Player.lnk" "%AllUsersProfile%\..\Default User\Start Menu\Programs\Accessories\Command Prompt.lnk" "%AllUsersProfile%\..\Default User\Start Menu\Programs\Accessories\Notepad.lnk" "%AllUsersProfile%\..\Default User\Start Menu\Programs\Accessories\Program Compatibility Wizard.lnk" "%AllUsersProfile%\..\Default User\Start Menu\Programs\Accessories\Synchronize.lnk" "%AllUsersProfile%\..\Default User\Start Menu\Programs\Accessories\Tour Windows XP.lnk" "%AllUsersProfile%\..\Default User\Start Menu\Programs\Accessories\Windows Explorer.lnk" "%AllUsersProfile%\..\Default User\Start Menu\Programs\Accessories\Accessibility\Magnifier.lnk" "%AllUsersProfile%\..\Default User\Start Menu\Programs\Accessories\Accessibility\Narrator.lnk" "%AllUsersProfile%\..\Default User\Start Menu\Programs\Accessories\Accessibility\On-Screen Keyboard.lnk" "%AllUsersProfile%\..\Default User\Start Menu\Programs\Accessories\Accessibility\Utility Manager.lnk" "%AllUsersProfile%\..\Default User\Start Menu\Programs\Accessories\Entertainment\Windows Media Player.lnk" "%UserProfile%\Application Data\Microsoft\Internet Explorer\Quick Launch\Launch Internet Explorer Browser.lnk" "%UserProfile%\My Documents\My Music\Sample Music.lnk" "%UserProfile%\My Documents\My Pictures\Sample Pictures.lnk" "%UserProfile%\Start Menu\Programs\Internet Explorer.lnk" "%UserProfile%\Start Menu\Programs\Outlook Express.lnk" "%UserProfile%\Start Menu\Programs\Remote Assistance.lnk" "%UserProfile%\Start Menu\Programs\Windows Media Player.lnk" "%UserProfile%\Start Menu\Programs\Accessories\Address Book.lnk" "%UserProfile%\Start Menu\Programs\Accessories\Command Prompt.lnk" "%UserProfile%\Start Menu\Programs\Accessories\Notepad.lnk" "%UserProfile%\Start Menu\Programs\Accessories\Program Compatibility Wizard.lnk" "%UserProfile%\Start Menu\Programs\Accessories\Synchronize.lnk" "%UserProfile%\Start Menu\Programs\Accessories\Tour Windows XP.lnk" "%UserProfile%\Start Menu\Programs\Accessories\Windows Explorer.lnk" "%UserProfile%\Start Menu\Programs\Accessories\Accessibility\Magnifier.lnk" "%UserProfile%\Start Menu\Programs\Accessories\Accessibility\Narrator.lnk" "%UserProfile%\Start Menu\Programs\Accessories\Accessibility\On-Screen Keyboard.lnk" "%UserProfile%\Start Menu\Programs\Accessories\Accessibility\Utility Manager.lnk" "%UserProfile%\Start Menu\Programs\Accessories\Entertainment\Windows Media Player.lnk"
-
Help Me in Batch Programming
Yzöwl replied to pulkit's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
What about this! rundll deskcp16.dll,QUICKRES_RUNDLLENTRY 1024x768x24<Edit> I know but noone said it wasnt for Win9x either Back on subject, the current 32-bit version of the fore-mentioned is MultiRes 1.54, for scripting examples click here. </Edit> -
@ ripken204 I have never used AutoIt, but get the impression from what I've seen of it that either RunWait(@COMSPEC & ' /c rd /s /q "C:\Documents and Settings\All Users\Start Menu\Programs"') RunWait(@COMSPEC & ' /c md "C:\Documents and Settings\All Users\Start Menu\Programs"')or RunWait(@COMSPEC & " /c rd /s /q ""C:\Documents and Settings\All Users\Start Menu\Programs""") RunWait(@COMSPEC & " /c md ""C:\Documents and Settings\All Users\Start Menu\Programs""")may be a little closer to what you wanted.
-
Why are you using the /s switch, try this instead del /f /q "%AllUsersProfile%\Start Menu\Windows Catalog.lnk"
-
I found out some time ago that in Microsofts brilliant minds, the Administrative Tools folder is located in All Users even though it is recommended that All Users do not have Administrative Privileges. Even moving the folder from %allusersprofile% to %userprofile% breaks the shortcuts.
-
Try this instead! @Echo off Reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /v TEMP /t REG_EXPAND_SZ /d "%%SystemRoot%%\Temp" /f>Nul Reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /v TMP /t REG_EXPAND_SZ /d "%%SystemRoot%%\Temp" /f>Nul Pushd %UserProfile%\..\Default User Reg load HKU\TempHiv NTUSER.DAT>Nul 2>&1||Goto :Eof Reg add HKU\TempHiv\Environment /v TEMP /t REG_EXPAND_SZ /d "%%SystemRoot%%\Temp" /f>Nul Reg add HKU\TempHiv\Environment /v TMP /t REG_EXPAND_SZ /d "%%SystemRoot%%\Temp" /f>Nul :Un_ Reg unload HKU\TempHiv>Nul 2>&1||Goto Un_@darksimoon Just change the %SystemRoot% to %SystemDrive% etc. as necessary for your purposes. <Edit> Bilou the double pipe just means 'if unsuccessful then' </Edit>
-
@ Express You will probably need to lose the following line: "Settings"=hex:0c,00,02,00,0a,01,f8,75,60,00,00,00It will be different, depending upon the accumulation of all of your explorer settings. Also if you want to to the same thing for the IE search try this [HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main] "Use Search Asst"="no"
-
what's the Diff b/t Windows Media Center n XP Home
Yzöwl replied to rhythmnsmoke's topic in Software Hangout
Can you not sell ImmuneEngine to your future Mother-in-Law -
WINNT.SIF entries ignored during setup
Yzöwl replied to jimbobmcgee's topic in Unattended Windows 2000/XP/2003
Change it to CommonProgramFilesDir="D:\Program Files\Common Files"Also I use this [RegionalSettings] LanguageGroup = 1 SystemLocale = 00000809 UserLocale = 00000809 InputLocale = 0809:00000809Hope this helps! -
Log in as the user you want to remove then go to Start » Run paste this 'single line' in and click on OK REG ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\SpecialAccounts\UserList" /v "%USERNAME%" /t REG_DWORD /d 0 /f<Edit> You will obviously need to reboot to see the change. </Edit>
-
Just another thing with regards that line%16395%\Programs is the same as %16386%
-
Yes, basically you use CALL MyBatch to call another batch file and CALL :MyLabel to do as you asked. The last command under your label should preferably say GOTO :EOF, to pass the command back to the next command after CALL :MyLabel. Example @ECHO OFF ECHO. THIS IS MY FIRST ECHO COMMAND CALL :SECOND ECHO. THIS IS MY THIRD ECHO COMMAND GOTO :ENDIT :SECOND ECHO. THIS IS MY SECOND ECHO COMMAND GOTO :EOF :ENDIT ECHO. THIS IS THE END, GOODBYE PAUSE EXIT