Jump to content

jdoe

Member
  • Posts

    314
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    Canada

Everything posted by jdoe

  1. Have you tried RUNAS.EXE If you don't have this file in system32 folder it should be on the CD (I386 folder).
  2. The last options on the File System options is "Long File Names", checked this one instead of "MS-DOS 8.3 character file names" and if it don't work try CDIMAGE.EXE to create an image of your CD and then burn this image with your software. http://unattended.msfn.org/xp/finish.htm
  3. The Internet Explorer icon in Quick Launch seem to be created when the user profile is fully loaded so the reason it is not deleted is not because your DEL command is wrong, it's just because there's nothing to delete. Maybe you could try with the STARTUP folder by running a batch from there. The execution order of RunOnce are... 1) HKLM - RunOnceEx 2) HKLM - RunOnce 3) HKCU - RunOnce 4) STARTUP folder
  4. @prathapml @Diabolical82 REG ADD %KEY%\050 /V 2 /D "for %%i in *.xpi do \"%PROGRAMFILES%\Mozilla Firefox\firefox.exe\" -install-global-extension \"%DVDROM%\Applications\Firefox\xpi\%%i.xpi\""/f The code above won't work because FOR is an internal command of CMD.EXE You need to add something like CMD.EXE /C before using FOR command It should look like this (not tested) REG ADD %KEY%\050 /v 2 /d "CMD.EXE /C FOR %%I IN (*.xpi) DO \"%PROGRAMFILES%\Mozilla Firefox\firefox.exe\" -install-global-extension \"%DVDROM%\Applications\Firefox\xpi\%%I.xpi\"" /f EDIT: And %%I need to be %I because this command is not run in a batch file EDIT2: There is another error at the end with %%I.xpi NEW CORRECTION REG ADD %KEY%\050 /v 2 /d "CMD.EXE /C FOR %I IN (*.xpi) DO \"%PROGRAMFILES%\Mozilla Firefox\firefox.exe\" -install-global-extension \"%DVDROM%\Applications\Firefox\xpi\%I\"" /f
  5. @contender If you download my 9.88 version you will see that it work fine either but the point is the real version is 2.47 This tread should be closed or removed to stop confusion Mod???
  6. @contender Sorry to disappoint you, but this is a fake. The real version of this file is 2.47 which is the current version we all know. FAKE FAKE FAKE EDIT: If you want version 9.88 there it is (so easy to change version number)
  7. I'm not really sure what you want but to set the output of a command to a variable the command looks like this... FOR /F "tokens=*" %R IN ('PROGRAM.EXE /SWITCH') DO SET VAR=%R In a batch file replace %R with %%R
  8. Extract file LUNA.TH_ from your I386 folder and open this file with notepad (LUNA.THE) Change... ScreenSaveActive = 1 to ScreenSaveActive = 0 ------------------------------------ You can use the above registry entries to make sure it is disable
  9. @RyanVM SET CONVERT_THIS="This is a test" SET UCN=%CONVERT_THIS% SET UCN=%UCN:a=A% SET UCN=%UCN:b=B% SET UCN=%UCN:c=C% SET UCN=%UCN:d=D% SET UCN=%UCN:e=E% SET UCN=%UCN:f=F% SET UCN=%UCN:g=G% SET UCN=%UCN:h=H% SET UCN=%UCN:i=I% SET UCN=%UCN:j=J% SET UCN=%UCN:k=K% SET UCN=%UCN:l=L% SET UCN=%UCN:m=M% SET UCN=%UCN:n=N% SET UCN=%UCN:o=O% SET UCN=%UCN:p=P% SET UCN=%UCN:q=Q% SET UCN=%UCN:r=R% SET UCN=%UCN:s=S% SET UCN=%UCN:t=T% SET UCN=%UCN:u=U% SET UCN=%UCN:v=V% SET UCN=%UCN:w=W% SET UCN=%UCN:x=X% SET UCN=%UCN:y=Y% SET UCN=%UCN:z=Z% ECHO %UCN% The ECHO command will display... "THIS IS A TEST" ----------------------------------------- This is how MAKECAB.CMD would look with uppercase conversion @ECHO OFF ECHO. SET UCN=%~f1 SET UCN=%UCN:a=A% SET UCN=%UCN:b=B% SET UCN=%UCN:c=C% SET UCN=%UCN:d=D% SET UCN=%UCN:e=E% SET UCN=%UCN:f=F% SET UCN=%UCN:g=G% SET UCN=%UCN:h=H% SET UCN=%UCN:i=I% SET UCN=%UCN:j=J% SET UCN=%UCN:k=K% SET UCN=%UCN:l=L% SET UCN=%UCN:m=M% SET UCN=%UCN:n=N% SET UCN=%UCN:o=O% SET UCN=%UCN:p=P% SET UCN=%UCN:q=Q% SET UCN=%UCN:r=R% SET UCN=%UCN:s=S% SET UCN=%UCN:t=T% SET UCN=%UCN:u=U% SET UCN=%UCN:v=V% SET UCN=%UCN:w=W% SET UCN=%UCN:x=X% SET UCN=%UCN:y=Y% SET UCN=%UCN:z=Z% IF NOT EXIST "%~1" GOTO END SET EXT=%~x1 SET LCEXT=%EXT:~-1% IF /I "%EXT%"==".CAB" GOTO END IF "%LCEXT%"=="_" GOTO END IF EXIST "%~1\" GOTO COMPRESSCAB IF EXIST "%TEMP%\modifype.tmp" DEL /F /Q "%TEMP%\modifype.tmp" FOR /F "tokens=*" %%R IN ('MODIFYPE.EXE %~fs1 -c') DO SET MPEMSG=%%R IF /I "%MPEMSG%"=="NO ERROR OCCURRED, HAVE A NICE DAY" GOTO COMPRESSFILE IF /I "%MPEMSG%"=="FILE IS NOT A PE FILE" GOTO COMPRESSFILE IF EXIST "%TEMP%\modifype.tmp" MOVE /Y "%TEMP%\modifype.tmp" %1>NUL ECHO ERROR - MODIFYPE CAN'T PATCH "%~nx1" PAUSE GOTO END :COMPRESSFILE CD /D "%~dp1" MAKECAB.EXE /D COMPRESSIONTYPE=LZX /D COMPRESSIONMEMORY=21 "%UCN%" IF NOT %ERRORLEVEL% EQU 0 (PAUSE) ELSE (DEL /F /Q %1) GOTO END :COMPRESSCAB CD /D %1 CABARC.EXE -m LZX:21 -p -r N "%UCN%.CAB" *.* IF NOT %ERRORLEVEL% EQU 0 PAUSE :END I hope this will help you for your other batch files
  10. @QKnet 1) You need to add entries in registry to put this command directly in context menu but these scripts are made to be in SendTo folder. 2) What you're asking is part of a complete application. Only one selection can be made with these scripts so you can copy want in your cab (files and folders) in one folder and make a cab with this folder. @RyanVM If your Antivirus software is cool with vbscripts, I added vbscripts in the download package to do the same things as the batches and it puts compressed file name in uppercase characters.
  11. @XPero You just forgot a switch to make it work (expand -r) FOR %I IN (*.DL_ *.CP_ *.EX_) DO EXPAND.EXE -r %I If you put this command in a batch file, change %I to %%I
  12. Try this switch instead, maybe it will solve the problem. j2re-1_4_2_05-windows-i586-p.exe /s /v"/qn ADDLOCAL=jrecore IEXPLORER=1"
  13. And there... [boot] SCRNSAVE.EXE=%WinDir%\system32\QTandPASOOTSIE.scr
  14. In your VB app you can make a registry read of this entry HKLM\Software\Microsoft\Windows\CurrentVersion\Setup\SourcePath SourcePath is the drive used for installing Windows (if install via cd drive then this value is the drive letter of the computer cd)
  15. The answer is in your post. "sets it automatically depending on the size of text specified" Don't ask for more with this feature, it's a simple message box call and there is no settings for it.
  16. @beppemito I've wrote this one from memory just to give you something to work with %CDROM% = D:\ FOR /F "tokens=1,2,3 skip=4" %%I IN ('REG.EXE QUERY "HKLM\Software\Microsoft\Windows\CurrentVersion\Setup" /v SourcePath') DO SET CDROM=%%K This is the good one (drive used for Windows installation) %CDROM% = D: FOR /F "tokens=3" %%I IN ('REG QUERY HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup /v SourcePath ^| FIND "SourcePath"') DO SET CDROM=%%~dI
  17. Sure there is many ways to get %CDROM% and I think this one is the best for 1 reason... it doesn't require CD.TXT or something not include on XP CD and I don't understand why this line is not on "http://unattended.msfn.org/xp/runonceex_cd.htm" instead of IF EXIST D:\CD.txt set CDROM=D: IF EXIST E:\CD.txt set CDROM=E: ... .. . %CDROM% FOR /F "tokens=3" %%I IN ('REG QUERY HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup /v SourcePath ^| FIND "SourcePath"') DO SET CDROM=%%~dI
  18. I would do something like this FOR /F "tokens=1,2,3 skip=4" %%I IN ('REG.EXE QUERY "HKLM\Software\Microsoft\Windows\CurrentVersion\Setup" /v SourcePath') DO SET CDROM=%%K XCOPY %CDROM%directory\file.exe %systemdrive%\patch\ Hope this will help you
  19. @McoreD To set Firefox as the default browser... FFDEF.CMD FOR %%A IN ("%PROGRAMFILES%") DO SET SHORTPF=%%~sA REG ADD "HKCU\SOFTWARE\Microsoft\Internet Explorer\Main" /V "Check_Associations" /D "no" /F REG ADD "HKCU\SOFTWARE\Microsoft\Internet Explorer\Main" /V "ShowedCheckBrowser" /D "yes" /F REG ADD "HKU\.DEFAULT\SOFTWARE\Microsoft\Internet Explorer\Main" /V "Check_Associations" /D "no" /F REG ADD "HKU\.DEFAULT\SOFTWARE\Microsoft\Internet Explorer\Main" /V "ShowedCheckBrowser" /D "yes" /F REG ADD "HKLM\SOFTWARE\Classes\.htm" /VE /D "FirefoxHTML" /F REG ADD "HKLM\SOFTWARE\Classes\.html" /VE /D "FirefoxHTML" /F REG ADD "HKLM\SOFTWARE\Classes\ftp\DefaultIcon" /VE /D "%SHORTPF%\MOZILL~1\FIREFOX.EXE,1" /F REG ADD "HKLM\SOFTWARE\Classes\ftp\shell\open\command" /VE /D "%SHORTPF%\MOZILL~1\FIREFOX.EXE -url \"%%1\"" /F REG ADD "HKLM\SOFTWARE\Classes\gopher\DefaultIcon" /VE /D "%SHORTPF%\MOZILL~1\FIREFOX.EXE,1" /F REG ADD "HKLM\SOFTWARE\Classes\gopher\shell\open\command" /VE /D "%SHORTPF%\MOZILL~1\FIREFOX.EXE -url \"%%1\"" /F REG ADD "HKLM\SOFTWARE\Classes\http\DefaultIcon" /VE /D "%SHORTPF%\MOZILL~1\FIREFOX.EXE,1" /F REG ADD "HKLM\SOFTWARE\Classes\http\shell\open\command" /VE /D "%SHORTPF%\MOZILL~1\FIREFOX.EXE -url \"%%1\"" /F REG ADD "HKLM\SOFTWARE\Classes\https\DefaultIcon" /VE /D "%SHORTPF%\MOZILL~1\FIREFOX.EXE,1" /F REG ADD "HKLM\SOFTWARE\Classes\https\shell\open\command" /VE /D "%SHORTPF%\MOZILL~1\FIREFOX.EXE -url \"%%1\"" /F REG ADD "HKLM\SOFTWARE\Clients\StartMenuInternet" /VE /D "FIREFOX.EXE" /F REG DELETE "HKLM\SOFTWARE\Classes\http\shell\open\ddeexec" /F REG ADD "HKLM\SOFTWARE\Classes\http\shell\open\ddeexec\Application" /VE /D "FIREFOX" /F REG DELETE "HKLM\SOFTWARE\Classes\https\shell\open\ddeexec" /F REG ADD "HKLM\SOFTWARE\Classes\https\shell\open\ddeexec\Application" /VE /D "FIREFOX" /F REG DELETE "HKLM\SOFTWARE\Classes\ftp\shell\open\ddeexec" /F REG ADD "HKLM\SOFTWARE\Classes\ftp\shell\open\ddeexec\Application" /VE /D "FIREFOX" /F REG DELETE "HKLM\SOFTWARE\Classes\gopher\shell\open\ddeexec" /F REG ADD "HKLM\SOFTWARE\Classes\gopher\shell\open\ddeexec\Application" /VE /D "FIREFOX" /F
  20. @prathapml is right but it won't remove computer name in the *.LNK On a network a shortcut from an other computer could try to start the program from the remote computer and not the local. In your case I don't think this is important but there is few things to know about shortcuts because strange behavior could happen. For installing your programs there is always VBScript with which you can install and create shortcuts (no need of shortcut.exe)
  21. If your unattended install if for you only and for the same drive then put shortcuts in these folders $OEM$\$Docs\All Users\Desktop $OEM$\$Docs\All Users\Start Menu\Programs\ BUT if you need your installation to work on many computers or drive you should use a program like SHORTCUT.EXE for creating shortcuts because in a LNK file (*.lnk) there is informations about computer name and drive so to do it clean you should use SHORTCUT.EXE SHORTCUT.EXE
  22. @webservices Great @RyanVM I have tried to do so but there is a bug with the french character "é" - "É" and I need these batch to work with both french and english Windows. It's surely possible with an external .EXE program (a kind of renamer.exe) but I want a simple batch for that. With no bugs with french characters I would do something like this to convert file name to uppercase... SET UCN=%1 SET UCN=%UCN:a=A% SET UCN=%UCN:b=B% SET UCN=%UCN:c=C% SET UCN=%UCN:d=D% SET UCN=%UCN:e=E% SET UCN=%UCN:f=F% SET UCN=%UCN:g=G% SET UCN=%UCN:h=H% SET UCN=%UCN:i=I% SET UCN=%UCN:j=J% SET UCN=%UCN:k=K% SET UCN=%UCN:l=L% SET UCN=%UCN:m=M% SET UCN=%UCN:n=N% SET UCN=%UCN:o=O% SET UCN=%UCN:p=P% SET UCN=%UCN:q=Q% SET UCN=%UCN:r=R% SET UCN=%UCN:s=S% SET UCN=%UCN:t=T% SET UCN=%UCN:u=U% SET UCN=%UCN:v=V% SET UCN=%UCN:w=W% SET UCN=%UCN:x=X% SET UCN=%UCN:y=Y% SET UCN=%UCN:z=Z% SET UCN=%UCN:é=É% SET UCN=%UCN:à=À% ... .. . BTW this is working for the english Windows - if you want a makecab.cmd with this code in it let me know and I will post a makecab.cmd for english Windows only - for uppercase file name (compressed)
  23. Copy the code below in a file called SLEEP.VBS and it will take milliseconds. Look at the other code to see how to write your batch with it. It's strange what you wanna do but this is a solution. SLEEP.VBS If WScript.Arguments.Count = 1 Then WScript.Sleep WScript.Arguments(0) End If BATCH FILE COLOR 07 SLEEP.VBS 500 COLOR 70 SLEEP.VBS 500 COLOR 07 SLEEP.VBS 500 COLOR 70 SLEEP.VBS 500 COLOR 07
  24. I don't think you can make it work for My Computer so I recommand using CMDOW.EXE for that CMDOW CMDOW.EXE "My Computer" /CLS CMDOW.EXE "ISO" /CLS
  25. @GreenMachine After using a word like "dictatorship" in your post I'm glad you wrote: "Live and let live! And ... Viva la Difference!" @Alanoll Man, thanks for this tips. I always used the search (text box) below each pages to make search, my eyes missed the advanced search link on the top pages menu. Anyway the option "display the POST not the thread" should be the default in all search and not exclusive to advanced search.
×
×
  • Create New...