Content Type
Profiles
Forums
Events
Everything posted by Yzöwl
-
add multipar to my batch file
Yzöwl replied to darksimoon's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
If the input file size does not equal zero end the batch file! I would suggest you remove NOT and try again! -
add multipar to my batch file
Yzöwl replied to darksimoon's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
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? -
Blinking text in batch-file
Yzöwl replied to HØLLØW's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
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 -
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.
-
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.
-
Batch to Log & Console
Yzöwl replied to Dogway's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
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 -
Batch to Log & Console
Yzöwl replied to Dogway's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
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 -
Batch to Log & Console
Yzöwl replied to Dogway's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
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 -
Find newest file
Yzöwl replied to sweept's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
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! -
Find newest file
Yzöwl replied to sweept's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
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 -
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
-
Batch Command To Copy Files
Yzöwl replied to buffstuffmedia's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
I think it may be prudent to provide sample lists and/or folder structures. -
How to install LIPSetup.msi file from cmdlines.txt?
Yzöwl replied to rigorous's topic in Unattended Windows 2000/XP/2003
Have you read 'The Guide'? -
How to install LIPSetup.msi file from cmdlines.txt?
Yzöwl replied to rigorous's topic in Unattended Windows 2000/XP/2003
Read this! -
Blinking text in batch-file
Yzöwl replied to HØLLØW's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
Now it's been reborn, I thought the attatchment may be interesting. Blink.zip -
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"
-
Count down in a batch file
Yzöwl replied to sixpack's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
Just change the last line of my above example to read: >NUL TIMEOUT /T 1) -
Count down in a batch file
Yzöwl replied to sixpack's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
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. -
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.
-
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.
-
@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.
-
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.
-
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.