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. Yes!Try this version as is... [Version] Signature = $Windows NT$ Provider = %INF-Creator% [DefaultInstall] ProfileItems = UL_PI_11_PDF.Shortcut, UL_GA_5_PDF.Shortcut,\ UL_Album_11_PDF.Shortcut [UL_PI_11_PDF.Shortcut] Name = %UL_PI_11_Name% CmdLine = 16422, %UL_PI_Man_Dir%, %UL_PI_11_SFN% SubDir = %UL_PI_Man_Grp% InfoTip = "%UL_PI_11_Tip%" [UL_GA_5_PDF.Shortcut] Name = %UL_GA_5_Name% CmdLine = 16422, %UL_PI_Man_Dir%, %UL_GA_5_SFN% SubDir = %UL_PI_Man_Grp% InfoTip = "%UL_GA_5_Tip%" [UL_Album_11_PDF.Shortcut] Name = %UL_Album_11_Name% CmdLine = 16422, %UL_PI_Man_Dir%, %UL_Album_11_PDF% SubDir = %UL_PI_Man_Grp% InfoTip = "%UL_Album_11_Tip%" [Strings] INF-Creator = "Kenneth R. Alcock" UL_Album_11_Name = "Album 11 Manual" UL_Album_11_PDF = "ALBUM-11.pdf" UL_Album_11_Tip = "Ulead Album 11 User Manual" UL_GA_5_Name = "GIF Animator 5 Manual" UL_GA_5_PDF = "GA-5 MANUAL.pdf" UL_GA_5_SFN = "GA-5MA~1.pdf" UL_GA_5_Tip = "Ulead GIF Animator 5 User Manual" UL_PI_11_Name = "PhotoImpact 11 Manual" UL_PI_11_PDF = "PI-11 MANUAL.pdf" UL_PI_11_SFN = "PI-11M~1.pdf" UL_PI_11_Tip = "Ulead PhotoImpact 11 User Manual" UL_PI_Man_Dir = "Ulead Systems\Ulead PhotoImpact 11\Manual" UL_PI_Man_Grp = "Digital Imaging\Ulead PhotoImpact 11\Manuals And Help"
  2. %USERNAME% - NIGHTLORD %USERPROFILE% - C:\Documents and Settings\NIGHTLORD
  3. Don't be shy then, lets see what you've got so far!
  4. You have two options for your freshly downloaded file 7z442.exe - NSIS installer - /S 7z442.msi - msi installer - /qn I think you may have the incorrect switches for your particular installer. Also is there a particular reason why you've changed the name of the executable?
  5. Because it can be utilized when using more than one CD-ROM drive, or when the running batch file is not on the CD-ROM itself. You should have been able to ascertain this fact by your understanding of the scripting language, the contained 'tag file' and perhaps a little thought!
  6. What about this idea DetachedProgram = CMD.EXE Arguments = "/C CALL or START whatever.BAT or another.CMD"
  7. Using your chosen method, I would suggest this beep.cmd @ECHO OFF &FOR /L %%? IN (1,1,10) DO (ECHO/ &&PING -n1 -w5000 LOCALHOST>NUL)single line only. <Edit> For those without a system speaker, (like me), I would suggest this @ECHO OFF FOR /L %%? IN (1,1,10) DO ( START "" /MIN /WAIT SNDREC32 -PLAY -CLOSE %SYSTEMROOT%\MEDIA\DING.WAV)</Edit>
  8. Not an answer to your latest question, but more of an example Windows NT Command Script, (batch file), which answers the original question and relates it to your current problem(s). The script may look rather long, but it does attempt to cover some error trapping which most people appear to usually ignore. AddUsers.cmd @ECHO OFF&SETLOCAL ENABLEEXTENSIONS&MODE 70,8&COLOR 4F TITLE Account Creation SET /P "TOADD= WOULD YOU LIKE TO ADD ADDITIONAL USERS (Y/N)? " IF /I '%TOADD:~0,1% NEQ 'Y (ENDLOCAL&GOTO :EOF) SET REGKEY="HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" SET "CNT1=0" CLS&TITLE Account Name ECHO/ NOTE &ECHO/ ¯¯¯¯&ECHO/ ECHO/ The First User added will be set as your Default User&ECHO/ ECHO/ It will have Administrator Account privileges&ECHO/&CLS :ADDNAME FOR %%? IN (NAME TIPE UTYPE PASS) DO (SET %%?=) ECHO/ PLEASE ENTER YOUR CHOSEN ACCOUNT (LOGIN) NAME SET /P "NAME=" IF "%NAME%" EQU "" (CLS&ECHO/ Blank Names are not accepted! PING -n 4 LOCALHOST >NUL&CLS&GOTO ADDNAME) CLS&ECHO/&ECHO/ THE ACCOUNT NAME YOU HAVE CHOSEN IS&ECHO/&ECHO/ %NAME%&ECHO/ ECHO/ WOULD YOU LIKE TO CHANGE IT (Y/N)? SET /P "ANSR=" IF /I '%ANSR:~0,1% NEQ 'N (CLS& GOTO ADDNAME) NET USER |FIND /I " %NAME% " >NUL 2>&1 &&(CLS&ECHO/ ECHO/ USER %NAME% ALREADY EXISTS&ECHO/&ECHO/ PLEASE TRY AGAIN&ECHO/ PING -n 4 LOCALHOST >NUL&CLS&GOTO ADDNAME) CLS&TITLE Account Type IF %CNT1% EQU 0 (SET "UTYPE=Administrator"&CLS&TITLE Account Password GOTO ADDPASS) :ADDTYPE ECHO/ YOU CAN NOW CHOOSE AN ACCOUNT TYPE FOR %NAME%&ECHO/&ECHO/ Account Types ECHO/ ¯¯¯¯¯¯¯¯¯¯¯¯¯&ECHO/&ECHO/ 1. Computer Administrator (less secure) ECHO/ Has unrestricted access to the computer&ECHO/ ECHO/ 2. Power User (more secure) ECHO/ Has only some restricted access to the computer&ECHO/ ECHO/ 3. Normal User (recommended)&ECHO/ Has restricted access to the computer ECHO/ SET /P "TIPE= Please enter your an account type for %NAME% (1/2/3): " SET "TIPE=%TIPE:~0,1%" ECHO/%TIPE% |FINDSTR/R "[1-3]" >NUL ||(CLS&GOTO ADDTYPE) IF %TIPE% LSS 2 (SET UTYPE=Administrator) IF %TIPE% EQU 2 (SET UTYPE=Power User) IF %TIPE% GTR 2 (SET UTYPE=User) CLS&ECHO/&ECHO/ THE ACCOUNT TYPE YOU HAVE CHOSEN IS&ECHO/&ECHO/ %UTYPE%&ECHO/ ECHO/ WOULD YOU LIKE TO CHANGE IT (Y/N)? SET /P "ANSR=" IF /I '%ANSR:~0,1% NEQ 'N (CLS&GOTO ADDTYPE) CLS&TITLE Account Password :ADDPASS ECHO/ PLEASE ENTER A PASSWORD FOR %NAME%&ECHO/&ECHO/ NOTE&ECHO/ ¯¯¯¯&ECHO/ ECHO/ Passwords MUST contain a minimum of 6 characters&ECHO/ SET /P "PASS=" IF "%PASS%" EQU "" (CLS&ECHO/&ECHO/ Blank Passwords are not accepted!&ECHO/ PING -n 4 LOCALHOST >NUL&CLS&GOTO ADDPASS) ECHO/%PASS%|FINDSTR/R "[^a-z,0-9,_,-]" >NUL &&(CLS&ECHO/ ECHO/ Some of the characters you used were not acceptable!&ECHO/ PING -n 4 LOCALHOST >NUL&CLS&GOTO ADDPASS) CLS&ECHO/&ECHO/ THE PASSWORD YOU HAVE CHOSEN FOR %NAME% IS&ECHO/&ECHO/ %PASS% ECHO/&ECHO/ WOULD YOU LIKE TO CHANGE IT (Y/N)? SET /P "ANSR=" IF /I '%ANSR:~0,1% NEQ 'N (CLS&GOTO ADDPASS) SET "CNT2=0" :LOOP SET /A "CNT2+=1" CALL SET V=%%PASS:~0,%CNT2%%% IF "%V%" NEQ "%PASS%" (GOTO LOOP) IF %CNT2% LSS 6 (CLS&ECHO/ Minimum Password length is 6 characters&ECHO/ ECHO/ Please try again!&ECHO/&PING -n 4 LOCALHOST >NUL&CLS&GOTO ADDPASS) CLS&TITLE Adding Account NET USER "%NAME%" "%PASS%" /add NET LOCALGROUP "%UTYPE%s" "%NAME%" /add IF %CNT1% EQU 0 (CLS&CALL :DEFLOG) CLS&SET /P "ADDMORE= WOULD YOU LIKE TO ADD ANOTHER USER (Y/N)? " IF /I '%ADDMORE:~0,1% EQU 'Y (SET /A "CNT1+=1"&CLS&TITLE Account Name GOTO ADDNAME) CLS&ECHO/&ECHO/ FINISHED ADDING USERS&ECHO/ ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯&ECHO/ NET ACCOUNTS /maxpwage:unlimited PING -n 4 LOCALHOST >NUL&ENDLOCAL&GOTO :EOF :DEFLOG REG ADD %REGKEY% /V DefaultUserName /D "%NAME%" /F >NUL REG ADD %REGKEY% /V DefaultPassword /D "%PASS%" /F >NUL SET /P "AUTLOG= Would you like %NAME%s Account to Logon Automatically (Y/N)? " IF /I '%AUTLOG:~0,1% EQU 'Y (REG ADD %REGKEY% /V AutoAdminLogon /D 1 /F >NUL) GOTO :EOF
  9. [SourceDisksNames] diskid = description[, [tagfile] [, <unused>, subdir]]In your case [Strings] DISK="LG Monitor Profiles Installation Disk"It is just the name given to the disk from which the inf file is located, and possibly its location. The description can be any name you want, you can use a tagfile which is the name of any file at the root of the installation disk. This is a file which will need to be in situ' in order for the inf location to be verified. The subdir should be a location of the sourcediskfiles relative to the inf file.
  10. Test Releases are available between the Finals
  11. Here's a couple of things to bear in mind as a new poster!Read the rules Post your message in the correct forum area
  12. Yes that was what I meant! I was being anal, however, my times were from having no XPIZE integration DRIVERCOMP=E in HFANSWER.INI no ISO creation at the after slipstreaming
  13. Just for fun then... lottery.cmd @ECHO OFF&MODE 17,9&COLOR E5&TITLE LOTTERY&SETLOCAL ENABLEEXTENSIONS SET COUNT=0 TYPE NUL>T_.EMP ECHO/TONIGHTS NUMBERS :STARTIT SET /A R=1+49*%RANDOM%/32768 FINDSTR/X "\<%R%\>"<T_.EMP>NUL 2>&1||(SET /A "COUNT+=1"&ECHO/%R%>>T_.EMP) IF %COUNT% LSS 6 GOTO STARTIT TYPE T_.EMP ECHO/ANY KEY TO CLOSE PAUSE>NUL DEL T_.EMP ENDLOCAL&GOTO :EOF
  14. Here's one of them, without a for loop!@ECHO OFF &SETLOCAL SET "VAR=C:\test path\folder1\Last Directory\somefile.pdf" CALL :DAD "%VAR%" ECHO/The `Parent Folder` is %P2% ENDLOCAL &GOTO :EOF :DAD SET "P1=%~p1¨" SET "P1=%P1:\¨=%" :LOOP SET "P2=%P1:*\=%" IF "%P1%" EQU "%P2%" GOTO :EOF SET "P1=%P2%" GOTO :LOOP
  15. Here is a batch file which takes two parameters. The first parameter is a number. This number will be the line number of the text you wish to retrieve. The second parameter is a filename. This will be the file you wish to retrieve the text from and should be quoted if it's name /path contains spaces n-line.cmd @ECHO OFF &SETLOCAL ENABLEEXTENSIONS ECHO/%1|FINDSTR [0-9].* >NUL 2>&1||GOTO :EOF IF NOT EXIST "%~2" GOTO :EOF SET /A "LINENUM=%1-1" MORE /E +%LINENUM% "%~2">%TEMP%\MYTEMP.TXT SET /P N-LINE=<%TEMP%\MYTEMP.TXT ECHO/%N-LINE% &&DEL %TEMP%\MYTEMP.TXT ENDLOCAL &GOTO :EOF
  16. Could you please try to explain better what you are trying to achieve. Are you wishing to grab a specifically numbered line, a particular name, a particular first name /surname etc. Try to give a full example, without trying to hide things. I'm sure your task isn't that unique that someone wishes to steal it and sell it on for a small fortune! The tokens have no effect without specifying a delimiter, tokens=1 will use the default space delimiter unless specified otherwise. If no token is specified, then only the first token using the default space delimiter will be returned. This is the reason why both your examples are the same.
  17. This is not an entire list, but I hope it answers your question! DEL/AR DEL /AR _ DEL/ARH DEL /ARH | DEL/ARHS DEL /ARHS | DEL/ARS DEL /ARS | DEL/A:R DEL /A:R All these will delete a single file with a read only attribute, regardless of its system or hidden staus. DEL/A:RH DEL /A:RH | DEL/A:RHS DEL /A:RHS | DEL/A:RS DEL /A:RS | DEL/A/F DEL /A/F ¯
  18. Well I think we can assume he doesn't want to delete hidden, read only or system files - if he does then that's another matter... there is a reaon for those file attributes, you know! For no reason other than to kick a man when he's down...There is no switch to remove a prompt that you do not get! You can get prompts for wildcard deletions. i.e. del *.txtIn these cases they are not single files, they are 'global wildcards' and will therefore require the /q switch for supression of the resulting prompt(s). i.e.del/q *.txt
  19. The correct switch is not /P or /S for that matter! If you use del at the command line or in a cmd file you will not be asked for confirmation on a single file in these scenarios; hidden, system or read-only. If the file is hidden or a system file you will get the following message: Could Not Find X:\SomePath\SomeFile.extIf the file is read only you will get the following message: Access is denied The correct switches to use if you want to get rid of a single file without returning either of the two messages is: del/a/f X:\SomePath\SomeFile.ext
  20. There are several REG_DWORD values given in REG_BINARY format, there are tweaks which are either 'not recommended' or 'do not work' in Windows XP and even tweaks which require 3rd party files to work! Not wishing to be completely negative, there is some good stuff in there too, but as already suggested, the file needs very careful user editing!
  21. didn´t work. i went to check, and was there, all the files under avast4 folder set as read-only. It wasn't supposed to!I was 'tongue in cheek' highlighting the fact that even though you'd read up and were having problems, you'd decided against using the /s switch after the drive path and filename as in this text As already now given by other members, you have two optionsattrib -r "%programfiles%\Alwil Software\Avast4\*.*" /s This will set the attributes of all files inside Avast4 to NOT 'read only' attrib -r "%programfiles%\Alwil Software\Avast4\*" /s /d This will set the attributes of all files and directories inside Avast4 to NOT 'read-only'
  22. attrib -r "%programfiles%\Alwil Software\Avast4" /s
  23. Just bear in mind that this assumes that you are booted into the default boot.ini OS. It also assumes that your start up options on that booted OS are set a specific way. If you have altered your 'start up' boot.ini switches and /or are not booting to the usual partition or disk, then you will need to adjust the code to suit your particular set-up. This also means that ther code is not universal, and should not be included 'as is' in a 'do all' unattended setup.
  24. I'm not sure if I understand your specific problem, however this should be the type of thing you should be doing: @echo off echo. echo Installing some app start "" /wait filename.ext echo. echo Installing another app start "" /wait anotherfile.ext exit
×
×
  • Create New...