
jdoe
MemberContent Type
Profiles
Forums
Events
Everything posted by jdoe
-
Your idea was not bad but reading the start value of a service don't give the live state of this service. The start value can be "2" (automatic) and the service can also be in a stopped state.
-
I think you're gonna have many tips for that. There's mine... @echo off FOR /F "tokens=1,2,3,4" %%A IN ('SC.EXE QUERY SPOOLER ^| FIND /I "STATE"') DO SET STATE=%%D IF /I "%STATE%"=="RUNNING" (NET STOP SPOOLER) ELSE (NET START SPOOLER)
-
WPI + Removing Outlook Express
jdoe replied to Astalavista's topic in Unattended Windows 2000/XP/2003
There is always a possibility to remove OE by making a modification to these two files of your XPCD source files but you need to do it before installing XP. MSOE50.INF [Version] signature="$Windows NT$" [DefaultInstall] WAB50.INF [Version] signature="$Windows NT$" [DefaultInstall] -
need help Re-programing an app <<noob>>
jdoe replied to -Fox-'s topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
It looks like you are searching for a message box text for a cracking purpose. Am I wrong? If I'm not, I don't think you're in the good forum for that : rule #1. BTW search your text with OllyDbg instead of W32Dasm. -DOT- -
need help with batch an if statement
jdoe replied to minigun's topic in Unattended Windows 2000/XP/2003
Search for the SET /P command, I'm sure your gonna find what you want. -
I know my method is not very reliable but it was made as a testing purpose. I talked about a new version in a previous post (FUN.EXE) and I stopped working on it. Just not enough time to complete this work and now I'm not a system administrator anymore so I don't need it anymore (I'm working on database now). This way to make Firefox installation drive and user independent is not enough reliable to continue developement on it. I don't recommend using my method for customizing you Firefox installation. If VB6 developpers are interested on source code of FUN (50% completed and based on my previous VBScript) just send me an e-mail but again, I don't think it worth it because it's not enough reliable. P.S.: I will send source code to only one person.
-
Count down in a batch file
jdoe replied to sixpack's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
You again With all those questions about batch file you had lately, you're going to raise your knowledge. Don't forget search button and Google are your friend and reading others batches can help a lot either. 5 seconds countdown @echo off echo this window closes in 5 seconds echo. echo 5 ping -n 2 127.0.0.1>nul echo 4 ping -n 2 127.0.0.1>nul echo 3 ping -n 2 127.0.0.1>nul echo 2 ping -n 2 127.0.0.1>nul echo 1 ping -n 2 127.0.0.1>nul pause -
Disabling Windows File Protection Permanently. I made an hacked SFC_OS.DLL for disabling WFP without any registry settings. 3) Copy SFC_OS.DLL.HACK to "%WINDIR%\system32\dllcache" 4) Copy SFC_OS.DLL.HACK to "%WINDIR%\system32" I don't have an sfc_os.dll file in my \windows\system32\dllcache folder. I have an sfc.exe, but no sfc_os.dll. There is one in system32, but not in dllcache. This is the same problem I had before. Thanks for any help! Well it's not the end of the world. You can type this at command prompt to know where the file is and follow the guide to replace the file where it is. From what I understand you must have only one sfc_os.dll on your system and it must be in \windows\system32 At Command Prompt DIR /S /B %SYSTEMDRIVE%\SFC_OS.DLL After restart, WFP should be disabled.
-
Sorry, it's the only links I kept. The batch tutorial is good for learning for someone who want to start learning and the Rob van der Woude's Web site is a good reference about scripting in general. But if you want to learn more, Google "batch tutorial" will bring a lot of good sites. MHz That make sense
-
I think your playing with words. A batch file is a batch file (.bat or .cmd) If you search in Windows help you find help about command-line only if you type "batch files". If you type command script you get nothing. From Windows help.. Can you give me something to read about this backward compatibity a links maybe? I'm curious.
-
exe file comparator utility
jdoe replied to TWILL's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
You can do that with some hex editor Free HHD Hex Editor Or on the Windows XP support tools there is a tool called BINDIFF.EXE XP SP2 support tools -
Yes For a file Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce] "Cleanup1"="cmd /C DEL /S /Q \"%programfiles%\\install\\file.exe\"" For a folder Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce] "Cleanup1"="cmd /C RD /S /Q \"%programfiles%\\install\""
-
Try these links... http://www.student.oulu.fi/~vtatila/batch_tutorial.html http://www.robvanderwoude.com/index.html
-
Like this... BATCH.CMD REG.EXE ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce" /v "DelFile1" /d "CMD.EXE /C DEL /F /Q \"%PROGRAMFILES%\blablabla\FILE.EXE\"" REG.EXE is include with Windows XP and don't forget that many Windows files in Program Files folders are protected by WFP
-
script for searching and replace a file
jdoe replied to sixpack's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
For the errorlevel I'm not sure what you want, but for ending batch when file found and for checking all hard drives, these lines can do the job... I did not test it so post your result if you need more help. SET PROCESSFILE=test5.exe SET NEWFILE=test5new.exe FOR %%A 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 %%A\ ( FOR /F "delims=" %%B IN ('DIR /S /B "%%A\%PROCESSFILE%"') DO ( REN "%%B" "%%~nxB.BACKUP" >NUL COPY "%CD%\%NEWFILE%" "%%B" >NUL GOTO END ) ) ) ECHO File not found PAUSE :END -
In a batch file, maybe you would like to do it silently... regsvr32.exe /u /s file.dll
-
Thanks, I made it while ago but I didn't thought one more was needed after RaveRod and nLite. But for those who really don't like WFP and don't want to deal with registry, now they have an other option. BTW, the guide is also good for UXTHEME.DLL and maybe others files replacement with WFP enable. P.S.: the guide is inspired from something I red but I just can't remember where. So if some of you know where it come from, a credit goes to that source for the idea.
-
What my hacked file does is simple. Instead of reading the registry for a key and value, the code execution is redirected where it should goes if the SFCDisable was FFFFFF9D (WFP disabled). If this hacked file is used with unattended installation of Windows then SFCDisable is not created in the registry. If this hacked file is installed using the guide then SFCDisable is there but useless. Hoping it answer your question.
-
Disabling Windows File Protection Permanently. I made an hacked SFC_OS.DLL for disabling WFP without any registry settings. You can replace the file from your Windows XP SP2 source files or follow this guide if you have already installed XP. 1) Rename the hacked SFC_OS.DLL to SFC_OS.DLL.HACK 2) Unchecked "Hide protected operating system files" from "Folder Options" 3) Copy SFC_OS.DLL.HACK to "%WINDIR%\system32\dllcache" 4) Copy SFC_OS.DLL.HACK to "%WINDIR%\system32" 5) Start Task Manager, select Processes tab, right-click on explorer.exe and select End Process 6) On Task Manager menu, select File / New Task(Run...) and browse to "%WINDIR%\system32\dllcache" 7) Rename SFC_OS.DLL to SFC_OS.DLL.BAK and rename SFC_OS.DLL.HACK to SFC_OS.DLL 8) Browse to "%WINDIR%\system32" 9) Rename SFC_OS.DLL to SFC_OS.DLL.BAK and rename SFC_OS.DLL.HACK to SFC_OS.DLL If windows appears select "Cancel" and on Task Manager menu, select Shutdown / Restart That's it. For re-enabling I think it's obvious. English SP2 SFC_OS.DL_ French SP2 SFC_OS.DL_
-
Setting %CDROM% VB Variable?
jdoe replied to durex's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
Many ways to do that... Set FSO = CreateObject("Scripting.FileSystemObject") Set AllDrives = FSO.Drives For Each Drive In AllDrives If Drive.DriveType = "4" Then If FSO.FileExists(Drive & "\WIN51") Then CDROM = Drive Exit For End If End If Next If Len(CDROM) = 0 Then WScript.Quit -
Line 32 of INF file \i386\winnt.sif is invalid
jdoe replied to Dogan's topic in Unattended Windows 2000/XP/2003
Maybe you forgot a quote at the end of these lines [GuiRunOnce] "%systemdrive%\install\NetFramework\netfxsp1.exe" "%systemdrive%\install\Applications\Sun Java VM\jre5.exe" "%systemdrive%\install\Applications\Adobe Reader 6\acroread602.exe" -
And I guess this new cmd windows have a title called "\\server\path with space\setup.exe" Look carefully at the START command syntax. The first quoted strings are for the command prompt title START ["title"] [/Dpath] [/I] [/MIN] [/MAX] [/SEPARATE | /SHARED] [/LOW | /NORMAL | /HIGH | /REALTIME | /ABOVENORMAL | /BELOWNORMAL] [/WAIT] [/B] [command/program] [parameters] "title" Title to display in window title bar. path Starting directory B Start application without creating a new window. The application has ^C handling ignored. Unless the application enables ^C processing, ^Break is the only way to interrupt the application I The new environment will be the original environment passed to the cmd.exe and not the current environment. MIN Start window minimized MAX Start window maximized SEPARATE Start 16-bit Windows program in separate memory space SHARED Start 16-bit Windows program in shared memory space LOW Start application in the IDLE priority class NORMAL Start application in the NORMAL priority class HIGH Start application in the HIGH priority class REALTIME Start application in the REALTIME priority class
-
So I must be ignorant... and after reading your posts in this thread, I'm proud to be ignorant. B)
-
Add quotes = Chr(34) Set WshShell = WScript.CreateObject ("WScript.Shell") WshShell.Run Chr(34) & "C:\Program Files\My Program\run this file.exe" & Chr(34)
-
Install a pre-configured version of Firefox is a challenge and even if we can do it with this guide (and tools) there's more work to do to make these tools more reliable and professional (I'm working on it). @crahak For your needs I'm sure you have a good setup for Firefox but using a .reg file is not drive independent if there's path in it and I know building an unattended installation of Firefox is easy but in this thread it's not the point. The challenge is to build a pre-configured version of Firefox you can install on every language of Windows, no matter drive it is, that will work for all users. @SyMoNsAyS Good idea for the .xpi registry entries I have updated the "set firefox as default" batch FOR %%A IN ("%PROGRAMFILES%") DO SET SHORTPF=%%~sA REG.EXE ADD "HKCU\SOFTWARE\Microsoft\Internet Explorer\Main" /v "Check_Associations" /d "no" /f REG.EXE ADD "HKCU\SOFTWARE\Microsoft\Internet Explorer\Main" /v "ShowedCheckBrowser" /d "yes" /f REG.EXE ADD "HKU\.DEFAULT\SOFTWARE\Microsoft\Internet Explorer\Main" /v "Check_Associations" /d "no" /f REG.EXE ADD "HKU\.DEFAULT\SOFTWARE\Microsoft\Internet Explorer\Main" /v "ShowedCheckBrowser" /d "yes" /f REG.EXE ADD "HKCU\Software\Clients\StartMenuInternet" /ve /d "FIREFOX.EXE" /f REG.EXE ADD "HKU\.DEFAULT\Software\Clients\StartMenuInternet" /ve /d "FIREFOX.EXE" /f REG.EXE ADD "HKLM\SOFTWARE\Clients\StartMenuInternet" /ve /d "FIREFOX.EXE" /f REG.EXE ADD "HKLM\SOFTWARE\Classes\.htm" /ve /d "FirefoxHTML" /f REG.EXE ADD "HKLM\SOFTWARE\Classes\.html" /ve /d "FirefoxHTML" /f REG.EXE ADD "HKLM\SOFTWARE\Classes\ftp\DefaultIcon" /ve /d "%SHORTPF%\MOZILL~1\FIREFOX.EXE,1" /f REG.EXE ADD "HKLM\SOFTWARE\Classes\ftp\shell\open\command" /ve /d "%SHORTPF%\MOZILL~1\FIREFOX.EXE -url \"%%1\"" /f REG.EXE DELETE "HKLM\SOFTWARE\Classes\ftp\shell\open\ddeexec" /f REG.EXE ADD "HKLM\SOFTWARE\Classes\gopher\DefaultIcon" /ve /d "%SHORTPF%\MOZILL~1\FIREFOX.EXE,1" /f REG.EXE ADD "HKLM\SOFTWARE\Classes\gopher\shell\open\command" /ve /d "%SHORTPF%\MOZILL~1\FIREFOX.EXE -url \"%%1\"" /f REG.EXE DELETE "HKLM\SOFTWARE\Classes\gopher\shell\open\ddeexec" /f REG.EXE ADD "HKLM\SOFTWARE\Classes\http\DefaultIcon" /ve /d "%SHORTPF%\MOZILL~1\FIREFOX.EXE,1" /f REG.EXE ADD "HKLM\SOFTWARE\Classes\http\shell\open\command" /ve /d "%SHORTPF%\MOZILL~1\FIREFOX.EXE -url \"%%1\"" /f REG.EXE DELETE "HKLM\SOFTWARE\Classes\http\shell\open\ddeexec" /f REG.EXE ADD "HKLM\SOFTWARE\Classes\https\DefaultIcon" /ve /d "%SHORTPF%\MOZILL~1\FIREFOX.EXE,1" /f REG.EXE ADD "HKLM\SOFTWARE\Classes\https\shell\open\command" /ve /d "%SHORTPF%\MOZILL~1\FIREFOX.EXE -url \"%%1\"" /f REG.EXE DELETE "HKLM\SOFTWARE\Classes\https\shell\open\ddeexec" /f EXIT