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. That's your problem then, you need to create a new VM without the 'Easy Install' option!
  2. Even though I've seen it mentioned somewhere that they're not necessary, the only thing I can suggest may be wrong with your RunOnceEx file is that the script_file should be within double-quotes. @CMDOW @ /HID SETLOCAL SET "KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx" SET "I_D=%%SYSTEMDRIVE%%\INSTALL" REG ADD %KEY% /V TITLE /D "Mr.REDA" REG ADD %KEY%\005 /VE /D "avg" REG ADD %KEY%\005 /V 1 /D^ "%I_D%\AVG9\avgsetup.exe /script_file \"%I_D%\AVG9\avgsetup.ini\""That said, if your \XP\$OEM$\$1\Install isn't being copied over then your problem is elsewhere. You need to provide us with a full folder structure of your \XP Directory and a copy of your \XP\I386\winnt.sif contents, (with any serials/keys obfuscated). There's no reason why a VM would not read a properly created sif file.
  3. My batch routine was designed to deliberately ignore these since their main purpose is for system use and generally of no consequence to the user.
  4. Please post the content of, or attach, your RunOnceEx.cmd file for probable correction!
  5. Have you made sure that you have this: \XP\I386\winnt.sif [Unattended] OemPreinstall=Yes
  6. No, the ' is the character which acts as REM, the two characters which follow it were simply to aid you in finding the commented lines. No significance at all, that path is for you to define and was given purley as an example. Also here's a batch file which should, under normal circumstances, do what you asked. @ECHO OFF & SETLOCAL ENABLEEXTENSIONS DISABLEDELAYEDEXPANSION IF [%1]==[] (SET _=%~DP0) ELSE (SET _=%~1) FOR /D /R "%_%" %%# IN (*) DO CALL :GL_ %%# GOTO :EOF :GL_ SET "_=F" FOR %%# IN ("%*\*") DO GOTO :EOF COPY "X:\PathTo\FileToCopy.ext" "%*"You will change "X:\PathTo\FileToCopy.ext" in the bottom line to the full name and path of the file you wish to copy. If FileToCopy.ext is located within the same drive as the batch file, you can replace X: with %~D0. If the file is in the same directory as the batch file it can simply state the filename with extension, e.g."FileToCopy.ext". The batch file will use the directory in which it is located as the top level of the tree it is searching. If you are running the batch file from elsewhere then the intended top level directory is provided to the batch file as a parameter on the command line, e.g. "X:\PathTo\ExampleBatch.cmd" "C:\Users\SomeUser". The first part of the command line is the full location of your batch file and the second part, (parameter), is the top level of the tree you are wishing to traverse in search of file-less directories.
  7. Here's an all in one batch idea: (untested) @FOR /F "EOL=@" %%# IN (%~sf0) DO ( @PING %%#|FIND "10.10.6.">NUL 2>&1&&SHUTDOWN /r /t 20 /c "Goodbye!" /m \\%%#) @GOTO :EOF SPARE_PC ANOTHER-WS DICKSCOMP BADBOYZ etc.From line four onwards each line will contain your individual computer names.
  8. I've got ideas however they're wasted unless we're provided with more information. We cannot even make guesses since you've even created your Topic in an incorrect, (nondescript), Forum. Due to the possible batch statement moving to 'Programming' Forum. * You also need to define empty folder, many people incorrectly define it as one containing no files but if it were empty it would also contain no folders|directories
  9. Yzöwl

    Add shutdown.

    Thanks for the reminder, try this version: HFShut.cmd @ECHO/|CALL HFSLIP-1.7.9.CMD @SHUTDOWN /S /T 30
  10. Yzöwl

    Add shutdown.

    A night worker who sleeps on the job!
  11. Yzöwl

    Add shutdown.

    Well in that case, (as you're a tech you should know this), the logical fix for that particular scenario would be this. HFShut.cmd @CALL HFSLIP-1.7.9.CMD @SHUTDOWN /S /T 30This method would mean that you could ignore opening the script and changing it needlessly!
  12. Yzöwl

    Add shutdown.

    Add a shutdown script to what? I really do hope you don't mean to the HFSLIP script! I cannot see any reason why even a sizable minority of end users would feel the need to automatically shutdown their PC after having created an installation source.
  13. Using Robocopy, (as already suggested by jaclaz), you could try the following to see how close to what you're after you get! ROBOCOPY %SOURCE% %DESTINATION% /E /COPYALL /MOVE /XC /XN /XOObviously you'd need to define both %SOURCE%, (currently B), and %DESTINATION%, (currently A).
  14. Perhaps it's because many of us, either use the 'fast reply' option where the 'insert special item' option isn't available or type in the tags, ( [/b] or [b][quote][/b]) manually. Personally I type everything in manually whichever option is selected for the reply.The problems thus far have tended to be attributed to specific browsers and how they render the page information.
  15. Without more information I cannot really provide a solution. What you'll need to do is to 'save as' your Excel file to csv. Then we'll need to see an example output from that file which should show us a full line of that csv output. This will give us the positions and format of the information you need to use, i.e. the Title and Date, in order to formulate the required code. Additionally, it may be a good idea to provide us an idea of the sizes/number of lines in these csvs, because size alone may indicate that a vbscript is a far quicker to process than a batch file.
  16. I'm having a little difficulty trying to work out why you are going to these lengths. Is there a reason why you are not using QChain.exe? QChain will 'chain' post-SP2 Windows 2000 updates together and install the latest version of all files regardless of the order the updates are processed. To ensure that you do not have problems with earlier updates, (pre-December 2002 I think), just make sure that you are using this version of QChain. You can then install with the For loop you appear to have already discounted!
  17. Hi Kamizoli, I would try start /wait "MapDrive or wathever" "C:\Install\MapDrive.cmd DEU %SystemDrive%\Temp >%SystemDrive%\Temp"because, in some case, a DOS box title is required with START. I hope this will solve your problem Michel. AS fixed in mdes's response I would suggest that your problem is the use of double-quotes.The START command expects that the first double-quoted string is the TITLE which means that there's no command to follow it. Try this: START "" /WAIT "C:\<snip /> Since you are using the commandline anyway, I see no reason why you don't use: CALL "C:\<snip />
  18. Another option is to stick with the basic registry hack but have a right-click on directory|folder and open console in parent folder, (which is effectively the current folder).
  19. Since the file you've provided is not in chronological order either by name or date, a batch fle couldn't 2nd guess it for you either. If you really do think that you'll benefit from installing in a specific order then use the file I've used to replace your [code /] You've already ordered it how you want it so the hard work has already been done, all you need to do is to add the appropriate switches and run the text file tab delimited in a for loop with an eol=; to ignore the group subdirs.
  20. Are you sure that you don't want it to say: "%systemroot%\system32\cscript.exe %systemdrive%\temp\unattended.vbs"
  21. Not that I expect it to help anyone, but here you go!
  22. Have you explored other avenues? For example you could create a self extracting 7-zip executable file using the modified 7zip sfx here. Inside the archive you could place ospart.txt and InstallOS.hta, and run the diskpart and hta programs from your config file. This could also mean that you wouldn't have to pre-place your files in the system32 directory before running your executable. Here's an example config.txt which may help if you decide that such an idea will suit. ;!@Install@!UTF-8! GUIMode="2" InstallPath="%SystemRoot%\\system32 OverwriteMode="1" RunProgram="DiskPart.exe /s OSPart.txt" Delete="OSPart.txt" RunProgram="nowait:\"InstallOS.hta\"" ;!@InstallEnd@!
  23. Please read rules 2.c and 12. Topic Closed
  24. I thought that the date parameter was supposed to be in this format "dd-mm-yyyy hh:nn:ss"You don't appear to be using a time! SET TFP=C:\PathToTargetFile NIRCMD SETFILETIME "%TFP%\KB123456.exe" "01-02-2003 01:02:03" "04-05-2006 04:05:06"
×
×
  • Create New...