Content Type
Profiles
Forums
Events
Everything posted by Yzöwl
-
Also what is this supposed to do? In a general $WINNT$.INF that would produce lines like this: FOR %J IN ([Unattend]$OEM$) DO (IF EXIST [Unattended]$OEM$ and FOR %J IN (UnattendMode=FullUnattended$OEM$) DO IF EXIST UnattendMode... IF EXIST FullUnattended$OEM$...
-
Ordinarily yes.
-
Will this not do! SHUTDOWN /S /T 3600Where 3600 is the timeout period in seconds (1 hour).
-
\$OEM$\$1\install\alcohol\ For a better explanation of the structure see here
-
In order Yes You will need to create the structure you require. No In a cmd prompt type REG /? for more info.
-
I'm sure it'll be useful to some, other than the runtimes section I'm unlikely to use it until the range of apps is expanded. I use free software almost exclusively but there's only a few of the current selection set I'd bother with.
-
Help with VB Script
Yzöwl replied to bbbngowc's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
If Remote Access Permission (Dial-in or VPN) Allow Access is selected then msNPAllowDialin is TRUE If Remote Access Permission (Dial-in or VPN) Deny Access is selected then msNPAllowDialin is FALSE If Remote Access Permission (Dial-in or VPN) Control Access through Remote Access Policy is selected then msNPAllowDialin has no value. Therefore try changing the line to say: WHERE objectCategory='user' " & _ "AND msNPAllowDialin <> '*'" -
Your post has been edited, please do not request responses to email addresses. This is a forum, the intention is that questions are asked and responded to within the forum community!
-
I can't see a problem with it, and TBH there should be nothing Microsoft can do to stop them. They state that it's a 'plug-in' which suggests that it is running because the OS/Browser has been designed by Microsoft to allow such functionality. Also because it's intended only to work only on sites which are designed to require it, IE should act in it's usual manner on all non specified sites. I see this as not really being any different to say Silverlight/Flash which run as a plug-in and only kick in when required. For these reasons I can see this as a good move by Google as a method to introduce die hard IE users to their products. I just cannot work out yet how it will directly benefit Google.
-
I'd suggest you take a look at a GUI scripting tool such as AutoIt for this task. In the meantime I suppose I could take a shot at creating a YES | NO box with 30 second countdown specifically for this task. You'd probably end up running it as an executable from the batch and have it return the result back to the batch. It'd be no real use for anything else hence my reason for not doing so unless it's required. Also if it is required, then you'll need to let me know exactly what data you'd want it to return. i.e. I was thinking 1 for YES, 2 for NO; meaning that your batch could probably use the return data as: GOTO XY<RETURNED DATA>
-
Silly question I know but ObjFSO and ObjShell are Set elsewhere in the script are they?
-
lnk file target path
Yzöwl replied to sweept's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
The following works with Win7 shortcuts. @More "%~dpn1.lnk" 2>Nul|Findstr ":\\."&&Ping -n 6 127.0.0.1>NulJust drag and drop the shortcut onto it to see it in action. -
Help can get these command to work in [GuiRunOnce]
Yzöwl replied to illusions's topic in Unattended Windows 2000/XP/2003
Also see if this batch file serves you any better. @ECHO OFF SETLOCAL SET "SMP=Start Menu\Programs" SET "WMP=Windows Media Player" SET "IE=Internet Explorer" PUSHD %UserProfile%\%SMP% DEL /F /S /Q /A "%UserProfile%\Favorites\*.url" FOR %%a IN ("%IE%" "Outlook Express" "%WMP%") DO ( IF EXIST "%%~a.lnk" MOVE "%%~a.lnk" Accessories) MOVE "Remote Assistance.lnk" "%AllUsersProfile%\%SMP%\Accessories" COPY "Accessories\%WMP%.lnk" "%AppData%\Microsoft\%IE%\Quick Launch" PUSHD %SystemRoot%\system32 FOR %%a IN (wmpshell oleacc actxprxy) DO REGSVR32 /S %%a.dll REGSVR32 /U /S zipfldr.dll -
As I'd stated previously, you decided, for your own reasons, to keep certain information from us without knowing whether or not it would affect potential solutions. Anyhow with the intention of following up on my post here's one batch file method. (untested) @ECHO OFF & SETLOCAL ENABLEEXTENSIONS SET "D_=C:\test" SET "S_=C:\test\Default Pictures" SET "E_=bmp" SET "T_=%Temp%\_$.tmp" SET "F_=USER.BMP" PUSHD %D_% DIR/B/A-D "%S_%\*.%E_%"|FIND /I /N ".%E_%">"%T_%" FOR /F %%_ IN ('FIND /V /C "" ^<"%T_%"') DO SET/A "C_=%%_ + 1" SET/A "N_=%RANDOM% %% %C_%" FOR /F "DELIMS=" %%_ IN ('FINDSTR/BC:"\[%N_%\]" "%T_%"') DO SET "L_=%%_" COPY "%L_:*]=%" "%F_%" DEL %T_%I decided to go with output to temp file thinking it may be faster than other ideas I had.
-
The task can be done using a batch file. There's more than one way to do it but the method I'd choose would be dependent upon the specifics of the task, (source and destination locations, number of files, when and how the script is invoked, OS etc.) The only unknown which could scupper solutions is if file names contain 'poison' characters.
-
Is there a particular reason why you require a vbscript? You say that you'd like to make a script, so would a batch file do for instance? Also, as a side note, are you sure that those are the real names for the source and intended destination folders? or are you just using them as an example? In some cases providing alternatives in this kind of request may exclude better solutions. I tend to see scripts as a command or series of commands to achieve a specific goal; its often more difficult to provide a generic solution where people can just change out portions to suit any scenario.
-
Simple Batch 'IF' script
Yzöwl replied to a_user's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
I'd suggest you remove LU after having removed the Symantec product(s), however it shouldn't be necessary. -
There are literally dozens of free CD Menu creation applications available for your purposes without the need to use WPI. Also I'd suggest in future that requests of this type are directed to the developer and not the boards.
-
The wmic output invariably includes unwanted and unrequired trailing character(s)! Try @Echo [%Caption%] to see what I mean. Regardless of the fact that this is no longer a one-liner, the fact that you've not excluded the trailing characterthe fact that you appear to be working in a console as opposed to a CMD script, Here's a screen recording for you to download, of your script fixed to run and pause from a batch on a Vista x86 box. Here's the script it runs, Dumpys.cmd @For /F "tokens=*" %%A In ('Wmic Os Get Caption^, Version /Format:list') Do @Set %%A @Echo %Caption% [%Version%] @Pause Obviously the unwanted output can be removed like this: @Set %%A>Nulbut you can see why using Set %%A isn't a good idea. Now correcting that and ignoring the unwanted trailing character, I'm going to allow the echoing of the set command to show you something else. @For /F "tokens=*" %%A In ('Wmic Os Get Caption^, Version /Format:list') Do Set %%A>Nul @Echo %Caption% [%Version%] @PauseYou should see that the set command is being run several times not just on the version and caption lines. I hope that explains to you why I suggested that method and why less can sometimes be more. My responses are based upon running the examples on Windows 7 and Vista machines You will also note in all these wmi based cases that there is a problem outputting the ™ symbol.
-
If I was to use Wmic for this, I'd probably use this: @Echo off & Setlocal enableextensions For /F "tokens=1* delims==" %%a In ('Wmic OS Get Caption /value^|Find "="') Do ( Call :_ %%b) Echo %%HostOs%%=%HostOs% Ping -n 6 127.0.0.1 > Nul & Goto :Eof :_ (Set HostOs=%*)
-
simple batch
Yzöwl replied to finshore's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
I'm glad to have helped you to further your knowledge. -
simple batch
Yzöwl replied to finshore's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
Although you say you've solved it, I think that the loop your using is unnecessary. Here is an educational method which is a little long-winded but hopefully explains the thought process a little better. I hope it helps somewhat. -
simple batch
Yzöwl replied to finshore's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
It's not clear to me exactly what you are trying to do, so I'm going to ask! Currently, if dn.exe isn't running you are still xcopying then running the vbs, is this your intention or do you want to run it only if you've had to terminate the executable. Currently you appear to be copying, a directory to a filename. If script\dn is a extensionless filename then ignore this remark) Currently you are starting the dn.exe executable at the end of your script. Is this your intention or are you wanting to start it only if you've had to terminate it earlier in the script? -
It would be nice if that worked for all, however I think that expecting, for instance 7, not to appear in any line of the 'net config' output other than the Software version one is asking a little too much! Also outputting 2002 to an XP user may confuse them. The other niggle I'd have is that you will be running the more intensive 'net config' command six times as opposed to one.