Content Type
Profiles
Forums
Events
Everything posted by Yzöwl
-
This topic has been closed since the intended respondent has replied.
-
Can be shortened to %AppData%\Microsoft\Windows\Start Menu\Programs\Accessories
-
May I be the first to thank you for your apology.
-
This topic has been closed in order to protect all parties.
-
VBscript Help
Yzöwl replied to erw34r3's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
Without wishing to sound ungrateful, it would help the topic and any potential readers of it if you were to provide the solution you worked out! -
I know how to perform such a task, that's not the point I was trying to make! Lets take my XP SP3 system as an example: Under %WINDIR% alone there are currently 4955 directories and you want to be provided with the folder attributes for each and every one of them so that you can individually search for each and mirror their attributes with mine! Then you want me to give you the Documents and Settings directories which with the best will in the world will never be anything like yours! There are different versions of XP with SP3 too
-
Simple Batch 'IF' script
Yzöwl replied to a_user's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
You may wish to add the /q switch too: MsiExec /norestart /q/x"{76B2BC31-2D96-4170-9C44-09E13B5555F3} REMOVE=ALL" "%ProgramFiles%\Symantec\LiveUpdate\LSETUP.EXE" /U /qBTW did you notice the REMOVE=ALL I added to your uninstallation command line! -
Let me get this straight, you want someone to list every single folder within the system and profile directory structures on 'their machine' for an unspecified version of XP operating system in order for you to reproduce them on 'your machine'!!!
-
Simple Batch 'IF' script
Yzöwl replied to a_user's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
What about gettting rid of live update too! MsiExec /norestart /q/x"{76B2BC31-2D96-4170-9C44-09E13B5555F3} REMOVE=ALL" "%ProgramFiles%\Symantec\LiveUpdate\LSETUP.EXE" /U -
Well since you've given us no information whatsoever in which to base our replies, did you need to use modifype?
-
@ Salimsr I am closing this Topic. If you wish to see it re-opened please, (as already requested), try to explain your requirements a little better. You can do that by sending a PM to either of this Forum Groups Moderators using one of the links below. Yzöwl gunsmokingman
-
No! This is not a one way request Forum where you can employ the services of our Members and give nothing back. Please make an attempt to script this yourself then post it here with a better description of the requirements. We will then be in a better position to consider providing you with any help necessary to tweak/fix your script.
-
I have no idea what your system outputs for DATE/T Mine outputs: DD/MM/YYYY
-
I'm guessing that your particular setup outputs DOW as part of Date/T, therefore every seven days you'll be overwriting the previous file. I'd suggest therefore that you use the full date instead, preferably in standard format or similar. YYYYMMDD.
-
One of several pages found using a search turned up this: FINDCD.EXE. Next time it would be less rude to your fellow Members if you were to use the search facility first!
-
For now I think you should ignore the password visibility issue and look at your code structure. The first thing I notice is that you go straight into deleting two drive mappings, you have not checked to see if they exist already, or even if they are already mapped to the intended destinations. If they are already mapped to another location you may need to make a note of that location and re-map them to an alternative letter. Then you ask for user input, which I suggest should be your first task, but fail to check any of the input. If the user types 5 for their Year Group your code would continue needlessly with an invalid figure, the same could be said for Username, ideally it needs to be checked for validity.As far as the hiding of password entry is concerned, I'd suggest you use vbscript / html|hta solution, which could either be directly scripted or created and run directly from the batch file. As a final thought, due to possible limitations in your chosen scripting method, you may need to also to ensure that invalid / poison characters are not used, especially with the password input.
-
KMLite, as far as I'm concerned, is simply the best browser in the world, it has the perfect balance for me between functionality and simplicity.SRWare Iron, is Google's Chrome with all the crap removed, if it was updated a little more readily, it would take some beating as it is undoubtedly the fastest I've used.
-
Help with for /f 'reg query'
Yzöwl replied to a topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
1. @Echo off&Setlocal enableextensions Set "U_=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" Set "I_=Inno Setup" Set "A_=%I_% 5" Set "M_=This is a custom message" For /f "delims=" %%a In ( 'Reg query "%U_%\%A_%_is1" /v "%I_%: App Path"2^>Nul^|Find "REG_"') Do ( Set "InnoAppPath=%%a"&Call :Sub %%InnoAppPath:*Z=%%) If not defined InnoAppPath Echo:%M_%&&Goto :FurtherStep Echo:%InnoAppPath% Pause&Goto :Eof :FurtherStep Echo:This is a further step Pause&Goto :Eof :Sub Set InnoAppPath="%*" 2. @Echo off&Setlocal enableextensions Set "A_=reg.exe" For %%# In (%A_%) Do If %%~$PATH:#' Equ ' (Goto DoOneThing) Echo:The app is in PATH Goto :Eof :DoOneThing Echo:The app is not in PATH -
Help with for /f 'reg query'
Yzöwl replied to a topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
I thought I'd provide an example which would work more like a template for any Inno Setup Application. Line 5 below is already set for the Topic Starter's app, anyone else can set it accordingly. You'd do this by replacing between the = and " with the Inno Setup Application Name minus the trailing _is1: e.g. Set "A_=Wise Registry Cleaner" would read the "Wise Registry Cleaner_is1" Uninstall Key @Echo off&Setlocal enableextensions Set "U_=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" Set "I_=Inno Setup" Set "A_=%I_% 5" For /f "delims=" %%a In ( 'Reg query "%U_%\%A_%_is1" /v "%I_%: App Path"^|Find "REG_"') Do ( Set "InnoAppPath=%%a"&Call :Sub %%InnoAppPath:*Z=%%) Echo:%InnoAppPath% Pause&Goto :Eof :Sub Set InnoAppPath="%*"The code has been changed from the usual delims=<tab> method to make it compatible with Vista too. The resulting variable, %InnoAppPath%, will be surrounded by double quotes, if this is not a requirement in your case you can remove them on the last line of this code. -
Unfortunately not MGB; that name is already in use!
-
This topic has been closed, there is little else, (non-judgemental), which can take things forward.
-
Now I've finished making your post readable and in a more appropriate topic etc., I'd like to ask if you could break down your series of commands explaining what exactly it is they do!