Jump to content

yro

Member
  • Posts

    17
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    Brazil

Posts posted by yro

  1. 5 hours ago, jaclaz said:


    And of course you don't cite the references to what you found.

    No problem, though, the batch is in this topic here:

    and (but this is just a guess) you got the %userprofilepath% variable from here:
    http://superuser.com/questions/832681/batch-delete-temporary-windows-files-system-browsers-cache-etc-for-all-user

    but it is seemingly undefined in your "sketch".

    The very simplified batch was posted to answer a specific question and to show the OP a possible way to do what he asked which may (or may not) be the right thing to do and to show a (hopefully clear) "skeleton" for the batch

    Namely the procedure of counting (why?) the number of files deleted will slow down the procedure (if there are many directories and files) and if the scope is to actually clean *everything* it doesn't take into account (as an example) hidden files and folders (or read only files).

    If you prefer, one thing is a "half-@§§ed" quick, simple example batch, but to go from that to a "safe" (or reasonably safe), "foolproof" (at least to the extent something can be foolproof) and "working" (or reasonably working) on different systems batch there is a huuuge gap, and this gap should be filled by your learning the language (as opposed to have someone else writing the batch for you).

    Really :), if you have issues in understanding where to insert in that batch the command to "show message when the task get done, one by one" you will need to study some more the basics of the scripting language and exercise yourself with something less (potentially) dangerous.

    Mind you it is not about "not helping you", it is actually about attempting to help you.

    Try figuring out the sequence of commands in that batch where the command to show the message should be put, try finding some example of user interaction routines (prompting the user for the Y and later for the R or L),  etc.

    In other words try writing the batch yourself, if there are mistakes or if you have a specific issue/doubt I am pretty sure everyone will try and help you, but right now you are essentially asking other people to write the batch along some "guidelines" you devised, this way you won't likely learn anything and it is improbable that someone will write the whole thing for you).

    jaclaz
     

    I know I know. The references I dont quote because they are from here (and I had closed the tab with these references when posting this topic).

    Youre right. Im going to try it out for myself and eventualy Ill post some questions in here in hope somedoby helps.. I know You and other on this forum are great guys/girls and You always helped me. This time Ill do the crazy script and Ill be posting my results to go foward..

    Please, dont lock this topic. This may take a while but Ill be posting in here... God help me with this studies because He knows Im in a trick situation, doing school, working and taking care of family.. But lets go for it..

  2. 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

  3. Guys Im lost here.

     

    I need a script to install all msu files on a folder but I need this script to "ignore" an update if its already installed on the system. Is that the normal behavior of these scripts? If not, how can I make this script do the ignore installed thing?

     

    script in use is this:

     

    @echo off
    TITLE INSTALADOR DE ATUALIZACOES DO WINDOWS
    CLS
    setlocal ENABLEDELAYEDEXPANSION
    pushd "%~dp0"
    echo:
    echo PREPARANDO ATUALIZACOES..
    echo:
    for /F %%a in ('dir *.msu ^| find /i "file(s)"') do set z=%%a
    if "%z%"=="" goto :Failure
    echo Atualizacoes encontradas: %z%
    echo:
    echo Instalando atualizacoes... (Esta tarefa pode demorar)
    echo:
    FOR /R "%~dp0" %%A IN (*.MSU) DO (
            SET /A COUNT+=1
            ECHO= Instalando !COUNT! de %z% = %%~nA
            >NUL TIMEOUT /t 3
            WUSA "%%A" /quiet /norestart
    )
    echo Instaladas %z% atualizacoes dia %date% as %time%.
    echo:
    echo Reinicie o seu computador!
    CHOICE /C YN /N /M "Reiniciar agora? [Y]es [N]o :"
    if %errorlevel%==1 goto :Reboot
    if %errorlevel%==2 goto :Exit
    :Failure
    CLS
    echo ==========================================================
    echo:
    echo    NENHUMA ATUALIZACAO ENCONTRADA
    echo:
    echo    ATENCAO: As atualizacoes precisam estar na mesma pasta onde este script se encontra.
    echo:
    echo ==========================================================
    echo:
    pause
    goto :Exit
    :Reboot
    ENDLOCAL
    start shutdown.exe /r /t 0   
    :Exit
    ENDLOCAL
    exit

     

  4. holly cr$# I was wondering....

     

     

    imagine an Windows 8.1.1 Pro, without all that crap things that it has, with some edits on the start menu... :)

     

    nuhi, one last question: have you tested shrinking the win7 iso so it can fit on  CD but without loosing aero, network, drivers and the core things? is that possible? :P

  5. Thats great. No ads on free version.

     

    So, if im correct, with the free version we will be able to to the same as vlite does with vista (about removing things) but without the ability to remove "meta" packages?

     

    Well, if i can remove packages deep, remove languages unnecessary, remove other editions from the iso (like win 7 ultimate/home premium/home basic/etc), remove drivers, etc., why care about the pro? The "special thing" will make us want to migrate to the pro edition? I wonder what it this thing...

     

    Anyway, its great to hear from You about this new tool. its great that You want to make this your "work" so you can earn some money for living and its great that You are happy about the release of it. No need for compatibility with servers, that was just an question, nothing more.. I hope You dont take too much time to release it for us! :)

     

     


    yro, with the notion about removals, yes. Free version is nothing less than a pro without:

    - majority of removals
    - advanced driver operations, like removing undetected drivers for machine's hardware from the integration list
    - winsxs cleanup (without picky DISM)

    - auto-fill Unattended entries using host machine data
    - and a special new thing :)

    edit: So it supports Win7, 8, 8.1. 8.1.1. No server for now, and I don't know why would anyone touch a server which has a nice feature/role setup on its own, and it needs to be more reliable for remote management. Also there is Server Core for basic tiniest foundation.
    Will see over time, depending on the reasons for that kind of support.

    No ads on the free version.

  6. wait!

     

    nuhi, so the free version will have the ability to remove things from the iso source, integrate updates and do some tweaks on the os behavior? if so, than hell do it as soon as possible.

     

    one question nuhi: the new tool will be compatible with what exaclty OS? win 7, win 8, win 8.1 and win 8.1 update 1? and server side of windows?

     

    an request: please, do not force ads on the free version so we can work with the tool without visual polution and without concerns about popups, banners, etc.

  7. well, i like free and open software but in this case we have to consider the time you expended on it and the goal of quality above all.

     

    just consider charging a great deal (like less than $15) and we will all be ok with that.

     

    ps.: consider extr feature as costs for usr and main options the free ones... :P

  8. NikolaS92, huh, interesting choice for a question. Speech related components are currently all in one.

    I'll think about splitting it, but seems unimportant at this stage, I would rather add more components.

    Why dont You just release an alpha for us so we an relax for more 5 years when You will be releasing the tool? :P

    Seriously now. What about an alpha release for this weekend so we can play with it for more months until you release the final version of the tool?

  9. I have the Windows 7 Ultimate x86 RTM installed on my computer. Its the lite edition that I have done.

    Now i installed the vlite 1.x.x and the final (to have the waik compatibility) and its working fine here.

    I made the seven lited with vlite installed like i sad. i didnt install the waik from microsoft. I just installed the two versions of vlite and it works fine.

    Now I want to vlite the Windows Vista SP2 x86 (official with sp2) but the vlite shows me one erro. Something about framework.

    Is it possible to vlite a vista ISO in seven OS ?

    How can i do it?

    Or, will I have to install Vista or XP to make the vlited?

    ... sorry about my english.

×
×
  • Create New...