Content Type
Profiles
Forums
Events
Everything posted by Yzöwl
-
Sorry for the bump, but I feel that three days for any positive response is on this issue is sufficient for me to do so. As an update, (in an attempt to cover my a*** for the bumping), this issue remains on a brand new XP installation with a brand new Mozilla based browser.
-
RunOnceEx entries are added, but never run!
Yzöwl replied to Decker87's topic in Application Installs
Oh and BTW, there's isn't such a thing as a `Corporate Version` of WinRAR, it's re-packed warez and has no place on this forum! -
Up until a few days or so ago, when I viewed the site under guest status and found a topic in which to reply the following would happen: click on reply board message box comes up with `log in or else you can't` type message enter log in details reply page loads for typing into Now what happens is: click on reply board message box comes up with `log in or else you can't` type message enter log in details goes to board index page navigate back to the specific forum area navigate back to specific topic click on the reply button reply page loads for typing into As you can see, the extra steps are a complete pain in the proverbial. As a precaution I'd already removed all site cookies and cache, so I'm assuming it's something changed at your end. Could you please take a look and get it back to how it was, thank you.
-
Schedule shutdown script issue
Yzöwl replied to dubsdj's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
Is the location of sched.txt and schedshutdown.vbs one level higher relative to the running batch file? Why are you using xcopy, when a standard copy should do the job? What is the exact parameter you are trying to pass to the vbscript? Your script if ran from anywhere with spaces in the name would create two lines which looked like this xcopy "X:\Top Level Folder\SecondLevel\Scripts\mybatch.cmd"\..\Sched.txt "c:\windows" cscript "X:\Top Level Folder\SecondLevel\Scripts\mybatch.cmd"\..\schedshutdown.vbs 0\..\Do they really reflect what you're wanting to do? -
About .bat programming.
Yzöwl replied to my44186680's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
The entire errorlevel section is a pointless waste of space, as I stated in my first response all you need to do is replace both of the sections containing SET E= FOR %%! IN (1 2) DO IF ERRORLEVEL %%!00 SET E=%%! SET !=0 1 2 3 4 5 6 7 8 9 IF ERRORLEVEL ?SET !=0 1 2 3 4 5 IF ERRORLEVEL : FOR %%! IN (%!%) DO IF ERRORLEVEL %E%%%!0 SET E=%E%%%! IF NOT ERRORLEVEL * SET !=0 1 2 3 4 5 6 7 8 9 FOR %%! IN (%!%) DO IF ERRORLEVEL %E%%%! SET E=%E%%%! IF NOT %E%==0 goto ERRORwith if errorlevel 1 goto ERRORor if not errorlevel 0 goto ERRORAll you are in effect doing is letting them know that an error occurred. Also if they needed to see that error message you would need to either be running in a pre-opened console window or add a command to pause the end before the window closed without reading it. Another thing you may or may not be aware of is that if an error of any sort occurs whilst performing the clone of image 1 onto your first disk, the script will not even bother cloning the other image to the second disk. -
Another Batch/VBS hybrid, see how this does you! @Echo off&Setlocal&Set "VBS_=%TEMP%\_$.vbs" >"%VBS_%" Findstr "'VBS$" "%~f0" For /f "Delims=" %%? In ('CScript //NoLogo "%VBS_%"') Do Set T_=%%? Del %VBS_%&Echo/%T_%&Pause&GoTo :Eof tm = time() 'VBS hr = hour(tm) 'VBS mn = right("0" & minute(tm),2) 'VBS Select case true 'VBS case hr < 12 'VBS ampm = "AM" 'VBS case hr = 12 'VBS ampm = "PM" 'VBS case else 'VBS ampm = "PM" 'VBS hr = hr - 12 'VBS end Select 'VBS WScript.Echo hr & ":" & mn & " " & ampm 'VBS 'VBS
-
That's because the code supplied was wrong. Could you please explain exactly what you want to do. Examples: cab all files individually in a directory and all it's subdirectories, placing the cabbed versions in their original locations cab all files individually in a directory and all it's subdirectories, placing the cabbed versions in their original locations but overwriting the originals cab all files individually in a directory and all it's subdirectories, placing the cabbed versions into a single specified location create a cab archive containing all files in a directory and all its subdirectories create a cab archive containing all files in a directory and all its subdirectories maintaining the tree structure none of the above (please specify)
-
The batch file should work as you requested. It uses WMIC and grabs the local time from your machine and puts it into the format you required. Because it uses WMIC you need to be running at least XP as an administrator. If WMIC has never ran before on your system it will take a short time to set itself up before first use.
-
If using XP or higher with admin privileges then for a more universal solution you could use the batch file in the attached archive. TimeIs.7z
-
There are many different ideas for doing this, however, the answers can vary a great deal because of the way different localities display their time data and different operating system functions. A basic way based upon your current output (unknown as to whether it is in 12 or 24 hour format) is: %TIME:~0,2%:%TIME:~3,2% We would need more information in order to take this much further without over complicating matters.
-
The answer you are looking for is @ECHO OFF&SETLOCAL ENABLEEXTENSIONS SET "d=%SYSTEMROOT%\SYSTEM32\oeminfo.ini" FOR /F %%? IN ('MOUNTVOL^|FIND ":\"^|FIND /V "A:\"') DO ( IF EXIST %%?WIN51IP SET "CDSPDIR=%%?I386\SVCPACK") IF NOT DEFINED CDSPDIR GOTO ENDIT >"%d%" (ECHO/[General] ECHO/Manufacturer=Unattended Windows Install ECHO/Model=" Version: (18.09.07)" ECHO/[Support Information] ECHO/Line1=Installation Date: %DATE% ECHO/Line2= ECHO/Line3=Slipstreamed Hotfixes: ECHO/Line4=) SET n=4 PUSHD %CDSPDIR% FOR /F "DELIMS=" %%? IN ('DIR/B/A-D *.CA_^|FINDSTR/IB "KB IE7 WMP11"') DO ( CALL :ADDIT %%~n?) POPD&GOTO ENDIT :ADDIT SET/A n+=1 >>"%d%" ECHO/Line%n%=%1 GOTO :EOF :ENDIT ENDLOCAL&DEL %0I haven't tested it, but I'm fairly sure it should work for you.
-
Moving your paging file to another, faster drive can produce a performance increase, another partition however will actually decrease performance. The last time I installed Photoshop on a PC, it asked for a location in which to assign additional swap file space for its own purposes during that installation.
-
About .bat programming.
Yzöwl replied to my44186680's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
You would need to provide the entire file and the ghost documentation on its errorlevels in order for me to attempt to make some working code. Looking at what is there, I've got no idea what is needed only that the entire batch code presented is one of the most meaningless I've ever seen. The producer of the code appears to have no idea whatsoever of what errorlevels are or how they work. -
No need to be so sensitive, nobody was questioning you, just responding to this in order to correctly bring the thread up to date!
-
Here's a compiled batch file, which should revert all your OS services back to their default settings. I haven't tested it in its compiled format, but I hope it does what you require of it. svc_defs.7z
-
All posts dicussing non-Microsoft approved or non-public software have been removed. Please resist the temptation to go down that path again!
-
About .bat programming.
Yzöwl replied to my44186680's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
From the code you have posted, I cannot understand what it is you are trying to achieve. Is it not just better to inform you of an error if one existed as a result of the previous command. @echo off ghost -clone, mode=load,src=X:\Backup.gho,dst=1 -ntil -sure -auto ::if errorlevel returned is 1 or greater then go to label named onerr if errorlevel 1 goto onerr ::any further code on success here echo. The operation was successful pause goto :eof :onerr ::any further code on failure here echo. The operation failed pause -
It's available with Microsoft now!WindowsXP-Windows2000-Script56-KB917344-x86-enu.exe (v5.6.0.8831 - 8/28/2007)
-
You can add 'Send To' to the Send To Menu using an inf file. [Version] Signature = $Windows NT$ [DefaultInstall] ProfileItems = SendHere [SendHere] Name = 'Send To', 9, 16393 CmdLine = 16393,,
-
Of course they could, although that isn't what they asked for! The shortcut would need to say something like this: "<Drive>\<PathTo>\Bginfo.exe" "<Drive>\<PathTo>\Config.bgi" /silent /timer:0 /NOLICPROMPTThe above should all be on one line.
-
I would suggest using a Web Browser! Could you please try to explain better what it is you are trying to achieve.
-
You could try something like this: Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run] "BgInfo"="\"<Drive>\\<PathTo>\\Bginfo.exe\" \"<Drive>\\<PathTo>\\<FileName>.bgi\" /silent /timer:0 /NOLICPROMPT\""
-
File Copy and FTP Script
Yzöwl replied to bbbngowc's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
In order to find out, create a vbs containing this: wscript.echo date and double-click it. As IcemanND has mentioned, try/MAXAGE:3 -
Hello and welcome to the MSFN Forums. You must be well connected if you can get an entire country to say Hi!
-
That's the kind of thinking that leads to outbreaks.Fortunately not, it's 'not thinking' that leads to outbreaks.