Jump to content

Search the Community

Showing results for tags 'CMD'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • The General Stuff
    • Announcements
    • Introduce Yourself!
    • General Discussion
  • Microsoft Software Products
    • Windows 11
    • Windows 10
    • Windows 8
    • Windows 7
    • Windows Server
    • Older Windows NT-Family OSes
    • Windows 9x/ME
    • Other Microsoft Products
  • Unattended Windows Discussion & Support
    • Unattended Windows
    • Other Unattended Projects
  • Member Contributed Projects
    • Nuhi Utilities
    • Member Projects
    • Other Member Contributed Projects
    • Windows Updates Downloader
  • Software, Hardware, Media and Games
    • Forum Categories
    • Mobile Devices
  • Customizing Windows and Graphics
    • Customizing Windows
    • Customizing Graphics
  • Coding, Scripting and Servers
    • Web Development (HTML, Java, PHP, ASP, XML, etc.)
    • Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
    • Server - Side Help (IIS, Apache, etc.)

Calendars

There are no results to display.


Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype

Found 5 results

  1. Hi, I have a short code line that would ask elevated privileges for a Batch file. But now I noticed that if a file name or a folder name has an "&" character in it then the code will not work. 😫 Dose anyone have a solution for this problem? 🤔 @ECHO OFF FLTMC >NUL 2>&1 || PowerShell Start-Process -FilePath '%0' -Verb RunAs >NUL 2>&1 && EXIT /b FLTMC >NUL 2>&1 && GoTo EVD ECHO I'm not wokring. PAUSE :EVD ECHO Hallo World. PAUSE
  2. Hello citizens of msfn! I want to announce a small program that I will be launching soon called cmd64! It is a new and simple cmd / terminal with extra features, standalone and non-dependent of the Windows Operating System or cmd! (other than some path variables) I will post a screenshot soon, as I will get to compile the first version, using C#, C++ and batch to make, cmd64.exe . thank you for reading this
  3. Hi JFX... @JFX @jaclaz @wimb @alacran FOR VHD INSTALL- "%wpath%\WinNTSetup%pp%.exe" VHD-CREATE -file:"%FREEDRIVE%\WIMBOOT\Win10x64-WB.vhd" -size:15GB -type:expandable -label:"Win10x64-WB" set e=%errorlevel% set "ALPHABET=_ABCDEFGHIJKLMNOPQRSTUVWZYZ" call set VHD_DRIVE=%%ALPHABET:~%e%,1%% if "%VHD_DRIVE%"=="" echo ERROR! if "%VHD_DRIVE%"=="_" echo ERROR! echo Win10x64-WB.vhd is mounted as %VHD_DRIVE% "%wpath%\WinNTSetup%pp%.exe" NT6 -source:"%isopath%" -wimindex:"2" -syspart:%SYSPART% -tempdrive:%VHD_DRIVE% -unattend:"%XML%" -drivers:"%E2BDRIVE%\SVBus" -Sysletter:C -RunAfter:"COPY_VHD_WIMBOOT_FILES.cmd %E2BDRIVE% %VHD_DRIVE% %OSPART%" -setup -reboot -testSigning FOR VHD CAPTURE- I use following command to Capture Win10x64-WB.vhd to Win10x64-WB.wim in WIMBOOT mode. wimlib-imagex.exe capture %VHD_DRIVE% C:\WIMBOOT\W10x64-WB.wim --config=%E2BDRIVE%\VHD_WIMBOOT\WimBootCompress-2019-03-31.ini --include-integrity --wimboot --compress=LZX --threads=4 Applying WIM to VHD in WIMBoot mode- Currently I use following command to Apply WIMBooted Win10x64-WB.wim to 1.5 GB Win10x64-WB.vhd in WIMBOOT mode. wimlib-imagex.exe apply C:\WIMBOOT\W10x64-WB.wim %VHD_DRIVE% --wimboot What exactly WinNTSetup command I should use that will be equivalent to above wimlib-images apply command in WIMBOOT mode ? Regards....
  4. Hello, I have a problem running a batch file I'm creating for Windows XP. At some stage it has to check whether a service is running or not. Let's assume that I type in the following command directly into a command prompt: for /f "tokens=3" %H in ('sc query Spooler ^| findstr "STATE"') do echo %H It runs flawlessly and outputs 1 or 4, depending on a service state. The problem starts when I put this command in a batch file, suitably modified by doubling % signs: for /f "tokens=3" %%H in ('sc query Spooler ^| findstr "STATE"') do echo %%H or any other for /f loop where sc is a command to process - even sc alone in a loop. When processing the command, cmd.exe processes start to multiply indefinitely and the batch execution hangs. I've tried both XP HE and Pro, English and Polish variants. Also, there is no such problem under Windows 8. For what I've checked, this issue only applies to sc - any other command I've tried in a loop ran without a problem. This command alone: sc query Spooler ^| findstr "STATE" also runs without a hassle. Has anyone encountered such a behavior? Any ideas? Regards.
  5. Hi there, I like to install Windows XP SP3 with all the updates, so I can sit after the installation and just have a cup of coffee... instead of waiting to get the updates one by one using Windows Update or Microsoft Update. But for the last few months, I've updated my XP ISO just by adding the hotfixes using a batch called 'adiciona.cmd', being this one called at the end of RunOnceEx.cmd. The file is growing and being too annoying to edit every time I have to update the ISO, so I decided to request help from you, to get all the updates 'slipstreamed' or, at least, installed earlier - using the RunOnceEx.cmd, for instance. So here are my two files to you to consider: adiciona.cmd @echo offcmdow @ /HIDnet user aspnet /deletefor %%i 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 %%i:\win51ip.SP3 set APZ=%%i:\Appsstart /wait %APZ%\Updates\2013\rvkroots.exe /qrem start /wait %APZ%\Updates\2013\KB923789.exe /qb /norestartstart /wait %APZ%\Updates\DOTNET\NDP1.1sp1-KB2742597-X86.exe /q /norestartstart /wait %APZ%\Updates\DOTNET\NDP20SP2-KB2604092-x86.exe /q /o /n /zstart /wait %APZ%\Updates\DOTNET\NDP20SP2-KB2656352-x86.exe /q /o /n /zstart /wait %APZ%\Updates\DOTNET\NDP20SP2-KB2729450-x86.exe /q /o /n /zstart /wait %APZ%\Updates\DOTNET\NDP20SP2-KB2742596-x86.exe /q /o /n /zstart /wait %APZ%\Updates\DOTNET\NDP20SP2-KB2789643-x86.exe /q /o /n /zstart /wait %APZ%\Updates\DOTNET\NDP20SP2-KB2804577-x86.exe /q /o /n /zstart /wait %APZ%\Updates\DOTNET\NDP30SP2-KB2604110-x86.exe /q /o /n /zstart /wait %APZ%\Updates\DOTNET\NDP30SP2-KB2656407-x86.exe /q /o /n /zstart /wait %APZ%\Updates\DOTNET\NDP30SP2-KB2756918-x86.exe /q /o /n /zstart /wait %APZ%\Updates\DOTNET\NDP30SP2-KB982168-x86.exe /q /o /n /zstart /wait %APZ%\Updates\DOTNET\NDP30SP2-KB982524-x86.exe /q /o /n /zstart /wait %APZ%\Updates\DOTNET\NDP35SP1-KB2604111-x86.exe /q /o /n /zstart /wait %APZ%\Updates\DOTNET\NDP35SP1-KB2657424-x86.exe /q /o /n /zstart /wait %APZ%\Updates\DOTNET\NDP35SP1-KB2736416-x86.exe /q /o /n /zstart /wait %APZ%\Updates\DOTNET\NDP20SP2-KB958481-x86.exe /q /o /n /zstart /wait %APZ%\Updates\DOTNET\NDP30SP2-KB958483-x86.exe /q /o /n /zstart /wait %APZ%\Updates\DOTNET\NDP35SP1-KB958484-x86.exe /q /o /n /zstart /wait %APZ%\Updates\2013\WindowsXP-KB2603381-x86-PTB.exe /q /o /n /zstart /wait %APZ%\Updates\2013\WindowsXP-KB2686509-x86-PTB.exe /q /o /n /zstart /wait %APZ%\Updates\2013\WindowsXP-KB2829530-x86-PTB.exe /q /o /n /zstart /wait %APZ%\Updates\JulOut13\WindowsXP-KB2845187-x86-PTB.exe /q /o /n /zstart /wait %APZ%\Updates\JulOut13\WindowsXP-KB2850851-x86-PTB.exe /q /o /n /zstart /wait %APZ%\Updates\JulOut13\WindowsXP-KB2849470-x86-PTB.exe /q /o /n /zstart /wait %APZ%\Updates\JulOut13\WindowsXP-KB2850869-x86-PTB.exe /q /o /n /zstart /wait %APZ%\Updates\JulOut13\WindowsXP-KB2859537-x86-PTB.exe /q /o /n /zstart /wait %APZ%\Updates\JulOut13\WindowsXP-KB2847311-x86-PTB.exe /q /o /n /zstart /wait %APZ%\Updates\JulOut13\WindowsXP-KB2862330-x86-PTB.exe /q /o /n /zstart /wait %APZ%\Updates\JulOut13\WindowsXP-KB2862335-x86-PTB.exe /q /o /n /zstart /wait %APZ%\Updates\JulOut13\WindowsXP-KB2864063-x86-PTB.exe /q /o /n /zstart /wait %APZ%\Updates\JulOut13\WindowsXP-KB2868038-x86-PTB.exe /q /o /n /zstart /wait %APZ%\Updates\JulOut13\WindowsXP-KB2876217-x86-PTB.exe /q /o /n /zstart /wait %APZ%\Updates\JulOut13\WindowsXP-KB2876315-x86-PTB.exe /q /o /n /zstart /wait %APZ%\Updates\JulOut13\WindowsXP-KB2883150-x86-PTB.exe /q /o /n /zstart /wait %APZ%\Updates\JulOut13\WindowsXP-KB2884256-x86-PTB.exe /q /o /n /zstart /wait %APZ%\Updates\Xtras2013\IE8-WindowsXP-KB2846071-x86-PTB.exe /q /o /n /zstart /wait %APZ%\Updates\Xtras2013\IE8-WindowsXP-KB2862772-x86-PTB.exe /q /o /n /zstart /wait %APZ%\Updates\Xtras2013\IE8-WindowsXP-KB2879017-x86-PTB.exe /q /o /n /zstart /wait %APZ%\Updates\Xtras2013\IE8-WindowsXP-KB2598845-x86-PTB.exe /q /o /n /zstart /wait %APZ%\Updates\Xtras2013\Silverlight.exe /qstart /wait %APZ%\Updates\DOTNET13\NDP1.1sp1-KB2833941-X86.exe /q /norestartstart /wait %APZ%\Updates\DOTNET13\NDP20SP2-KB2833940-x86.exe /q /o /n /zstart /wait %APZ%\Updates\DOTNET13\NDP20SP2-KB2836941-v2-x86.exe /q /o /n /zstart /wait %APZ%\Updates\DOTNET13\NDP20SP2-KB2844285-v2-x86.exe /q /o /n /zstart /wait %APZ%\Updates\DOTNET13\NDP20SP2-KB2863239-x86.exe /q /o /n /zstart /wait %APZ%\Updates\DOTNET13\NDP30SP2-KB2832411-x86.exe /q /o /n /zstart /wait %APZ%\Updates\DOTNET13\NDP30SP2-KB2861189-x86.exe /q /o /n /zstart /wait %APZ%\Updates\DOTNET13\NDP35SP1-KB2836940-x86.exe /q /o /n /zstart /wait %APZ%\Updates\DOTNET13\NDP35SP1-KB2840629-x86.exe /q /o /n /zstart /wait %APZ%\Updates\DOTNET13\NDP35SP1-KB2861697-x86.exe /q /o /n /zstart /wait %APZ%\Updates\Xtras2013\WindowsXP-KB2686509-x86-PTB.exe /q /o /n /zstart /wait %APZ%\Updates\Xtras2013\WindowsXP-KB2834886-x86-PTB.exe /q /o /n /zstart /wait %APZ%\Updates\Xtras2013\WindowsXP-KB968930-x86-PTB.exe /q /o /n /zstart /wait %APZ%\Updates\Xtras2013\WindowsXP-KB975713-x86-PTB.exe /q /o /n /zstart /wait %APZ%\Updates\Xtras2013\WindowsXP-WindowsMedia-KB2834904-v2-x86-PTB.exe /q /o /n /zstart /wait %APZ%\Updates\Xtras2013\IE8-WindowsXP-KB2632503-x86-PTB.exe /q /o /n /zstart /wait %APZ%\Updates\Xtras2013\rootsupd.exe /q /o /n /zstart /wait %APZ%\Updates\Xtras2013\WindowsXP-KB2492386-x86-PTB.exe /q /o /n /zstart /wait %APZ%\Updates\Xtras2013\WindowsXP-KB2749655-x86-PTB.exe /q /o /n /zstart /wait %APZ%\Updates\Xtras2013\WindowsXP-KB2808679-x86-PTB.exe /q /o /n /zstart /wait %APZ%\Updates\Xtras2013\WindowsXP-KB2863058-x86-PTB.exe /q /o /n /zstart /wait %APZ%\Updates\Xtras2013\WindowsXP-KB961118-x86-PTB.exe /q /o /n /zstart /wait %APZ%\Updates\windowsupdateagent30-x86.exe /quiet /norestart /wuforceEXITRunOnceEx.cmd @echo offcmdow @ /HIDnet user aspnet /deleteshutdown.exe -r -f -c "Restarting in 50 seconds...WAIT !" -t 50@echo offcmdow @ /HIDfor %%i 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 %%i:\win51ip.SP3 set CDROM=%%i:for %%i 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 %%i:\win51ip.SP3 set APZ=%%i:\Appsregsvr32 /s %windir%\system32\GWFSPIDGen.dllregsvr32 /s %windir%\system32\LegitCheckControl.dllregsvr32 /s %windir%\system32\wups2.dllregsvr32 /s %windir%\system32\muweb.dllSET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Installing extras..." /fREG ADD %KEY%\020 /VE /D ".NET FW 1.1-3.5SP1 (Wait !)" /fREG ADD %KEY%\020 /V 1 /D "%APZ%\DNF35SP1\DNF11br20SP2br30SP2br35SP1br.exe /gm2 /silent /quiet" /fREG ADD %KEY%\035 /VE /D "DirectX 9.0c [Jun-2010 Nov-2012]" /fREG ADD %KEY%\035 /V 1 /D "%APZ%\DX9c\DXSETUP.exe /silent" /fREG ADD %KEY%\055 /VE /D "Flash ActiveX and Plug-in 11.9.900.117" /fREG ADD %KEY%\055 /V 1 /D "%APZ%\Flashock\install_flash_player_11_active_x.msi /qb" /fREG ADD %KEY%\055 /V 2 /D "%APZ%\Flashock\install_flash_player_11_plugin.msi /qb" /fREG ADD %KEY%\060 /VE /D "Shockwave 12.0.5.146" /fREG ADD %KEY%\060 /V 1 /D "%APZ%\Flashock\sw_lic_full_installer.msi /qb" /fREG ADD %KEY%\065 /VE /D "Adobe Reader XI (Light) BR" /frem REG ADD %KEY%\065 /V 1 /D "%APZ%\AdobeXI\AdbeRdr11000_pt_BR.exe /sAll /rs /l /msi /qb /norestart ALLUSERS=1 EULA_ACCEPT=YES SUPPRESS_APP_LAUNCH=YES"REG ADD %KEY%\065 /V 1 /D "%APZ%\AdobeXI\AdbeRdrLite11005_pt_BR.msi /qb" /fREG ADD %KEY%\070 /VE /D "Sun Java JRE 7 Update 45" /fREG ADD %KEY%\070 /V 1 /D "%APZ%\Java7\jre-7u45-windows-i586 /s /v /qn ADDLOCAL=jrecore IEXPLORER=1 MOZILLA=1 JAVAUPDATE=0 WEBSTARTICON=0 REBOOT=Suppress SYSTRAY=0 JU=0" /fREG ADD %KEY%\125 /VE /D "Other..." /fREG ADD %KEY%\125 /V 1 /D "%APZ%\adiciona.cmd" /f <<<<<< HERE RUNONCEEX.CMD CALLS 'adiciona.cmd'REM Erasing installation temp directories...@echo offcmdow @ /HIDRD /S /Q %systemdrive%\uninstallRD /S /Q %systemdrive%\DriversSET D=%SYSTEMROOT%\system32\echo [General] >> "%D%oeminfo.ini"echo Manufacturer=XP SP3 Pro>>"%D%oeminfo.ini"echo Model=Installed on %date%>>"%D%oeminfo.ini"EXITAny help will be much appreciated. --ThundernetBR
×
×
  • Create New...