Content Type
Profiles
Forums
Events
Everything posted by Yzöwl
-
batch file that check version in registry
Yzöwl replied to ceez's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
Just a couple of notes skip can be problematic on my current system skip=2 is correct I'd advise you to specify your delims and try to find one or more which are less likey to fail due to OS or language differences. If you know what you are looking for, (in this case an IP Address), you may have more success using Delims=. Vista for instance tends to use a series of spaces whereas XP uses tabs and although it's irrelevant in this case, it's worth noting. -
batch file that check version in registry
Yzöwl replied to ceez's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
Just one question, why are you reading a key then writing the same data back to the same key? -
batch file that check version in registry
Yzöwl replied to ceez's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
You just need to add your commands into the parentheses! @Echo off&Setlocal Set "key=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Snare_is1" Reg query %key% /v DisplayVersion|Find "3.1.3">Nul&&( Echo:version 3.1.3 is installed Start "" /w %SystemDrive%\install\Snare314.exe||Goto :Eof Start "" /w %SystemDrive%\Snare314patch.exe&&( Echo:version 3.1.4 successfully installed)) -
First thing I'd be interested in is why anyone would see the need to disable that service. By doing so, not only would you be unable to connect to any shared file or print resources on a network you'd also in effect not be able to use several other dependent services. Although I'm sure that some 'extreme home users' may have disabled it, using the batch scripting methods employed with HFSLIP it is still the best command interpreter independent method of determining the OS. My suggestion without deliberately trying to find an alternative solution would be to incorporate a check for the services status first, if it isn't running then choose an alternate course of action to achieve your goal. Net start|Find "Work" As an alternative idea, you could use the attached executable I've created. For /f "delims=" %%# In ('NTOS.exe') Do Set "HostOS=%%#"The possible returned values are: <empty> Best found with If Not Defined HostOS This will indicate an unknown or non-NT based OS NT 3.51 NT 4.0 2000 XP 2003 Vista This will be returned for Windows Vista or 2008 I hope it comes in useful to those of you requiring it! NTOS.zip
-
batch file that check version in registry
Yzöwl replied to ceez's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
@ luppybob First thing to note is that if your output contains spaces instead of tabs, (which it generally does in Vista), but none of your tokens do, then use both space and tab as your delimiters i.e. delims=<tab><space> You may however be over-complicating your approach, since you are looking for a specific version number why not use that as your Find and ignore the For loop completely! @Echo off&Setlocal Set "key=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Snare_is1" Reg query %key% /v DisplayVersion|Find "3.1.3">Nul&&( Echo:version 3.1.3 is installed) -
Sorry to add to a topic which has lay here silently for a couple of months but the reason for using that particular method was that VER returns only the version of the command interpreter not the running Operating System!
-
Without getting into the intricacies of property ownership and licensing, I'll suggest you query goes no further and you look at adding your own license for whatever it is that is actually yours which you are providing with what is Microsofts.
-
Oh well, if that doesn't work then I'm afraid they're going to have to generate a report with the tool they've been pointed to in their other topic and try getting further help from somewhere a little more dedicated to these issues, like here for instance!
-
Batch - Collecting Installed software
Yzöwl replied to twig123's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
Here's a quickly put together 'compiled' batch file which may help give you a console listing. I've not tested it on all OSes etc. but it was intended to work with a good few. PS I've not bothered checking to see how it copes with badly named products, if you've got software using `poison` characters then you may be out of luck with this attempt! OnMyPC.zip -
Have you tried this?
-
Batch - Collecting Installed software
Yzöwl replied to twig123's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
Product only provides you with Software which was installed using Windows Installer, the only way I can suggest is to get a listing form the registry uninstall key. -
How to force directory deletion in DOS
Yzöwl replied to micks80's topic in Unattended Windows 2000/XP/2003
What you're trying to do is not working so you're going to have to try to give us more information so that we can find a suitable work-around! -
Okay, I understand your reasoning for the location in %userprofile%, as opposed to the %appdata% folder you gave in your example. Try the compiled batch file in the archive below. Its content is one single .cmd file, there is no third party utility included or required. Due to the nature of the compilation and the hidden window Anti-Malware programs may not like this file. Please judge for yourself whether you wish to run it! _AppData.zip
-
Copying files from CD to user disk issue
Yzöwl replied to micks80's topic in Unattended Windows 2000/XP/2003
Replace your second and third lines with either Pushd %temp%\MyFolder or Cd /d %temp%\MyFolder As for the WinRAR SFX, it is a standalone and therefore requires no installation on the users system. -
Unattended VLC install script
Yzöwl replied to OffHand's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
Have you tried the uninstallation routine provided here? -
warning : registry tweaks some thing happened
Yzöwl replied to rebrov's topic in Unattended Windows 2000/XP/2003
I don't know which file it is you've downloaded and installed. If you'd made it clear in your opening post that it was the file you wanted to change and not your system, it would have helped. If you'd supplied us with the information about the 32 bit colour instead of us guessing from you mentioning icons and an uploaded reduced quality graphic we'd have had a fighting chance at a solution. I'm not your bro! I would suggest that this problem is more than likely an issue with your display hardware settings and unrelated to the registry file you used. Are you using a Virtual Machine for this and or did you make any reference to the display settings in your winnt.sif? -
warning : registry tweaks some thing happened
Yzöwl replied to rebrov's topic in Unattended Windows 2000/XP/2003
First of all you should not run any file without fully reading it and understanding the implications of doing so. Secondly you should always make a backup before changing the registry settings. If you didn't do either of the above the only easy fix you can implement is to perform a system restore or last known good configuration. a valuable lesson learned -
Unattended VLC install script
Yzöwl replied to OffHand's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
Have you taken a look at some of the examples in this topic! Although not a direct answer they may help you out! -
The utility as you stated does seem to incorrectly exhibit this behaviour; you have done nothing wrong, the utility is in error. Why though would you want to create a shortcut to the Users Application Data folder and store it inside the Users Application Data folder and give it the name Application Data?It can be done, I have done so successfully, however since its only purpose would be to act as a `directory refresh` I see little point in uploading my solution. If you'd like to give us a real example of what exactly it is you want I'll see what I can do to help you further.
-
Windows Search Setup & SVCPACK.INF
Yzöwl replied to GreenMachine's topic in Unattended Windows 2000/XP/2003
Firstly, I'm guessing it was a typo, Net start TermServices. If Net.exe doesn't work and Sc.exe only utilizes WMI, which isn't available at T13, (also meaning a WMI vbscript is out), then I suppose you could try a vbscript using ADSI. You will also need to bear in mind that the Terminal Services service also relies on Remote Procedure Call meaning that you'd probably need to start that too! If that works carry it as a 3rd party utility compiled to an exe. The only other thing I could suggest other than adding utilities is to install Windows Search later in the setup, probably from RunOnce or similar. -
As I am unaware of any patch required for this application other than one to illegally use the software without paying, I'm closing this topic before you earn yourself a very quick ban. Please do not request or discuss methods of bypassing software licensing procedures.
-
Renaming file using batch script
Yzöwl replied to sternkanz's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
Here's an example of variable expansion, (see SET /?), which should help you out! @Echo off&Setlocal Set "_=09302008092212AM.pdf" Set "_=%_:~4,4%%_:~0,4%%_:~8%" Echo:%_%&Pause -
NEW 2 SCRIPTING.. NEED HELP?
Yzöwl replied to bforns's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
Unfortunately, you are required to perform your own homework/assignments/projects and we will not be doing them for you! Topic Closed! -
The idea I introduced in my attachment earlier definitely works on the posters 'expected' English (UK) system. Here's another method for deleting your shortcuts, this one should work regardless of your particular language etc. @For /f "delims=" %%# In ('Dir/b/a-d "SUPER ?*.lnk"') Do @Del/a/f "%%#"Obviously this takes no account of any other shortcuts beginning with SUPER and followed by a space and at least one other character!
-
Download, read and if you wish run the batch file in the zip! copyrite.zip