Content Type
Profiles
Forums
Events
Everything posted by allen2
-
This should work. Set FSO =CreateObject("scripting.FileSystemObject") 'local deploy FSO.CopyFolder "C:\inetpub\wwwroot\Pre-Release\*", "C:\inetpub\wwwroot\ErOne" ,True FSO.CopyFile "C:\inetpub\wwwroot\Pre-Release\*", "C:\inetpub\wwwroot\ErOne", True 'remote server1 deploy FSO.CopyFolder "C:\inetpub\wwwroot\Pre-Release\*", "\\server1\C$\inetpub\wwwroot\ErOne" ,True FSO.CopyFile "C:\inetpub\wwwroot\Pre-Release\*", "\\server1\C$\inetpub\wwwroot\ErOne", True 'remote server2 deploy FSO.CopyFolder "C:\inetpub\wwwroot\Pre-Release\*", "\\server2\C$\inetpub\wwwroot\ErOne" ,True FSO.CopyFile "C:\inetpub\wwwroot\Pre-Release\*", "\\server2\C$\inetpub\wwwroot\ErOne", True MsgBox"Deployment completed, Goodbye", vbInformation, "Script Informer"
-
Grab IP Using PowerShell
allen2 replied to Brando569's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
Taken from there: ((ipconfig | findstr [0-9].\.)[0]).Split()[-1] It only retrieve the first ip address if you have more than one network adapter. -
Just an idea : Did you also tried to replace the whole security hive from an xp (perhaps with also the SAM hive) ?
-
As i bought a Philips Brilliance 241P4QYES looking for a low power 24" *va monitor, i would recommend it. One review is there. Official site for one of its feature. It has a lot other like an anti theft system. Its consumption (official and real) is very low (about 30W or less most of the time when used).
-
It could also be related to the hard drive (used for pagefile) so you should check it for errors with chkdsk and perhaps try to disable pagefile.
-
Displaying data in details view for more types of files?
allen2 replied to bizzybody's topic in Windows XP
I'm pretty sure shmedia.dll wouldn't be natively able to handle mkv and mp4 perhaps haali matroska splitter can help. -
Displaying data in details view for more types of files?
allen2 replied to bizzybody's topic in Windows XP
To my knowledge, there isn't any XP extension that would do the same for mkv/mp4 (because for avi/mp3 it is handled by the MS shmedia.dll). But you could try mediainfo that can be integrated to explorer (adding a context menu). -
Thanks for correcting Jaclaz (i suppose i was thinking about windows 2000 when i wrote this).
-
Then the "easiest" way is to use something that will backup all files opened and the possible ways of doing this are: - using a SAN and taking a snapshot of the drives. But for most people it isn't easy to put it and might need a lot of money to create/buy a SAN. - using a virtual machine and snapshot the virtual drive but you'll need to disable the tools (like some part of vmware tools for Vmware VM) that synchronize the snapshots with the guest OS using vss (not for XP as vss doesn't exist for xp).
-
Compiler errors
allen2 replied to FixitUP's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
As you're using mingw gcc, you should try installing it in a path without space. Also using Msys is heavily recommended (it will solve many errors (path/missing lib/...) as it is an already configured dev environment. -
Compiler errors
allen2 replied to FixitUP's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
You're missing comdef.h the default include directories. Posting which compiler you're using might help (it look like visual C++ but could be anything). -
VB Script
allen2 replied to Boston2012's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
Replace this line: strOS = objShell.ExpandEnvironmentStrings("%OS%") With those: for each objOS in GetObject("winmgmts:").InstancesOf ("Win32_OperatingSystem") strOS=objOS.Caption next -
B75 and Z77 have for sure XP x86 and x64 support for mass storage (you need to get intel drivers from june. The september's one doesn't support XP anymore). Intel Usb 3 won't work for any intel 7 chipset as it's driver only support windows 7 and higher but there is a linux driver.
-
I don't choose i'm just adding the whole drivers from the F6 floppy and i'm doing this by hand not using any third party tool (i had problems with nlite in the past for this step so i learned how to do it by hand and now doing it by any other means seems inappropriate). I am editing the files dosnet.inf and txtsetup.sif and adding in the right sections: - Dosnet.inf: [FloppyFiles.2] d1,iastor.sys [Strings] iastor = "Intel(R) ICHx SATA AHCI Controller" - txtsetup.sif: [SourceDisksFiles] IaStor.sys = 1,,,,,,3_,4,1 IaStor.inf = 1,,,,,,,20,0,0 iaAHCI.inf = 1,,,,,,,20,0,0 [HardwareIdsDatabase] PCI\VEN_8086&DEV_2681&CC_0106 = "iaStor" PCI\VEN_8086&DEV_27C1&CC_0106 = "iaStor" PCI\VEN_8086&DEV_27C5&CC_0106 = "iaStor" PCI\VEN_8086&DEV_2821&CC_0106 = "iaStor" PCI\VEN_8086&DEV_2829&CC_0106 = "iaStor" PCI\VEN_8086&DEV_2922&CC_0106 = "iaStor" PCI\VEN_8086&DEV_2929&CC_0106 = "iaStor" PCI\VEN_8086&DEV_3A02&CC_0106 = "iaStor" PCI\VEN_8086&DEV_3A22&CC_0106 = "iaStor" PCI\VEN_8086&DEV_3B29&CC_0106 = "iaStor" PCI\VEN_8086&DEV_3B2F&CC_0106 = "iaStor" PCI\VEN_8086&DEV_3B22&CC_0106 = "iaStor" PCI\VEN_8086&DEV_2682&CC_0104 = "iaStor" PCI\VEN_8086&DEV_27C3&CC_0104 = "iaStor" PCI\VEN_8086&DEV_27C6&CC_0104 = "iaStor" PCI\VEN_8086&DEV_2822&CC_0104 = "iaStor" PCI\VEN_8086&DEV_282A&CC_0104 = "iaStor" PCI\VEN_8086&DEV_1E03&CC_0106 = "iaStor" PCI\VEN_8086&DEV_1E02&CC_0106 = "iaStor" PCI\VEN_8086&DEV_1C03&CC_0106 = "iaStor" PCI\VEN_8086&DEV_1C02&CC_0106 = "iaStor" [SCSI.Load] IaStor = IaStor.sys,4 [SCSI] IaStor = "Intel(R) ICHx SATA AHCI Controller" The inf from iastor.inf and iaahci.inf need to be to edited (if you don't want to be prompted to give the path of the files at the second step of the install): [SourceDisksNames] 1 = %DiskName%,,,\i386 Then i am replacing the files dosnet.inf, txtsetup.sif (they are in the i386 folder of the xp CD). Then i am using makecab to compress the files iastor.inf, iaahci.inf and iastor.sys and then i'am also adding them in the i386 folder.
-
Batch Command Help
allen2 replied to Adjuvant's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
I'd use find from linux to get all absolute path name of *.sra files. You can find a native win32 port there and the download link is there. The find.exe would be stored in "c:\batch" for example. The files to process would be stored in the folder "C:\SEQ" Then the batch would be pretty easy: c:\batch\find.exe c:\SEQ -type f -iname *.sra > %temp%\SEQ_files_to_process.lst for /f "delims=" %%i in (%temp%\SEQ_files_to_process.lst) do (fastq-dump --split-files --gzip %%i) -
You need to connect the boot hard drive to sata 0 if you want sata 3 speed (see page 17 of the user manual for sata port number). I slipstreamed the driver (but i don't think it can make a difference). If your install is doing a blue screen even in ide mode then you might have another thing wrong (as XP SP3 shouldn't do a blue screen when using ide mode). I never connect another hard drive/optic drive to a lower sata port number except the boot drive and i used the flat cable. Also check the boot order in the hard drive preference in UEFI if you have more than one drive i had the problem with another Gigabyte MB. The hard drive BBS Priority would change the order the drives where detected by windows.
-
bat2exe not work win x64?
allen2 replied to MgmTest's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
My 2 cents: it could be that %programfiles% is "C:\Program Files (x86)" when interpreted with bat2exe. You'll know if you try to echo %programfiles% and pause right after. Just tried it on windows 2003 x64 and it returns "C:\Program Files (x86)" and it most likely because a 32bit process can't launch a x64 one so environment variables are set in 32bits mode after being launched from 7zipsfx 32bits. A quick and dirty trick works by replacing the 7zip x86 files with x64 ones (after unpacking bat2exe with 7zip) but upx and the reshacker present with bat2exe doesn't seems to works on x64 that so you don't get the icon and the final file isn't upxed. -
Then you didn't set sata mode as ahci in the uefi/bios. I know this for sure because i installed xp on the same motherboard yesterday morning. You need an XP SP3 media and the floppy i linked (or a media with the driver from the floppy slipstreamed).
-
Intel B75 works fine with XP x86. The right controller is "Intel® 7 Series/C216 Chipset Family SATA AHCI Controller" and it is in the F6floppy files from intel rapid storage June drivers (the most recent doesn't work on xp anymore).
-
Slipstreaming raid drivers Server 2003
allen2 replied to TRCJudge's topic in Unattended Windows 2000/XP/2003
I had this problem when i didn't add the driver .inf in txtsetup.sif in the [sourceDisksFiles] section after editing the inf to point in the files in the right folder: For example \amd64 for x64 OS or \i386 for x86. [SourceDisksNames] 1 = %DiskName%,,,\amd64 Other than that i use the method explained by tomasz86 and it is always working fine (i did it many times). -
How to get around the 2047 characters CMD string limitation
allen2 replied to tomasz86's topic in Windows 2000/2003/NT4
Set/GetBinaryValue returns its result in r1/r3 but is setting/getting the content of strValue to/from the registry key. Another example at Ms Scripting Guy. -
Changing device latancy and IRQ used?
allen2 replied to caps_buster's topic in Windows 2000/2003/NT4
I don't see a problem there as your motherboard is supporting ACPI and so IRQ sharing. -
Selectively Enabling Javascript Web Page Links
allen2 replied to HoppaLong's topic in Software Hangout
Noscript for firefox is what you're looking for. -
general error
allen2 replied to basilico's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
My crystal ball just told me that you're still trying to make witchhaven ii setup work and it still don't work and as you got tired of waiting you decided to create a new topic.