Content Type
Profiles
Forums
Events
Everything posted by Yzöwl
-
Just make sure that you have a file named SkypeSetup.exe in your source structure at \$OEM$\$1\Install, and your command will work fine.
-
listing all folder contents, in a text file
Yzöwl replied to prathapml's topic in Windows Tips 'n' Tweaks
7 Page thread on the subject -
I must add first, this is only a top of the head idea, if it doesn't work, you could always try replacing the Arguments string to Arguments = "/C FOR /F %? IN ('C D E F G H I J K L M N O P Q R S T U V W X Y Z') DO IF EXIST %?:\WIN51 START %?:\Progs\start.cmd"Another less likely possibility in case of failure is to treat it as a batch and change all instances of %? to %%?
-
You could try adding the following under [GuiUnattended] in your winnt.sif DetachedProgram = cmd.exe Arguments = "/C FOR /F %? IN ('MOUNTVOL ^| FIND ":\"') DO IF EXIST %?WIN51 START %?Progs\start.cmd"It should be two lines only! All you would need to do from start.cmd is reference your CD-ROM drive as %~d0 or CD-ROM\Progs\ as %~dp0
-
I have no idea if there is supposed to be a question, or if you are after comments, however, here's mine. 1. Put in a little error trapping 2. The correct syntax for the START command is START "title" /WAIT "command or program" /parametersEven if you're not using a title, you should at least leave it blank e.g. start "" /wait FlashShockwave\flashplayer7installer.exe /s 3. Change your file extensions to .cmd instead of .bat <Edit> 4. Why bother with the .reg file when you could apply the registry settings directly in a batch file using reg.exe </Edit>
-
If the inf works by right click install, then it will be performing the commands as defined under [DefaultInstall]. Therefore the most likely method of install would be to use the following command rundll32.exe setupapi,InstallHinfSection DefaultInstall 132 X:\Path\MyFile.inf As you use WPI, then I'm sure that the WPI forum would give you the correct syntax, but my guess would be something like this cmd1[pn]=['rundll32.exe setupapi,InstallHinfSection DefaultInstall 132 X:\\Path\\MyFile.inf']
-
More information would also be of help to further responders. Have you just got a list of MAC Addresses, have you got a list of MAC Addresses each accompanied by a required IP Address and SubNet. etc.
-
Yes - Why does everyone insist on giving out their Nero serial numbers also, just a little side note, since you are not using the %CDROM% variable directly, why waste a line, especially as the most important line is missing (IF NOT DEFINED PP GOTO :EOF) @ECHO OFF & SETLOCAL CMDOW @ /HID FOR %%? IN (C D E F G H I J K L M N O P Q R S T U V W X Y Z) DO IF EXIST %%?:\INSTALL\SCP SET PP=%%?:\INSTALL\SCP\ IF NOT DEFINED PP GOTO :EOF SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx REG ADD %KEY% /V TITLE /D "Instalando aplicaciones extras" /F REG ADD %KEY%\000 /VE /D ".NET Framework v2" /F REG ADD %KEY%\000 /V 1 /D "%PP%dotnetfx.exe\"" /F REG ADD %KEY%\001 /VE /D "Nero Burning Rom v 6.0.6.16" /F REG ADD %KEY%\001 /V 1 /D "%PP%Nero-6.6.0.16.exe /SILENT /NOLICENCE /NOREBOOT /SN=XXXX-XXXX-XXXX-XXXX-XXXX-XXXX /WRITE_SN" /F REG ADD %KEY%\001 /V 2 /D "%PP%Nero-6.6.0.16_esp.exe /SILENT /NOLICENCE /NOREBBOT" /F REG ADD %KEY%\002 /VE /D "UltraIso v7.65" /F REG ADD %KEY%\002 /V 1 /D "%PP%uiso7_me.exe /verysilent" /F REG ADD %KEY%\002 /V 2 /D "REGEDIT /S %PP%Ultraiso.reg" /F REG ADD %KEY%\003 /VE /D "Windows Media Player 10" /F REG ADD %KEY%\003 /V 1 /D "\"%PP%wmp10.exe /Q:A /R:N" /F REG ADD %KEY%\004 /VE /D "WinRAR 3.50" /F REG ADD %KEY%\004 /V 1 /D "%PP%WinRAR.exe /s" /F REG ADD %KEY%\005 /VE /D "Sun Java VM 1.4.2.05" /F REG ADD %KEY%\005 /V 1 /D "%PP%j2re-1_4_2_09-windows-i586-p.exe /s /v\"/qb IEXPLORER=1 REBOOT=ReallySuppress\"" /F REG ADD %KEY%\006 /VE /D "Outpost Firewall v3" /F REG ADD %KEY%\006 /V 1 /D "%PP%OutpostProInstall3.exe /VERYSILENT /NORESTART /SP /GROUP=\"Firewall\"" /F ENDLOCAL & GOTO :EOF<Edit> The switches etc. have not even been looked at. </Edit.
-
I'm not sure if they're supported in 2k3, see here!. Also for those adding the files I posted etc. to NT /2k /XP you may need to use the following registry edits too. REGEDIT4 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\ASPI32] "ErrorControl"=dword:00000001 "Start"=dword:00000001 "Type"=dword:00000001 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\ASPI32\Parameters] "ExcludeMiniports"=""
-
wmic os get CSDVersion | find "Service Pack 2" >nul || echo/ Service Pack 2 is not installed
-
Instructions for HFEXPERT.zip :: for ASPI 4.71.2 :: Add the following to the other IF EXIST statements below :HFEXPERT IF EXIST HFEXPERT\DRIVERS\* CALL :HFEDRIVERS :: Add the following in between :HFESYSTEM32 and :HFESYSTEM :HFEDRIVERS IF EXIST TEMP\DRIVERS\*.* XCOPY TEMP\DRIVERS\*.* WORK\I386E /Q/H/Y FOR /F %%I IN ('DIR/B/ON/A-D TEMP\DRIVERS ^2^>NUL') DO ( IF ERRORLEVEL 0 ( ECHO %%I = 1,,,,,,,4,0,0 ;HFEXPERT>>SOURCESS\I386\TXTSETUP.SIF ECHO d1,%%I ;HFEXPERT>>SOURCESS\I386\DOSNET.INF ) ) GOTO EOF :: Unpack the zip file to \HFSLIP\HFEXPERT<Edit> Delete the instructions as required </Edit>
-
Batch to set pagefile
Yzöwl replied to DL.'s topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
I'm glad you found it, I don't use nLite, therefore couldn't for the life of me work out the problem. I even set up a couple of installations, just to test it, and it seemed okay. -
What about this then? copybar.zip It is a cmd file without third party tools etc. which I have wrote as an example. It works fine on my test systems.Just make sure that there's enough space on your system drive, pop your CD-ROM in, stop it spinning up, unpack the file, double click and watch! Regards
-
Here are a couple of posts I know I've made on the very subject Setting Up Security Templates, Installing Templates Via UA Possible security template issue
-
Batch to set pagefile
Yzöwl replied to DL.'s topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
Other than changing the order of the options, I cannot see anything wrong in those linesCSCRIPT %SYSTEMROOT%\%~n0.vbs //B //NOLOGO IF EXIST %SYSTEMDRIVE%\pagefile.sys ( CSCRIPT "%SYSTEMROOT%\system32\pagefileconfig.vbs" //B //NOLOGO /Change /I 1028 /M 1028 /VO %SYSTEMDRIVE% ) ELSE ( CSCRIPT "%SYSTEMROOT%\system32\pagefileconfig.vbs" //B //NOLOGO /Create /I 1028 /M 1028 /VO %SYSTEMDRIVE% ) -
Where to?
-
Batch to set pagefile
Yzöwl replied to DL.'s topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
There doesn't appear to be anything particularly wrong with the file you posted, a couple of possible pitfalls at most. The main one being, this can potentially include unrequired spaces %%i: == %systemdrive% Try this slight modification, I have left the structure the same, let us know of any improvement or change etc. @ECHO OFF CMDOW @ /HID IF EXIST %SYSTEMROOT%\%~n0.vbs GOTO DE COPY %0 %SYSTEMROOT%>NUL ECHO strComputer = ".">>%SYSTEMROOT%\%~n0.vbs ECHO Set objWMIService = GetObject("winmgmts:" _>>%SYSTEMROOT%\%~n0.vbs ECHO ^& "{impersonationLevel=impersonate}!\\" ^& strComputer ^& "\root\cimv2")>>%SYSTEMROOT%\%~n0.vbs ECHO.>>%SYSTEMROOT%\%~n0.vbs ECHO Set colPageFiles = objWMIService.ExecQuery _>>%SYSTEMROOT%\%~n0.vbs ECHO ("Select * from Win32_PageFileSetting")>>%SYSTEMROOT%\%~n0.vbs ECHO.>>%SYSTEMROOT%\%~n0.vbs ECHO For Each objPageFile in colPageFiles>>%SYSTEMROOT%\%~n0.vbs ECHO objPageFile.InitialSize = 10 >>%SYSTEMROOT%\%~n0.vbs ECHO objPageFile.MaximumSize = 10 >>%SYSTEMROOT%\%~n0.vbs ECHO objPageFile.Put_>>%SYSTEMROOT%\%~n0.vbs ECHO Next>>%SYSTEMROOT%\%~n0.vbs CSCRIPT //B //NOLOGO %SYSTEMROOT%\%~n0.vbs IF EXIST %SYSTEMDRIVE%\pagefile.sys ( CSCRIPT //B //NOLOGO "%SYSTEMROOT%\system32\pagefileconfig.vbs" /Change /I 1028 /M 1028 /VO %SYSTEMDRIVE% ) ELSE ( CSCRIPT //B //NOLOGO "%SYSTEMROOT%\system32\pagefileconfig.vbs" /Create /I 1028 /M 1028 /VO %SYSTEMDRIVE% ) FOR %%? IN (C D E F G H I J K L M N O P Q R S T U V W X Y Z) DO ( IF "%%?:" NEQ "%SYSTEMDRIVE%" ( IF EXIST %%?:\pagefile.sys CSCRIPT //B //NOLOGO %SYSTEMROOT%\system32\pagefileconfig.vbs /Delete /VO %%?: ) ) REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce /V %~n0 /D "%SYSTEMROOT%\%~nx0" /F SHUTDOWN -r -f -t 10 EXIT :DE FOR %%? IN (C D E F G H I J K L M N O P Q R S T U V W X Y Z) DO ( IF "%%?:" NEQ "%SYSTEMDRIVE%" ( IF EXIST %%?:\pagefile.sys DEL /A %%?:\pagefile.sys ) ) DEL %SYSTEMROOT%\%~n0.vbs %0<Edit> You can play with the shutdown delay but I would suggest leaving the force switch in and reducing the seconds one increment at a time. </Edit> -
Well if you look at the code you will see why!The CD-ROM is being set as a drive letter, in the first lines, (example G:). In your code you are using %CDROM%\prepare.cmd which is equivalent to, (example G:\prepare.cmd). However your prepare.cmd is located at %CDROM%\$OEM$, (example G:\$OEM$\prepare.cmd). You would either need to place prepare.cmd at the root of your CD or the line would need changing in order to reflect the true location. P.S Removing the serial number for Nero would be a good idea.
-
If you'd have checked back a page, (page 2), you'd have seen a topic with just that name
-
The following may help too, it will check all your drives for you! @ECHO OFF & SETLOCAL ENABLEEXTENSIONS FOR /F %%? IN ('MOUNTVOL ^| FIND ":\"') DO CALL :CHKDRV %%? IF NOT DEFINED DCTRY ( ECHO/ No Back-ups Directory was found! ) ELSE ( ECHO/ A Back-ups Directory was found at %DCTRY% XCOPY "%DCTRY%\Pictures" "%USERPROFILE%\My Documents\My Pictures" /E/H/Q/Y 2>NUL || ECHO/ No Picture Backups were found! XCOPY "%DCTRY%\Papers" "%USERPROFILE%\My Documents" /E/H/Q/Y 2>NUL || ECHO/ No Document Backups were found! ) PING -n 11 127.0.0.1 >NUL & ENDLOCAL & GOTO :EOF :CHKDRV PUSHD %1 >NUL FOR /F "DELIMS=" %%? IN ('DIR/B/S/AD "_USER BACKUP FILES" ^2^>NUL') DO IF ERRORLEVEL 0 SET DCTRY=%%~f? POPD & GOTO :EOF
-
Is it for Professional or Home Edition? they both have different settings!
-
Sorry my mistake, what is happening at the moment is that the ren command is sayingren "E:\My Projects\MyFolder\A_File.txt" "E:\My Projects\MyFolder\A.File.txt" when what it should be saying is ren "E:\My Projects\MyFolder\A_File.txt" "A.File.txt" So the fix is with the first of the two lines you quoted @echo off&setlocal enableextensions enabledelayedexpansion pushd E:\My Projects\MyFolder for /f "delims=" %%? in ('dir/b/s/a *_*') do ( set "old=%%~nx?"&set "new=!old:_=.!" if not exist "!new!" ( echo/ren "%%?" "!new!" ) else ( echo/ %%? already exists! pause ) ) popd&endlocal&goto :eofHope this helps! PS As for your following question, it is due to the limitation of variable substitution within a for loop. Hence the reason I used delayed expansion.
-
Other than the official Microsoft link I provided, do you mean!
-
suggestion for a new sticky post
Yzöwl replied to darksimoon's topic in Unattended Windows 2000/XP/2003
I'm sorry, I fail to understand! All registry data for HKEY_LOCAL_MACHINE applies to all users at T13 /T12 Most registry data for HKEY_CURRENT_USER applies to all users at T13 /T12 The majority of problems with the latter appear to be with changes to visual settings, which in the main should be left to each individual users preference anyhow. Therefore one single registry file applied at T13 /T12 will fulfil most of the needs of the majority.