
jdoe
MemberContent Type
Profiles
Forums
Events
Everything posted by jdoe
-
You can use IEXPRESS.EXE Write a script and create an install package with IEXPRESS Your script can start /wait the installation of the MSI and then continue with some commands. I do it myself with a batch file and you can hide the cmd.exe windows. It's an idea
-
Is it possible for $OEM$ files not to CAPS?
jdoe replied to SoreGums's topic in Unattended Windows 2000/XP/2003
Same for me, when I have good settings I don't look at it each day so when I have to rewrite a line somewhere I need a reminder like program.exe /? or Google. I have a good memory but you know, with all the informations we're dealing with, we can't have instant access to all -
Is it possible for $OEM$ files not to CAPS?
jdoe replied to SoreGums's topic in Unattended Windows 2000/XP/2003
Type CDIMAGE.EXE /? at command prompt -d don't force lowercase filenames to uppercase cdimage.exe -lAIODVD -t08/23/2001,09:00:00 -bloader.bin -d -h -n -o -m \AIO-DVD E:\AIO-DVD.iso -
installation depending on username
jdoe replied to MarcoTips's topic in Unattended Windows 2000/XP/2003
The answer is in the question %ComputerName% -
You forgot quotes on your reg key (there is space in it) "HKLM\SOFTWARE\Microsoft\Windows\Windows NT\CurrentVersion\Winlogon" and check your %loguser% for the same problem
-
Search for informations on SendKeys - "WScript.Shell"
-
batch file run exe and close cmd window
jdoe replied to durex's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
START "C:\WINDOWS\PROGRAM.EXE" EXIT Type START /? in Command Prompt window for more details That's it -
hide(minimized) then unhide batch file
jdoe replied to Sn00f's topic in Unattended Windows 2000/XP/2003
Try this .cmd number one rem your code here start %systemdrive%\temp\restart.cmd exit .cmd number two (restart.cmd) rem your code here :shutdown set choice="" SET /P choice= (o/n) if /i not "%choice%"=="o" goto exit :shutdown1 start "%SYSTEMROOT%\system32\shutdown.exe" -r 4 :exit exit -
I think it only work with a domain controller (Windows Server) If I'm wrong you probably forgot a permission setting for the profile shared folder.
-
CD-ROM variable assignment w/ VBscript
jdoe replied to RogueSpear's topic in Unattended Windows 2000/XP/2003
Not really You forgot to declare fs To match your thread title.... Set fs = CreateObject("Scripting.FileSystemObject") Drives = Array("C:", "D:", "E:", "F:", "G:", "H:", "I:", "J:", "K:", "L:", "M:", _ "N:", "O:", "P:", "Q:", "R:", "S:", "T:", "U:", "V:", "W:", "X:", "Y:", "Z:") For Each Drive In Drives If fs.FileExists(Drive & "\WIN51") Then CDROM = Drive Exit For End If Next For Windows XP only because of WIN51 -
@lilweirddude It's not an AntiVirus problem Make sure you have a file called WSHOM.OCX in SYSTEM32 folder (I think it's the file needed for this object) Edit PREPARE.VBS with NOTEPAD and replace line 4 and 5 with Set WSS = WScript.CreateObject("WScript.Shell") Set FSO = WScript.CreateObject("Scripting.FileSystemObject") I don't see why it don't work
-
cmdlines.txt: variables valid for how long?
jdoe replied to my2001's topic in Unattended Windows 2000/XP/2003
NO You can SET variables one time in command.cmd and call your batches cmdlines.txt [COMMANDS] "command.cmd" command.cmd set var=variable call batch1.cmd call batch2.cmd BTW it was a 10 seconds test so please don't say you didn't have the time to do it -
I think the only way is to convert your link path to a short path You can mix short path strings and long path strings "%AllUsersProfile%\MENUDM~1\Programmes\link.lnk"
-
Removing spaces
jdoe replied to thosan's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
Without a loop you can do Dim Str as String Str = "TE 1" Str = Str.Replace(" ","") -
Do you have something in $OEM$\CMDLINES.TXT It looks like an application want you to choose a directory for extracting files before installation (no silent switch)
-
@RaveRod Yes I have WMP10. So you just installed Real Alternative and now you can play .ram files without any other reg tweaks or something else. If so then I will keep in mind that it is possible and will look at it to find the reason because it must be a reason. BTW are realmedia files type are added in WMP options or not?
-
I tried Real Alternative in the past but I could not use Windows Media Player to play realmedia file. I test it again with .ram file and Real Alternative 1.27 codecs and still not work and it seem to work for some of you. Is there something I need to know to make it work with Windows Media Player?
-
specified file is not a registry script?
jdoe replied to lilweirddude's topic in Unattended Windows 2000/XP/2003
The header is missing. Add this line at the begining of the file Windows Registry Editor Version 5.00 -
VB Code from Copying from a to b
jdoe replied to DaveXP's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
Private Sub Command1_Click() Dim fso As Object Set fso = CreateObject("Scripting.FileSystemObject") fso.CopyFile "C:\*.TXT", "D:\DESTINATION\" End Sub -
The problem I see is that with the English version, DATE /T (or %DATE%) returns "Sun 10/10/2004" while for non-English versions, it doesn't put the day in front. Doing %DATE:~-10% fixes that because it takes the last 10 characters which appear to be the same for all languages. I thought weird behavior were for non-english windows version. %DATE% is supposed to be a short date like mm/dd/yy and now it's the english version that is not predictable. Coding for Windows platform is all about dealing with exception. But we know that since long time ago.
-
About the date I think what we need to know is if hotfixes use date template from Regional and language settings. If so, then this code will solve the problem FOR /F %%I IN ('DATE /T') DO SET INSTALLDATE=%%I
-
Before T-12 If you need more precision you can do as follow In I386 folder, edit AXANT5.INF Add these line (or create if not exist) and watch your setup in a virtual machine for a CMD.EXE windows with a pause command [DefaultInstall] RunPostSetupCommands = RunPostSetupCmds [RunPostSetupCmds] CMD.EXE /K pause All this is theorical but that's what I would do to know
-
Add a modem connectoid during unattended install
jdoe replied to mniccum's topic in Unattended Windows 2000/XP/2003
Forget about a script for that and use this "Importing Dial-Up Settings" tutorial. http://unattended.msfn.org/xp/restore_dialup.htm I'm not sure it work on Windows 2000 Maybe someone can confirm it work for XP and 2k -
@RyanVM In HOTFIXUPDATES.INF I see few C:\WINDOWS which mean it is not drive independent. Why not replace C:\WINDOWS with %10% Maybe you have a good reason to do so but I just give you this idea to be able to have correct path if the installation drive is not C: BTW Good work