Jump to content

jdoe

Member
  • Posts

    314
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    Canada

Everything posted by jdoe

  1. 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
  2. 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
  3. 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
  4. The answer is in the question %ComputerName%
  5. 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
  6. Search for informations on SendKeys - "WScript.Shell"
  7. START "C:\WINDOWS\PROGRAM.EXE" EXIT Type START /? in Command Prompt window for more details That's it
  8. 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
  9. 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.
  10. 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
  11. @my2001 I'm not sure to understand what you want but if I understand this code can solve the problem FOR %%D IN ("XXX" "YYY" "ZZZ") DO ECHO %%~D Hoping this help
  12. @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
  13. 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
  14. 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"
  15. Without a loop you can do Dim Str as String Str = "TE 1" Str = Str.Replace(" ","")
  16. 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)
  17. @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?
  18. 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?
  19. The header is missing. Add this line at the begining of the file Windows Registry Editor Version 5.00
  20. Private Sub Command1_Click() Dim fso As Object Set fso = CreateObject("Scripting.FileSystemObject") fso.CopyFile "C:\*.TXT", "D:\DESTINATION\" End Sub
  21. 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.
  22. 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
  23. 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
  24. 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
  25. @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
×
×
  • Create New...