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. Paste the contents of the batch file here and we may be able to provide a context menu entry without the need for the batch file. No guarantees of course but, without the contents we can't be sure.
  2. Please check Rule 2.c. Topic Closed.
  3. If that works for you then fine, however it will cause problems for others. Unfortunately those using a server based OS have an output containing, for example: Windows Server 2003 not your required: Windows 2003 Server
  4. If your latest version is the one in your 'post but last' then I get this: Operating System: Microsoft Windows XP Professional Version: 5.1.2600 Service Pack 3 <snip /> Network Adapter: Intel(R) PRO/100 VE Network Connection - Packet Sched uler Miniport MAC Address: 00:0C:F1:EC:BF:2E DHCP Enabled: True IP Address: 0.0.0.0 Subnet Mask: C:\Documents and Settings\root\Desktop\OSInfo.vbs(601, 13) Microsoft VBScript ru ntime error: Invalid use of Null: 'Join'Any ideas?
  5. To try to help you with the parsing, as already requested by jaclaz, we really do need to see some output. For example, what is echo'd to the screen if you enter this at the 'command prompt'? For %# In ("%Date%") Do @Echo/[%~#] As a side note, you could use WMIC in a batch file. @Echo off & Setlocal Set "_=mon tues wed thurs fri sat sun" For /f %%# In ('WMIC Path Win32_LocalTime Get DayOfWeek^|Findstr [1-7]') Do ( Set DOW=%%#) For /f "tokens=%DOW%" %%# In ("%_%") Do Call %%#breakfast-rename.bat
  6. First you need to start by writing the topmost section of the directive file. ECHO/.Set Cabinet=ON>MY.DDF ECHO/.Set Compress=ON>>MY.DDF etc.You can get the information you require from here. When you've done that, come back to us with some full file structures etc. for both the source and destinations.
  7. Could you give us some more information, are you looking for a simple script solution? Where are the files you wish to compress are they all together and not mixed with other files? If you give us some paths etc. we should be able to give you a solution!
  8. You can fix it by adding some parentheses in order to help the command interpreter understand exactly which bits belong where. @ECHO OFF FOR %%i IN (file1.ext file2.ext file3.ext) DO ( IF EXIST %%i ((IF NOT EXIST Folder MD Folder) & MOVE /Y %%i Folder))
  9. You'll need to use a few more lines by implementing a 'For loop' Something like this should do: @Echo off & Setlocal & Set "P_=" If "%~1" Neq "" (If Exist "%~1" (If /I %~x1 Equ .lnk ( For /F "tokens=*" %%# In ('More "%~f1"^|Findstr ":\\."') Do ( Set "P_=%%~dp#")))) If Defined P_ (Set "P_=%P_:~,-1%" & Call Echo/%%P_%% & Ping -n 6 127.0.0.1>Nul)
  10. The workstation service is on, (Automatic), by default. There's little chance of it being 'down occasionally' during an unattended install! If the Workstation service is disabled, a system cannot connect to shared file or print resources on a network. The following services, (which are required to access resources on a network and to perform domain authentication), depend on the Workstation service: Alerter Browser Messenger Net Logon RPC Locator The Microsoft Baseline Security Analyzer will not function if the Workstation service is disabled. It is possible that other applications may also require the Workstation service. It is the decision of the reader here as to whether or not they disable a particualr service, (especially this early in the install). However, in doing so, they should understand that they may lose functionality required by something else; this is an example of that lost functionality. It is therefore up to that person to use a workaround; this could simply be checking for the running service in the first instance and if stopped, start it.
  11. Can you not use a basic: if (Directory.Exists (f#))
  12. I find it strange that you say that two of the installations worked, because all of the install lines within your file were incorrect due to spaces in the path names and a lack of supporting double-quotations, (with escapes) Here's an updated version: @CMDOW @ /HID SETLOCAL FOR %%# IN (C D E F G H I J K L M N O P Q R S T U V W X Y Z) DO IF EXIST %%#:\CD.txt (SET CDDRIVE=%%# & GOTO INSTALL) GOTO :EOF :INSTALL SET "KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx" REG ADD %KEY% /V TITLE /D "Install Par Francis Gauthier" /f REG ADD %KEY%\020 /VE /D "Winrar 3.9" REG ADD %KEY%\020 /V 1 /D "\"%CDDRIVE%\Applications\Winrar 3.9\winrar-x64-390fr.exe\" /s" REG ADD %KEY%\030 /VE /D "0ffice 2003" REG ADD %KEY%\030 /V 1 /D "\"%CDDRIVE%\Applications\Office 2003\office2003sp3.exe\"" REG ADD %KEY%\040 /VE /D "Adobe 9.2" REG ADD %KEY%\040 /V 1 /D "\"%CDDRIVE%\Applications\Adobe 9.2\AdbeRdr920_fr_FR.exe\" /sAll /rs /l /msi\"/qb-! /norestart ALLUSERS=1 EULA_ACCEPT=YES SUPPRESS_APP_LAUNCH=YES\"" REG ADD %KEY%\050 /VE /D "Flash player" REG ADD %KEY%\050 /V 1 /D "\"%CDDRIVE%\Applications\Flash player\flashaio.exe\"" REG ADD %KEY%\060 /VE /D "Java 6 update 17 x64" REG ADD %KEY%\060 /V 1 /D "\"%CDDRIVE%\Applications\Java 6 update 17 x64\jre-6u17-windows-i586-s.exe\" /s /v\"/qn IEXPLORER=1 ADDLOCAL=ALL UPDATE=0\"" REG ADD %KEY%\070 /VE /D "K-lite 544" REG ADD %KEY%\070 /V 1 /D "\"%CDDRIVE%\Applications\K-lite 544\klcp_standard_unattended.bat\"" REG ADD %KEY%\150 /VE /D "CD Burner XP" REG ADD %KEY%\150 /V 1 /D "\"%CDDRIVE%\Applications\Cd burner xp\cdbxp_setup_4.2.7.1801.exe\" /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-" REG ADD %KEY%\999 /VE /D "AVG 9.0" REG ADD %KEY%\999 /V 1 /D "\"%CDDRIVE%\Applications\AVG 9.0\avg_free_stf_eu_90_704a1756.exe\" /hide /no_welcome /REMOVE_FEATURE fea_AVG_SafeSurf /REMOVE_FEATURE fea_AVG_SafeSearch" Please note I've corrected only for coding errors, I've not looked at your switches etc.
×
×
  • Create New...