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. If you do not expand upon your original post and provide us with sufficient information on which to base a suitable reply I will remove this Topic.
  2. If the input file size does not equal zero end the batch file! I would suggest you remove NOT and try again!
  3. Why are you creating MD5 hashes and parity files? I would suggest that any file corruption in your 'burned' ISO will also bring into question the validity of the hashes and parity files also burned within! Why not just burn your ISO with verification?
  4. What was asked "evolved" and on post #16 and later again on post #21 the OP declared his issue as "solved". jaclaz Sorry you are wrong, from post #21 they are still claiming to double click a file and having it run a batch file!
  5. Did anyone actually take a look at the example I provided? it provided a method of changing text on a line without clearing the screen
  6. I cannot find anything posted which provides what was asked. That was the reason for my response, (I certainly had no interest in replying to the pointless ramblings of DataCracker7899). Double clicking on a .txt file will not open a batch script with the 'clicked' file as a parameter. Double clicking on a .txt file will only open that .txt file in whatever program has been associated with .txt files. Right clicking could provide workable options but, as I stated, double clicking will not unless you make changes on the end users system.
  7. The only ways you can use a script is to associate a particular process with a specific file extension. (They are talking about double clicking on a .txt file) If you want to have a script executed in this manner you'd need to re-associate .txt files on the end user's system with the scripting engine pertinent to the type of script you're invoking. Your alternative is to create a script 'packaged/compiled' to an executable, name it notepad.exe in the location of your proper notepad.exe and use it to call that original notepad exe in its new location. The problem with both those approaches is that that they are to be carried out on your end users PCs.
  8. that is because you asked for the information to be output to a file. If you want it to be logged to two places simultaneously then you need to tee it, as jaclaz has already indicated. You can either use a 3rd party utility for that purpose or possibly this vbscript. tee.vbs set con = createobject("scripting.filesystemobject").opentextfile("con:", 2) do until wsh.stdin.atendofstream s = wsh.stdin.readline wsh.echo s : con.writeline s loopto use it you'd probably just pipe your script into it. hey.cmd @D:\Programas\VIDEO\x264-2245.exe --level 4.1 --preset slower --tune film --pass 1 --bitrate 1500 --deblock -2:-1 --keyint 300 --min-keyint 30 --aq-strength 1.2 --fps 29.970 --output NUL Copia.avsThen run it like this: hey.cmd | cscript tee.vbs >mylog.log
  9. You are supposed to run my batch script, MyScript.cmd with or without the parameter, not your command within the script! examples MyScriptor MyScript -l
  10. I would suggest something along these lines: MyScript.cmd @ECHO OFF & SETLOCAL ENABLEEXTENSIONS DISABLEDELAYEDEXPANSION SET "_OUT=CALL :SUB" FOR /F "DELIMS=/-" %%# IN ("%*") DO ( IF /I %%# EQU L SET "_OUT=(%_OUT%)>MYLOG.LOG 2>&1") %_OUT% GOTO :EOF :SUB your command(s) hereThis means that your script will accept L, l, /L, /l, -L or -l as parameters for logging the output to file. anything else should log the output to the console window. for this to work your script should have no spaces in its file name or at least be quoted
  11. I think this answers a few questions! You have created your own secret batch file which calls a subroutine, written by us, which is passed two parameters. The subroutine must set a variable or return for the most recently modified/accessed/created, (we haven't been told), in order that your secret batch file can continue on its own way without bothering us! Just post the batch file you have and let us play with it as necessary!
  12. We need a little more information about the files you are using. 5eraph has assumed you are using the newest file of every file of a certain type in the same directory. If you were copying that file then the following would probably suffice XCOPY *.log X:\DestinationDir /D /Y
  13. This is how I recall having done this task in the past. I have no idea if it is the same or any better than your example method, but feel free to give it a shot. First create this file and save it as %SystemRoot%\system32\GeTarget.vbs Wscript.Echo CreateObject("WScript.Shell").CreateShortcut(WScript.Arguments (0)).TargetPathThe above should all be on one line. Now paste this single line into Start » Run and click OK reg add "HKCU\Software\Classes\lnkfile\Shell\Find Target\command" /ve /d "%comspec% /c @echo off&for /f \"delims=\" %%# in ('cscript //nologo %SystemRoot%\system32\GeTarget.vbs \"%1\"') do start \"\" explorer.exe /select, \"%%~#\"" /f
  14. I think it may be prudent to provide sample lists and/or folder structures.
  15. Now it's been reborn, I thought the attatchment may be interesting. Blink.zip
  16. You do realise of course that the code does not find identical files, it finds same name files with same filesizes; there is a difference! Andy, I'd appreciate it if you exhaused one avenue before taking another, it isn't nice to post code between forums simultaneously. You've posted Daves code from the other forum here and at least gunsmokingmans from another of your Topics here, under the name smokingmangun, on the other. Please do not post any of my code nor that of our Members on other Forums without our permission. set "fileMask=%~1"
  17. Just change the last line of my above example to read: >NUL TIMEOUT /T 1)
  18. You may find the following fun! @MODE CON: COLS=32 LINES=1 @COLOR E5 @TITLE Countdown @ECHO OFF SETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION FOR /F %%# IN ('COPY /Z "%~dpf0" NUL') DO SET "CR=%%#" FOR /L %%# IN (10,-1,1) DO (SET/P "=Script will end in %%# seconds. !CR!"<NUL: PING -n 2 127.0.0.1 >NUL:)The first three lines are pointless additions which can be removed, change the 10 in the second 'FOR loop' to the number of seconds you wish to count down from.
  19. It has a Software destination because the question is how to use a specific piece of software, Easeus, to perform a specific task, merge unallocated space to a specific partition.
  20. Something like this may do it: @ECHO OFF SETLOCAL ENABLEEXTENSIONS PUSHD X:\MYDIR\SUBDIR FOR %%# IN (TSP1PayStatus*.*) DO CALL :RF %%# POPD ENDLOCAL GOTO :EOF :RF SET "_FN=%*" REN %_FN% TSP%_FN:*1=%If the script is being run from the directory containing the files you should be okay to remove lines 3 & 5; If not replace the path on line 3 with yours.
  21. @FixitUP This is the fifth Topic of yours I've had to move here, please post your questions in a more appropriate place, not everything in the 'Programming' Forum.
  22. Well! It's not me looking for help, but if I provide you with a possible solution, the least you can do is respond to it. fully. The service pack always creates a restore point prior to install as well as makes itself uninstallable, so what happened, 'Should' tells us nothing.
  23. If you have downloaded and installed Service Pack 3, then you should be able to uninstall it and/or go back to the restore point which is created before the installation.
×
×
  • Create New...