Jump to content

Yzöwl

Patron
  • Posts

    4,113
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    United Kingdom

Everything posted by Yzöwl

  1. We cannot help because you are unwilling to provide the information required for us to do so. Therefore as requested, Topic Closed. Topic has been reopened, (at least for now).
  2. Try this: FOR %%A IN (%*) DO ffmpeg -i "%%~A" -acodec alac "%%~dpnA.m4a"
  3. Why bother even going that far! Just open the run box WinKey + R, enter the following text and choose OK cmd /c dir/b/ad "%systemroot%\Microsoft.NET\Framework"&pauseWhat more do you need?
  4. You really need to read through the Unattended guide, paying particular attention to; Batch Scripting RunOnceEx RunOnceEx from CD $OEM$ Distribution Folders
  5. That thought process makes a little more sense to me, however the hard-coding of the Appdata directory name now makes less sense. If there's already a 'Reg Mech 9' directory there but no uninstall registry data, then they've already removed 'the most recent version' of the application. Why then would they want to install a repack of it? If they did why wouldn't they wish to maintain its previous data?
  6. I'm with GSM here, it appears that you are Exiting within the If FileExists but before the DirRemove is invoked. I don't use AutoIt myself but would expect the end user would click the OK button to close the MsgBox, which would lead in turn to the directory removal you intended, before EndIf was stated. My best guess is that you actually meant to use Else before Exit If FileExists($PreviousInstallation & "\RegMech.exe") Then MsgBox(0x40010, "Registry Mechanic 9", "Please uninstall previous version of Registry Mechanic before install the program..") Else Exit DirRemove(@AppdataDir & "\Registry Mechanic 9", 1) EndIfor in the order GSM suggested If FileExists($PreviousInstallation & "\RegMech.exe") Then MsgBox(0x40010, "Registry Mechanic 9", "Please uninstall previous version of Registry Mechanic before install the program..") DirRemove(@AppdataDir & "\Registry Mechanic 9", 1) Else Exit EndIf That said, I actually think that your installer would be wrong either way. If you want the end user to uninstall the application themselves, then you should also at least afford them the opportunity to decide upon the removal of the Application Data. Your intent currently appears that you're going to remove that folder, (the name of which you've strangely hardcoded) and do so without asking. If the enduser then decides against an uninstall, the data removal would have been to their detriment. If you really don't care about what the end user wants then I'd also suggest that whilst RegReading that key, you'd also parse the uninstall subkey and actually perform the uninstallation yourself using that value data. Upon the success of that, you'd be in a better position to remove the intended directory without issue.
  7. I hope this will help you tie it down: \SETUP\I386\SETUP.EXE \SETUP\I386\setup_dbg.exe
  8. My system (MSE), found nothing so I uploaded it to novirusthanks Here's what I got back: It looks fine to me!
  9. In that case, this should suffice: @FOR /F "TOKENS=*" %%# IN ('DIR/B/S/AD') DO @IF EXIST "%%#\%%~n#.EXE" DEL/A/F^ "%%#\%%~n#.EXE"Copy as viewed (on two lines, the first ending with a circumflex).
  10. I read it differently, therefore this will delete A\A.EXE, B\B.EXE, C\C.EXE and D\D.EXE. @FOR %%# IN (A B C D) DO @IF EXIST %%#\%%#.EXE DEL/A/F %%#\%%#.EXE
  11. I suppose you could just use this: ChCaseCN.cmd @ECHO OFF&SETLOCAL SET VAR=%COMPUTERNAME:~0,1%%COMPUTERNAME:~-1% PUSHD %TEMP% TYPE NUL>%VAR%.yzl FOR /F "DELIMS=." %%# IN ('DIR/B/L %VAR%.yzl') DO SET VAR=%%# DEL %VAR%.yzl ECHO=%%VAR%%=%VAR% POPD&PAUSE
  12. I'd offer a similar generic routine, which allows for a user provided switch for conversion to Upper or Lower case. chg_case.cmd @ECHO OFF&SETLOCAL IF %1' EQU ' GOTO :EOF SET VAR=%* FOR %%# IN (/ -) DO IF %VAR:~,1% EQU %%# (FOR %%$ IN ( U L) DO IF /I %VAR:~1,1% EQU %%$ (SET "YC=%%$"&&( CALL SET VAR=%%VAR:%VAR:~0,3%=%%))) IF NOT DEFINED YC (SET YC=L) SET "LC_=abcdefghijklmnopqrstuvwxyz" SET "UC_=ABCDEFGHIJKLMNOPQRSTUVWXYZ" FOR /L %%? IN (0,1,25) DO CALL :CC %%LC_:~%%?,1%% %%UC_:~%%?,1%% ECHO=[%VAR%] GOTO :EOF :CC IF /I %YC% NEQ U (CALL SET "VAR=%%VAR:%2=%1%%") ELSE ( CALL SET "VAR=%%VAR:%1=%2%%")This allows you to pass your string to be converted to the script following your choice of case. If a choice of case isn't provided then all to lower case will be the default. E.g. String To convert: TeSt StRinG = "I'm A StaR!" You can see that your choice of case can be applied using a forward slash or a hyphen and can itself be upper or lower case. You may also note that you are not required to enclose your string in double-quotes.
  13. Yes it is; however the solution could be relatively simple or particularly awkward depending upon what you are specifically working with. Could you pease provide more information with specifics regarding the data you are wishing to convert.
  14. I would suggest that your login problem may be malware related. Malware comes in many forms and Spybot is basically an antispyware product looking for spyware. What you need is to run an alternative antivirus/antimalware product: (standalone scanner) (online scanner) These are both free and extremely good products, if you can load up your system I'd suggest you try whichever of the two your system can manage.
  15. If you are comparing the content of files on a line by line basis then, as already indicated, there's a built in commandline tool for that, fc. FC /?
  16. haha to late.... its school project , not a assignment... No it's not! Topic Closed
  17. When you've done that, try reading this!
  18. Have you tried to change the path to the addon(s) in whatever it is you use as your installation method?
  19. Of course there is it's used in the first line of your batch file!
  20. I also created a 'packaged' batch file a couple of years ago to provide this functionality. See here! I wasn't going to include the above link, but decided to do so due to a potential flaw in the posted versions. The flaw is that they appear to run makecab on any file which doesn't end with an underscore; mine will 'hopefully' run it on any file which is not already 'cabbed' in the directory, (and upon success delete the 'un-cabbed' version). Cabbed files are not required to use the trailing underscore character and obviously .cab files may also exist in the selected directory.
  21. Worf, although you may no longer have a need to re-visit it, the topic may remain useful to others and will therefore remain open for future additions.
  22. No it shouldn't, here are all of the examples on that page: Nowhere does a path terminate then include a space before the name of the executable file. It also does not in the example you've provided.Since some.exe is located at the path %USERPROFILE%\Desktop you'd use the following: @START "Some Title" "%USERPROFILE%\Desktop\some.exe" /h
  23. Okay, here's what I'd do! Below you'll find some code, (it's also zipped up in an attachment just to make sure you don't make copy & paste mistakes). It is all you need, no additional batch files etc. Just double click this one and you'll have a new entry in your right click menu, Purge Files. PurgeKey.cmd @ECHO OFF & SETLOCAL SET "STARTKEY=HKCU\Software\Classes\" SET "ENDKEY=\shell\PurgeMe" REG ADD %STARTKEY%Folder%ENDKEY% /VE /D "Purge &Files" /F>NUL REG ADD %STARTKEY%Folder%ENDKEY%\command /VE /T REG_EXPAND_SZ /D^ "%%COMSPEC%% /C PUSHD %%L && DEL *.crc.* *.log.* *.m_p.* *.ger.* *.inf.* *.lst.* *.plt *.idx *.tst" /F>NULBeware, right clicking on the incorrect folder will likely contribute to deleting several important files! PurgeKey.zip
  24. What exactly does it do? All you've said is that "It will automate many different programs on a scheduled basis". That's not really sold me; I need more details before I buy a product, (especially one which requires me to open an online account which is set to log my work etc.). It sounds like a front end for setting up and running executable files on a schedule. It must be more than this so please explain further! Thank you.
  25. Firstly I'd like to make some code observations: Bat files are long outdated, cmd files were introduced with the Windows NT family. When using CD the /D switch should really be invoked. Changing directory to one containing spaces does not require 'double quotes'. DEL has a built in /Q switch. The DEL command accepts multiple arguments on one line.
×
×
  • Create New...