Jump to content

Caml Light

Member
  • Posts

    85
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    Italy

Everything posted by Caml Light

  1. thanks!! Anyway, i've tried with a only ">" and the log register only this: "ECHO= == Press any key to restart. ==" While with two ">>" the log register all installations. Do you know why?
  2. Hi Yzöwl! Is it possible to add the log support to your code below? I try to explain me better... During every installation, in this case of Windows hotfixes, is it possible to save to a file (.log or .txt) what is happening? For example, the log file shoud be: Installation of KB123456.... Installation of KB234567.... Installation of KB345678.... and so on... (Congratulations for your batch, you helped me very much!!) @ECHO OFF ECHO=_%~1|FINDSTR/X "_-123456 _/123456">NUL 2>&1||GOTO Error SETLOCAL ENABLEEXTENSIONS SET "_=" PUSHD %~dp0 FOR /R %%A IN (Windows*-KB*.EXE) DO ( SET _=T ECHO= Installazione di %%~nA in corso... >NUL PING -n 4 127.0.0.1 "%%A" /quiet /norestart) IF NOT DEFINED _ GOTO Error ECHO= ECHO= == Press any key to restart. == >NUL PAUSE SHUTDOWN.EXE /r /t 0 GOTO :EOF :Error ECHO= Error. ECHO= ECHO= Press any key to exit... >NUL PAUSE
  3. Hi guys! Is it possible for you to create a CMD batch file that supports Drag'n'Drop? I need to Drag'n'Drop some files to the batch window and it shoud copy these files to a directory i've chosen. Mhh... maybe i demand too.
  4. do you know ninite?? Their silent installer don't install toolbars, so i think they use registry keys. Do you know about their tricks to block toolbar's installation?
  5. Hi guys, as topic title says, i need to prevent the installation of main toolbars bundled with many software: Ask, Google, Yahoo, Bing etc... Why don't we use our experience to create an useful topic?
  6. I've tried the trick on XP SP3 Virtual Machine with the latest official version of avast! and it doesn't work.
  7. thank you guys Yzöwl, is it wrong if for now i delete the PUSHD command? Without it the installation seems to work, but i don't know if i'm doing the right thing or if the batch can give problems. Then i'd take advantage of your experience... if i'd add others FOR /R commands to install others updates, can a batch retrieve the number of installation like Windows Update? Ex: Update 1 of 5... and so on.
  8. OK Yzöwl, newly thank you for your help. The new batch works fine, but it doesn't work when i compile the batch. The problem is %~dp0 yet. Now, i don't know how solve it... is it enough to delete this string PUSHD %~dp0 ??
  9. ok, i try it! Anyway this is the original batch you wrote: @ECHO OFF SETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION FOR /R "%~dp0" %%A IN (*-KB*.MSU) DO ( CALL :SUB %%~nA ECHO= Installing KB!KB_NUM! >NUL TIMEOUT /t 3 WUSA "%%A" /quiet /norestart) ECHO= == Press any key to restart == >NUL PAUSE SHUTDOWN.EXE /r /t 0 GOTO :EOF :SUB SET "KB_NUM=%*" FOR /F "DELIMS=-" %%B IN ("%KB_NUM:*-KB=%") DO SET "KB_NUM=%%B"
  10. ok, i've solved the problem cutting down from the posted code every "%~dp0" string. Now with "FOR /R %%A" it seems to work. Please Yzöwl, i've copied your batch from an another topic, and you had enabled delayed expansion there. So, cleaning all the code as you know to do... how do you could to rewrite the code i've posted? Thanks for your patience.
  11. Hi Yzöwl, i've mixed it with one of your batch.... so this is the final result: @ECHO OFF SETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION COLOR F0 ECHO=_%~1|FINDSTR/X "_-123456 _/123456">NUL 2>&1||GOTO Error FOR /R %%A IN (Windows*-KB*.EXE) DO ( ECHO= Installation of %%~nA... >NUL PING -n 4 127.0.0.1 "%%A" /quiet /norestart) ECHO= ECHO= == Press any key to restart. == >NUL PAUSE SHUTDOWN.EXE /r /t 0 GOTO :EOF :Error ECHO= Error. ECHO= ECHO= Press any key to exit... PAUSE>NUL EXIT I've for you two questions: 1) Is this batch correct for you?? 2) I compile it with this utility: http://www.f2ko.de/programs.php?lang=en&pid=b2e Once that i launch the obtained EXE with the correct option: "file.exe /?" the batch goes directly to this string: "ECHO= == Press any key to restart. ==", jumping the FOR /R loop command. Any idea?
  12. Guys, i've decided to use for now this converter: http://www.f2ko.de/programs.php?lang=en&pid=b2e It's free. Now i've an issue. Compiling my batch with this code: @ECHO OFF SETLOCAL IF /I "%1"=="welcome" GOTO :%1 Echo Sorry! GOTO :EOF :welcome echo welcome the exe launched with welcome option goes directly to the end of the script. With the original batch instead it's all fine.
  13. thank you for your reply guys! I want to specify that to protect my batch i can't use any password to type in. To convert to EXE my batch i've used "Bat To Exe Converter 1.5.1.0". Do you think it's enough secure? Better Offuscator? Now i've added the code by jaclaz: @ECHO OFF SETLOCAL IF /I "%1"=="welcome" GOTO :%1 Echo Sorry! GOTO :EOF :welcome echo welcome But if an expert user will decrypt my batch, this method will be vain.
  14. ..and what do you suggest me to protect better my cmd script? Thanks in advance!
  15. a last question... if i convert my CMD batch to EXE, for a person that doesn't know the label i've given, is it possible to jump directly to the "Welcome" label, or anyway to find it's name? I'd to protect my batch file.. so do you think it's a secure solution? Thanks!
  16. Hi guys! If my batch file contains this: :Sorry ECHO Sorry! :Welcome ECHO Welcome! Is it possible to jump to the ":Sorry" label if i open the cmd file and to jump to the ":Welcome" label if i open the same cmd file followed by an option (for example: batch.cmd /jump)? Thank you!!
  17. Hi guys, the latest version of avast! Free when installed silently with a batch file using the "/SILENT" or "/VERYSILENT" command, installs automatically GoogleUpdate and Chrome. With the previous version of avast! there were no problems. I've also tried to add this REG key to prevent Chrome installation: [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Google\No Chrome Offer Until] "AVAST Software"=dword:01404cff While this trick works with other softwares (for example CCleaner), with avast! it doesn't work. Anyway i've posted here without success: http://forum.avast.com/index.php?topic=81104.0 Have you any idea? Thank you!
  18. Hi Rick! I've tested your addon, changing the file LOGOOS.exe in the 7Z archive with a "Mac OS X boot" NTOSKRNL.exe file found here: http://macfree.deviantart.com/art/Boot-lik...-Reslt-29753866 Unfortunaly it doesn't works... Could you kindly help me please?? I love the Mac style! (OFF TOPIC: a question about your Vista boot addon on wincert... can i use it with an italian xp without problems?) Thank you very much Rick!
  19. Hi! What's the font used to create Office 2003 Logo? Thanks!
×
×
  • Create New...