Jump to content

Search the Community

Showing results for tags 'batch'.

  • 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 16 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. This is for us , simle folks , who are tired of the insane insgtagram policies and their outrageous behaviour . Here are 129 public repositories matching this topic... https://github.com/topics/instagram-downloader instaloader / instaloader Examples of usage : Grab highlights, pictures, stories etc. Monitor instagram user account and automatically post new images to discord channel via a webhook. Scripts to download images, videos & profile pictures from Instagram. Fully Automated YouTube Channel ▶️with Added Extra Features (Automated Title, Description, Tags, Watermark and much more)
  3. 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
  4. Introducing portabat https://github.com/tumagonx/portabat This is custom 7zsfx (7zip SDK 17.00) that make your batch more realistically like an executable. Try demo here https://github.com/tumagonx/portabat/releases Editing: All you need is open portabat.exe with 7zip and edit hello.bat or add your own batch, no need to copy /b or create config.txt. See filename execution order from homepage Requirement: XP or later Current version: 0.2-beta portabat is a small 7z-sfx at just 220KB (160KB if standalone cmd.exe and reg.exe removed), it is about the same size of busybox-w32 compressed. Portabat packed with almost a hundred executables. Content (all listed here is open source software): cmd.exe (161KB) : compatible standalone CMD from ReactOS reg.exe (17KB) : standalone registry query/editor from ReactOS bundled helpers: un7z.exe (21KB) : 7zip-17.0 extractor (constructed from SFX) unzip (5KB) : zip extractor fwpipes (4KB) : named pipes data transfer of two program ppx2 (9KB) : win32 port of xargs for multi processing setprio 8KB) : process affinity getppid (2KB) : get parent pid genuuid (2KB) : generate uuid msxsl (20KB) : xslt processor showwin (4KB) and enumwim (4KB) : window handle control and query rawcopy (12KB) : create image/iso from drive isadmin (2KB) : check admin privilege isdrive (2KB) : check drive type ispe (3KB): check executable type pehdr (6KB) : basic PE header editor iconv (16KB) : text codepage conversion gdipconv (5KB) : png/bmp/jpg/tiff/gif conversion pclip (2KB) (and clip) : paste/copy clipboard content timer (4KB) and timeout (2KB) beep (2KB) gplay (5KB) : play dshow audio files dwnl (7KB) : download from http, https, ftp devioctl (9KB) : control low level device operation eltorito (5KB) : retrieve iso boot image isoimage.exe (6KB) : create cd/dvd/bd iso image and bootable iso getwu (7KB) : query windows update cabit (8KB) : create cabinet archive, support spanned volume junc (5KB) and hardlink (2KB) : create symlink ( as hardlink file or junction directory) makelnk (6KB) : create shortcut gsar (19KB) : search and replace file content support binary (NOT unicode path aware) msgbox (2KB) : create message dialog wincrypt (5KB) : AES decrpyt/encrypt xor (5KB) : XOR a file winhash (6KB) : MD/SHA/CRC digest partfile (7KB) : file part copy/peek, splitter chsize (3KB) : create new file (sparse) at arbitrary size resetcur (2KB) : restore console cursor touch (2KB) : file timestamp uptime (2KB) : system uptime bundled helpers from multi-call busybox 1.28 (161KB) lite version, these are NOT unicode aware : awk : tool for text processing, data extraction and reporting sed : stream text editor grep/egrep/fgrep: regex search on text dc : reverse polish calculator base64 cat and tac : print / reverse print file(s) cmp : summarize between two files comm and uniq : unique/common filter cut and paste pdate (renamed date) : represent date in various ways diff and patch : compare two text, no better than FC IMO but it has defacto formatting used by patch dos2unix and unix2dos : crlf <-> lf du : directory size expand and unexpand : tab <-> space expr : condition expression, like batch ~expansion, if or set /a stuff factor : prime factor head and tail : print lines of BOF/EOF hd/hexdump/xxd : print binary files ipcalc nl and seq : line number sequence adder/printer rev : byte reverse file shuf : shuffle lines of text psort (renamed sort) : sort filter based various criteria split : split files/lines of text, use partfile above instead for files (faster) tee : stdin stdout redirector uuencode and uudecode wc : counter for text Planned: add/make msi query tool (anyone know such? not wix, not gnome msitool) add clink/readline support direcly to cmd.exe (no hooking) Note: Portabat itself is multi-call binary, it will prioritize execute batch or executables which has the same as basename of the sfx If "cwd" file/folder (no extension) present inside sfx current directory set to extraction directory. ReactOS cmd is about 95% compatible, if you're batch nerd you can see few different quirks behavior compared to windows cmd separate 7z.sfx available at https://github.com/tumagonx/portabat/raw/master/basebin/7z.sfx (about 20KB if packed) Suggestions are welcome!
  5. 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.
  6. Hello friends, I have a basic level at batch files. In one of my bacth file I use below variable for naming my backup file whose name is "2016.08.16-(08.30)-FLAMENT.rar" set HM=%time:~0,2%.%time:~3,2% echo (%HM%) --produces--> (08.30) The problem is that I want to use the same time (08.30) for the other file which related to the previous one. But since the time changes throughout the process in the same batch file, %HM% produces (08.32), not (08.30) for the time changed. how can I use same time for all processes thoughout the batch file ? I mean, I want %HM% to produce same result once the batch file runs until it finishes although the time changes. How can I do this ? Best Regards
  7. hi, i need to do a massive rename using batch language, for example if i have a few file named: nomefile0001 nomefile0002 nomefile0004 nomefile0005 nomefile0008 nomefile0010 i need to rename the file like this: nomefile0001 nomefile0002 nomefile0003 nomefile0004 nomefile0005 nomefile0006 i try to copy filename in a text document, then elaborate text document and rename the file using the name in text document. dir /B > fileList.txt I don't know how to elaborate the names in the fileList.txt someone can help me? Simone
  8. Hi guys. I need a little help here. I was searching for some batch script to do some tasks on windows 7, 8 and 10 machines and I found some interesting topic. I grab the script and I made some changes. Now I need to make the script to work and I need your help to make the changes I wrote on the script itself. If possible, please, jaclass or somebody else, help me.. The sketch for the script is: IMPORTANT: Whe the user run this script it must get elevate privilegies automaticaly (as run as administrator do). ECHO """BATCH SCRIPT TO CLEAN THINGS!!! "This script will clean things from your computer. Press Y to continue or N to cancel.." If the user type Y then show the message above and continue with the script: "Message: Doing the things. This can take a little.." @ECHO OFF SETLOCAL ENABLEEXTENSIONS SETLOCAL ENABLEDELAYEDEXPANSION SET /A Counter=0 FOR %%A IN ( "c:\windows\prefetch\*.*" "c:\windows\temp\*.*" "c:\windows\tmp\*.*" "c:\tmp\*.*" "c:\temp\*.*" "c:\WINDOWS\ShellIconCache\*.*" "c:\Users\%username%\AppData\Roaming\Microsoft\Windows\Recent Items\*.*" "%userprofile%\Cookies\*.*" "%UserProfilePath%\Local Settings\Temp\" "%UserProfilePath%\Local Settings\Temporary Internet\*.*" "%UserProfilePath%\Application Data\Sun\Java\Deployment\cache\*.*" "%UserProfilePath%\AppData\LocalLow\Sun\Java\Deployment\cache\*.*" "%UserProfilePath%\AppData\Local\Microsoft\Windows\Temporary Internet Files\*.*" "%UserProfilePath%\AppData\Local\Temp\*.*" "%UserProfilePath%\AppData\LocalLow\Temp\*.*" "%homepath%\Appdata\Local\Temp\*.*" "c:\temp\*.*" "%homepath%\Local Settings\Temporary Internet Files\*.*" "%homepath%\Local Settings\Temp\*.* ) DO ( CALL :do_count %%A CALL :do_del %%A ) GOTO :EOF :do_count FOR /F %%B IN ('dir /b %1') DO ( SET /A Counter+=1 ECHO !Counter! ) GOTO :EOF :do_del ECHO del %1 GOTO :EOF When everything is done show a message to the user asking him to reboot the system: "Message: All task where done. Now, please, type R to reboot the computer or L to do it later.." Thats it. If mistakes where made, please correct and show me whats wrong so I can learn too. DEdit.: OH!!! It would be nice if the script could show messages when the task get done, one by one, like: Clean of "c:\windows\temp\*.*": DONE! Clean of ""c:\windows\tmp\*.*": DONE! and so on... :3
  9. hi I'm trying to get the first letter for a drive letter from each line using for command for example : a line in paths.txt "E:\Program Files (x86)\Adobe\Reader 11.0\Reader\AcroRd32.exe" setlocal enabledelayedexpansion for /f "tokens=*" %%A in (paths.txt) do ( set drive=%%~dA If Defined drive ( set drive=%drive:~0,1% ) echo %drive% ) I can't get the command part to work I appreciate any help on this TIA
  10. I need to do a batch file wich order all files by a date interval, example: @echo off echo Input the date(dd/mm/yyyy): set /p compDate= ::After that i will compare from the actual day (%date%), example: set interval = %compDate% - %date%... Something like that ::After that i need to list all files from a specific directory, example: echo Input the directory: set /p directory= SET Exit= %UserProfile%\Desktop\test.txt ::After that i might i need the dir /tc to get the creation date, example: pushd "%directory%" dir /s /tc /a-d > %Exit% ::After that, i dont know how to get only the lines wich the date interval are, example: Today is 19/08/2014, but i want to search all files created from day 10/07/2014. So i have to copy all lines which have the date 10/07/2014, 11/07/2014, 12/07/2014 and so on until stop on today created files. I tried with findstr but i can't set the date interval, just a specific date to search in the .txt created. Somebody know how to do that ?
  11. Hello, i am making a batch script that will install another batch script. It looks like this: @echo off echo @echo off > example.bat echo echo Hi >> example.bat echo echo 1.) Option1 >> example.bat echo echo 2.) Option2 >> example.bat echo echo 3.) Option3 >> example.bat echo if %selection%==1 goto opt1 >> example.bat echo if %selection%==2 goto opt2 >> example.bat echo if %selection%==3 goto opt3 >> example.bat So it displays all this text and saves what is displayed to example.bat. But it will display variables as their values; instead of making this: if %selection%==1 goto opt1 it will do this: if ==1 goto opt1 because theese variables have no value. So, is there a way to tell this script to display variable names instead of values? p.s. also, a pause message is "Press any key to continue..." . Can i change that?
  12. While trying to write an extension for firefox 3 for Win98SE it's needed for me to include a certain *.bat-file (or directly execute command.com). I'm running into problems with long parameters/arguments to pass. I will explain the problem with a more simple example: I have a *.bat-file C:\notepadtest.bat with following content: c:\windows\notepad "%1" Furthermore I have a *.txt-file C:\testfiletestfiletestfiletestfiletestfiletestfiletestfiletestfiletestfiletestfile\testfiletestfiletestfiletestfiletestfiletestfiletestfiletestfiletestfiletestfiletestfiletestfiletestfiletestfiletestfiletestfiletestfile\test.txt with content test (the content of the *.txt-file plays no role). If I now try to execute C:\notepadtest.bat C:\testfiletestfiletestfiletestfiletestfiletestfiletestfiletestfiletestfiletestfile\testfiletestfiletestfiletestfiletestfiletestfiletestfiletestfiletestfiletestfiletestfiletestfiletestfiletestfiletestfiletestfiletestfile\test.txt, so it will not work! . (It will be shown a stupid error message instead of executing notepadtest.bat.) It has definitely to do with the (very) long parameter C:\testfiletestfiletestfiletestfiletestfiletestfiletestfiletestfiletestfiletestfile\testfiletestfiletestfiletestfiletestfiletestfiletestfiletestfiletestfiletestfiletestfiletestfiletestfiletestfiletestfiletestfiletestfile\test.txt. With shorter parameters the notepadtest.bat works correctly. But long parameters (concretely: URLs) would later be needed for the firefox extension. Is there any known way to pass long parameters into a *.bat-file? (Or alternatively to pass long parameters directly to c:\windows\command.com, using the /k commandline option?)
  13. Hi, Im looking for something that will allow me to set a parameter for a batch job in a way so i can type something that will set a var and direct\call to batch job. Not from set /p but from a shell box. for instance a simple batch tool that will set homepage for the browser: I want it to perform in a way so that it will pop a shell box, saying "set home page to ___" and have a default parameter in it, as "www.google.com" but so i can type a different feed \address to it and then this calls or sets a %var% to the hidden batch job that will run for instance REG ADD HKCU\SOFTWARE\MICROSOFT\INTERNET EXPLORER\MAIN" /V "START PAGE" /D "%1%" /F or REG ADD HKCU\SOFTWARE\MICROSOFT\INTERNET EXPLORER\MAIN" /V "START PAGE" /D "%homepage_var%" /F the only emphasis is that it will redirect the parameter back to a batch job i suppose this can be achieved with vb script help and maybe some batch help thanks in advance
  14. Hi everyone, I'm having difficulty extracting some string in text file, an example the content of mytext.txt Drive : SystemList Directory : System:\Backup\Scripting\PHP\header.phpList Directory : System:\Backup\Scripting\PHP\content.phpList Directory : System:\Backup\Scripting\PHP\footer.phpList Directory : System:\Backup\Scripting\HTML\header.phpList Directory : System:\Backup\Scripting\HTML\content.phpList Directory : System:\Backup\Scripting\HTML\footer.phphow to output only "PHP" or "HTML" string with batch command? with php I can use regex like : $r = file_get_contents('mytext.txt');preg_match_all('/\\Scripting\\(\w+)\\/', $r, $w);print_r($w[1]);how do I use batch command to output similar like that?
  15. 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
  16. SETLOCAL ENABLEDELAYEDEXPANSION FOR /F %%A IN ("!") DO ( SET Line=%%A SET Line=!Line:^^!={#}! ECHO !Line! ) Is there a simple way to make it work?
×
×
  • Create New...