Jump to content

Outbreaker

Member
  • Posts

    376
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    Luxembourg

Everything posted by Outbreaker

  1. If i want to use the Startup folder in Startmenu i need to enable the $OEM$ option if i do this i will loss the ability to start the Recovery Console form the CD. But i found a way to do this now that after Windows XP is completely started that means seeing the taskbar that a file will be then started. Here is the addon that works with nLite and RVM Integrator that is what the addon dose: Adding 3 file to the Windows XP installation recourse. Adding a line to the TXTSETUP.SIF file that will start the file RUNONCE.INF on the first install process The file RUNONCE.INF will then add this registry entry: [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunOnce] "RUNONCE"="%SystemRoot%\Temp\RUNONCE.CMD" Later the file RUNONCE.CMD will add this registry entry: [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce] "SASROAS"="%SystemRoot%\Temp\SASROAS.CMD" The file SASROAS.CMD will start if Windows XP is completely startedstarted and it will srarch all drivers from A to Z for the file "Auto Setup.cmd This is the best i could do complicated but it works. [EDIT] Removed the old Attachment Version v.0 [/EDIT]
  2. Yes i want to run the file only once and i can't use the Startup folder in Startmenu because i don't want to loss the Recovery Console option.
  3. HI Does someone know what to do so windows will run a file after the Windows XP settings are loaded (after RunOnceEx) ? I tryed also a addon that added a RunOnce RegKey but then it will run it T-13
  4. I have done a mistake in the Topic Title i wanted to write "{Batch] Search a file on the drives" if you can change the topic feel free to do it. You WMIC script is the best why to do it. And why i use "GOTO NO" is because i will point then to another section in the batch file it's not only to show this ECHO line
  5. @jaclaz Your script works only if i set this FORM: delims=-" TO: delims= " Could you explain how the script works because i don't get it what this is for [->^|FIND /I /V "mov"<-] [EDIT] Ok i found now out what the [->^|FIND /I /V "mov"<-] is for but this would works only on an Englisch windows so the WMIC script would be the best choice for this. [/EDIT]
  6. Does someone know how to suppress this Message (No Instance(s) Available.) if the script has not found the file ? For now i use CLS the >NUL command i can't get to work on this script to suppress the message. @ECHO OFF SETLOCAL (SET DRIVE=) FOR /F "USEBACKQ TOKENS=2 DELIMS==" %%# IN (`WMIC DATAFILE WHERE^ "PATH='\\OEM\\RunOnce\\' AND FILENAME='Auto Setup' AND EXTENSION='bat'"^ GET Name /VALUE^|FIND "="`) DO SET "DRIVE=%%~d#"&SET "FPATH=%%#" IF NOT DEFINED DRIVE GOTO :NO IF DEFINED DRIVE GOTO :YES :YES ECHO File Found. START "" "%FPATH%" PAUSE :NO ECHO File Not Found. PAUSE ENDLOCAL
  7. I have found the bug in the above script the - should be a space only. But i could do a better script i needed only to removed this [->FSNAME='CDFS' AND <-} form the posted script by Yzöwl and now the script will search all drives for the file. This script is also better because it's querying the drives so there will be no popup error like "No Disk" that for example happens on the Floppy drive. @ECHO OFF SETLOCAL (SET DRIVE=) FOR /F "USEBACKQ TOKENS=2 DELIMS==" %%# IN (`WMIC DATAFILE WHERE^ "PATH='\\OEM\\RunOnce\\' AND FILENAME='Auto Setup' AND EXTENSION='bat'"^ GET Name /VALUE^|FIND "="`) DO SET "DRIVE=%%~d#"&SET "FPATH=%%#" IF NOT DEFINED DRIVE GOTO :NO IF DEFINED DRIVE GOTO :YES :YES ECHO File Found. START "" "%FPATH%" PAUSE :NO ECHO File Not Found. PAUSE ENDLOCAL
  8. THX the script works now. I used the GOTO command a lots in my 4 batch file but i thought the :EOF was the same as the quit command The last script that i was testing was this one here it works the same as the VBScript only problem is that it has a little bug it wont give out the driver letter. And is it also possible to do it that this batch script searches also in Fixed (Hard disk drives) and not only in the CD-ROM drives ? This Script would be a good one to avoid the No Disk popup error on drives like the Floppy drive. @ECHO OFF FOR /F "tokens=1,2 delims=\" %%A IN ('MOUNTVOL^|FINDSTR [C-Z]:\\') DO ( FOR /F "tokens=1,* delims=-" %%B IN ('fsutil fsinfo drivetype %%A^|FIND /I "CD-ROM"') do ( ECHO Checking drive %%B ... IF EXIST "%%B\OEM\RunOnce\Auto Setup.bat" CALL "%%B\OEM\RunOnce\Auto Setup.bat"&GOTO :EOF ) ) ECHO \OEM\RunOnce\Auto Setup.bat NOT FOUND PAUSE
  9. I found out on how to include in the VBScript so that the Hard disk drive will be also searched ny simply replacing this line in the code: FORM -> If Obj.IsReady And Obj.DriveType = 4 Then TO -> If Obj.IsReady And Obj.DriveType = 2 or Obj.DriveType = 4 Then Now the VBScript will search CD/DVD-ROM disk drives and Hard disk drives 0 = Unknown / 1 = Removable / 2 = Fixed / 3 = Network / 4 = CD-ROM / 5 = RAM Disk This Batch script works also good only problem i have is that if i put this code in a batch file then everything that is under this script causes a code conflict because it get also called into the Script by the :SUB
  10. I tried this 2 scripts but if i open the batch file nothing happens but i have now put the Script on to my Win7 laptop to test and there it works i don't get i why it doesn't work on my WinXP PC.
  11. I tested your script also but it does not work no file start ore message.
  12. I set the path to the file and there is also no disk in the floppy drive but if i start the VBScript i get a "No Disk" Error MsgBox Do you have a also a floppy drive artefact in your Computer ?
  13. I tested it but i get always a drive A: error is there no workaround for this i think this also happens to other drives like Card Readers or is it olny the drive A that makes this problem ? The olny way i found that could work is this here hop someone can make a script with the option 2 and 4 or do even a better script http://www.devguru.com/technologies/vbscript/quickref/drive_drivetype.html
  14. Ok after testing all this script i have some questions How can i do it so the script will also search in the Harddisk drives and USB flash drives ? Is there also a batch script that can check like the VBScript if it can read on the driver and then searches for the file so i will get no popup errors on Card Readers and ohter drives.
  15. THX for this. Two days i searched for this and it's so simple.
  16. HI agan I use the command "%~dp0" in the batch file so that i also get the subdirectory for the UNC path. But i have a problem if i want to go down a folder i normally used "..\" but this unfortunately doesn't work in a UNC path. I couldn't find anything in google for 2 days now
  17. This script looks better then my noob script ^_^ but i have a question to understand this script better how it works. I played little bit around and change [C-Z] to [A-Z] i didn't get this "No Disk" error on the Floppy driver but if i change it to [A-B] i get the error that's what i don't get [A-Z] and [A-B] should have the same effect or not O_o ?
  18. HI I can't find any infos about this 2 folders some people say is save to remove but for what are this folders exactly ?
  19. HI My little script to finde a file on the CD-ROMs IF EXIST "D:\OEM\RunOnce\Auto Setup.bat" set CDROM=D: IF EXIST "E:\OEM\RunOnce\Auto Setup.bat" set CDROM=E: IF EXIST "F:\OEM\RunOnce\Auto Setup.bat" set CDROM=F: IF EXIST "G:\OEM\RunOnce\Auto Setup.bat" set CDROM=G: ... IF EXIST "Z:\OEM\RunOnce\Auto Setup.bat" set CDROM=Z: START "" /WAIT "%CDROM%\OEM\RunOnce\Auto Setup.bat" But how can i do if the file gets not found that it will write a ECHO message like put the CD in and press enter to try agan.
  20. Me problem is i don't know where i must put the entry in the TXTSETUP.SIF or DOSNET.INF [EDIT] I have now fixed my problem i found another way to fix my problem. [/EDIT]
  21. HI Im new to this and im looking to copy a file "GuiRunOnce.bat" that is in the I386 folder to the hard disk How can i do this without the us of $OEM$ folder ?
  22. @MSFN SuperB THX this work excellent. I also understandit it now how it works last night i was little bit tired.
  23. I have copyed you code 1.1 but for some reason it doesn't work.
×
×
  • Create New...