Jump to content

Yzöwl

Patron
  • Posts

    4,113
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    United Kingdom

Everything posted by Yzöwl

  1. Welcome to MSFN Just try to remember that your not a Mod here though!
  2. Welcome to the MSFN Forums. You wont be disappointed!
  3. This is purely guesswork, but I'd say that the problem is redirecting your desktop. The desktop isn't really a normal folder the same as others, it's more like a virtual directory. You shouldn't really be storing items on the desktop in any case, it should contain only links /shortcuts to items stored elsewhere. To be honest I cannot really see any benefit in redirecting %appdata% either.
  4. Yzöwl

    Hi there

    Welcome to MSFN. I hope it bears fruit!
  5. Just a quick note to let you know that RegistryEditorPE which is perfect for this task has, after over two years, a new version (v1.0a_Beta1).
  6. gsm, why all the spaces? would it not be neater using tabs? strComputer = "." Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\CIMV2") Set colItems = objWMIService.ExecQuery("SELECT * FROM Win32_NetworkAdapterConfiguration",,48) For Each objItem in colItems If Not IsNull(objItem.DNSHostName) Then A = Space(4) & "Win32_Network Adapter Configuration Instance" & vbCrLf &_ "----------------------------------------------------------------" & vbCrLf &_ " DNS Host Name :" & vbTab & vbTab & vbTab & objItem.DNSHostName & vbCrLf &_ " DNS Server Search Order :" & vbTab & vbTab & Join(objItem.DNSServerSearchOrder, ",") & vbCrLf &_ " Domain DNS Registration Enabled :" & vbTab & objItem.DomainDNSRegistrationEnabled & vbCrLf &_ "----------------------------------------------------------------" End If Next MsgBox A,4128,"Adapter Info"
  7. @Mercury_22 I have merged six of your posts into just two. Please use the edit button if you wish to add content to the thread prior to another member creating a follow-up. Thank you.
  8. Welcome to MSFN. Please enjoy your stay!
  9. Before gunsmokingman comes up with a vbscript/jscript solution, here is a batch file example using WMIC. @ECHO OFF &SETLOCAL ENABLEEXTENSIONS ::USER VARIABLES ::FILE TO CHECK VERSION OF [Note double backlashes] SET "F_=C:\\Program Files\\MSN Messenger\\msnmsgr.exe" ::NEW FILE VERSION SET "C_=7.5.0324.00" FOR /F "USEBACKQ SKIP=1" %%? IN ( `WMIC DATAFILE WHERE "NAME='%F_%'" GET VERSION 2^>NUL`) DO ( IF NOT ERRORLEVEL 1 (CALL :CHK_ %%?)) PAUSE &ENDLOCAL &GOTO :EOF :CHK_ SET "N_=%1" IF %N_:.=% LSS %C_:.=% (ECHO/Install v%N_% Replacing v%C_%) ELSE ( ECHO/Existing File Is Already v%N_% And Does Not Require Updating)
  10. No it calls the systems command interpreter, in most cases it resolves to 'C:\WINDOWS\system32\cmd.exe'. I only asked because I have no idea what U means! Regsvr32 will pass that command to dllinstall. You only really need to extract the contents before-hand and simply copy accross! There were actually only three errors remaining in the file I upped, but at least you were able to find and fix them.
  11. Here is a replacement version of your file: I have made more corrections than I care to mention. You need to fully read and understand the unattended guide before going any further, your grasp of this method is poor. All unnecessary lines have been commented with removed and commented out accordingly Lines commented with changed have been Lines stating explain require just that Lines stating switchless mean that you have not supplied any switches for those installers. If the packages are being installed silently you will have to search the appropriate area of these forums for those. We are here only to help and guide, not do everything for you! As a final note, you really should create all your directories in seperate cmd files and call the files from your runonceex instead of creating all those individual MKDIR commands directly!
  12. And a warm welcome in return. Dont forget that Moderators are members too!
  13. I may have missed the point here but should you not be using ".." or "ParentDirectory"
  14. You people are hard to please... @ECHO OFF&SETLOCAL FOR /F "DELIMS=0123456789 " %%? IN ("%DATE%") DO SET "D_=%%?" FOR /F "TOKENS=1-3 DELIMS=%D_% " %%a IN ("%DATE%") DO SET "D_=%%a%%b%%c" ECHO/ Your date appendage is: %D_%How does that do?
  15. That is my understanding too!This means that when you create the environment variables, you need to use a method which expands that particular systems variables during the creation: Works REG ADD bla bla bla /t REG_EXPAND_SZ /d "%USERPROFILE%\bla"(shown in registry as C:\Documents and Settings\bla\bla). Doesn't work REG ADD bla bla bla /t REG_EXPAND_SZ /d "%%USERPROFILE%%\bla"(shown in registry as %USERPROFILE%\bla).
  16. I wasn't aware that the day was included with the date in that particular instance. At first I thought it a possible Vista quirk, however the cmd works correctly for me in Vista too. Try it this way instead @ECHO OFF&SETLOCAL FOR /F "TOKENS=1-3 DELIMS=-/." %%a IN ('DATE/t') DO SET "D_=%%a%%b%%c" ECHO/ Your date appendage is: %D_% Also in order to achieve the result you tried above there is no need to extract the eight characters which occur after the first four. the problem with this method is that for those of us withour 'Wed ' we would only get back the last four characters, (2007 in my case). What you should have done was just add: SET "D_=%D_:~-8%"That will only use the last eight characters in all cases.
  17. That is correct Incidentally because people have different locales, the format of the date differs therefore creating different results. Here's mine: My suggestion, being how I speak the language far more fluently would be this! @ECHO OFF&SETLOCAL FOR /F "TOKENS=1-3 DELIMS=-/." %%a IN ( 'ECHO/EXIT^|%COMSPEC%/Q/K PROMPT $D') DO SET "D_=%%a%%b%%c" ECHO/ Your date appendage is: %D_%
  18. Welcome to MSFN. It's about time!
  19. The main problems are: You should be using SETLOCAL in order to ensure that variables are local only to the running batch file. Your XCOPY switches are not really very intelligently used. Other than that because there is little happening, there isn't much else to improve upon; there is no need to created FOR loops but you could tidy it slightly: @ECHO OFF&SETLOCAL SET "L_=D:\Backup" SET "M_=Copying" SET "S_=%USERPROFILE%" SET "C_=XCOPY/DEIQRVY" SET "D_=My Documents" ECHO/ %M_% %D_%... %C_% "%S_%\%D_%" "%L_%\%D_%" SET "D_=Favorites" ECHO/ %M_% %D_%... %C_% "%S_%\%D_%" "%L_%\%D_%"
  20. Yzöwl

    HELLO

    Welcome to MSFN. You have chosen wisely!
  21. Me too! Welcome and enjoy the Forums.
  22. I'm sure it must be my lack of understanding of what you're trying to achieve, but if you disable the keyboard and mouse how are you able to log back on!
  23. It is a previous Microsoft Powertoy, Background Switcher. It consists of two files, bgswitch.exe, and bgswitch.dll. Both files would be best located in the system32 directory and the dll will need to be registered.
  24. Welcome and thankyou for joining MSFN. Without members we'd be nothing!
  25. Welcome to MSFN. ...enjoy
×
×
  • Create New...