The Windows XP installation CD includes an option to repair an existing Windows XP installation. Using this option allows you to reinstall Windows without losing the files, personal data and programs you already have on the system. To take advantage of it, just place the CD...
Categories
- All Posts
- android
- AntiVirus
- apps
- AWS
- Backup
- Batch
- Blogger
- Books
- CISCO
- Cloud
- Cluster
- Coin Master
- commands
- Commvault
- Configurations
- CSS
- Data Protector
- Data Recovery
- DB Backup
- Desktop Sharing
- Disabling
- domain
- Downloads
- Dumps
- ESX
- exam questions
- Excel
- Exchange
- FOLDER LOCK
- free Books
- games
- Guide
- Hacks
- HP - UX
- HP0-A113
- HP0-A113 HP ATP - Data Protector v9 (Exam 1 Questions) - Question 9
- HTML
- Hyper-V
- information
- Internet
- interview questions
- inventory
- jQuery
- key
- Links
- Linux or Unix
- Mcafee
- microsoft
- Migrations
- mobile tips
- NetBackup
- Networker
- Networking
- Online Database
- Operating system
- Outlook
- Password reset
- PHP
- Ports
- RAID
- regedit-tips
- Registry
- SAN
- SBS 2008
- Simulator
- software
- SQL
- Storage
- Study Meterial
- tech support
- Tools
- Top List
- Troble Shooting
- Useful commands
- vbscript
- Veeam
- Videos
- Virtual Machine
- VirtualBox
- VMWare
- VSphere
- webinar
- windows
- windows 10
- Windows 2003
- Windows 2008
- Windows 7
- Windows 8
- Windows Tips
- windows XP
- YouTube
Contact
Showing posts with label information. Show all posts
Showing posts with label information. Show all posts
Saturday, July 9, 2011
Monday, July 4, 2011
Import a Large Text File
Imports a text file into Excel even if the number of lines in that file exceeds Excel's total number of rows limitation.
Visual Basic' This script was written for folks trying to import a text file into
' Excel 2003 that exceed the row limitations.
' This version works on Windows XP and has not been tested on any other OS.
Const ForReading = 1
Const ForAppending = 2
Set objDialog = CreateObject("UserAccounts.CommonDialog")
objDialog.Filter = "All Files|*.*"
objDialog.InitialDir = "C:\"
intResult = objDialog.ShowOpen
If intResult = 0 Then
Wscript.Quit
Else
BreakFile = objDialog.FileName
End If
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFile = objFSO.OpenTextFile(BreakFile, ForReading)
FiletoSplit = objFSO.GetFileName(BreakFile)
FolderDest = Mid(objFSO.GetAbsolutePathName(BreakFile),1, _
Len(objFSO.GetAbsolutePathName(BreakFile))-(Len(FiletoSplit)))
FileSplitName = objFSO.GetBaseName(BreakFile)
dtmStart = Now()
strContents = objFile.ReadAll
FileNum = 1
fname = FolderDest & FileSplitName & "Split_" & FileNum & ".txt"
Set objFile1 = objFSO.OpenTextFile(fname, ForAppending, True)
CountLines = 0
arrLines = Split(strContents, vbCrLf)
If ubound(arrLines) < 64500 Then
msgbox "This file will fit into Excel already. No split is necessary.",48,"SplitFile"
Wscript.Quit
End If
HeaderText = arrLines(0)
For i = 0 to ubound(arrlines)
strLine = arrLines(i) & vbCrLf
objFile1.Write strLine
If (Countlines) < 64500 Then
countlines = countlines + 1
ElseIf Countlines >= 64500 Then
objFile1.Close
Countlines = 0
FileNum = FileNum + 1
fname = FolderDest & FileSplitName & "Split_" & FileNum & ".txt"
Set objFile1 = objFSO.OpenTextFile(fname, ForAppending, True)
objFile1.Write HeaderText & vbCrLf
End If
Next
objFile.Close
dtmEnd = Now()
If MsgBox("There were " & FileNum & " files created." & vbcrlf & _
"The files were put into this folder: " & FolderDest & _
vbCrLf & "The script took " & DateDiff("s", dtmStart, dtmEnd) & " seconds " & _
"to break the " & FiletoSplit & " file." & vbcrlf & vbcrLF & _
"Click OK to open destination folder or CANCEL to quit.", _
1,"SplitFile") = vbOK Then
Set objShell = CreateObject("Shell.Application")
strPath = FolderDest
objShell.Explore strPath
End If
Verified...
Computer Hardware Scripts: Retrieving System Information
Retrieving System Information
INVENTORY OF A COMPUTER WITH WINDOWSPripared by Laxman,
Uses WMI to retrieve the same data found in the System Information applet.
======================
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colSettings = objWMIService.ExecQuery...
Computer Hardware Scripts: Retrieving BIOS Information
INVENTORY OF A COMPUTER WITH WINDOWS
Pripared by Laxman,
Retrieves BIOS information for a computer, including BIOS version number and release date.
======================strComputer = "."Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")Set colBIOS = objWMIService.ExecQuery _ ...
Identifying Processor Type & Inventorying Computer Hardware
INVENTORY OF A COMPUTER WITH WINDOWS
Pripared by Laxman,
Identifying Processor Type
Determines the processor architecture (such as x86 or ia64) for a specified computer.
========================
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set objProcessor = objWMIService.Get("win32_Processor='CPU0'")
If objProcessor.Architecture...
Computer Hardware Scripts: Enumerating Serial Port Properties
INVENTORY OF A COMPUTER WITH WINDOWS
Pripared by Laxman,
Returns information about the serial ports installed on a computer.
==================
On Error Resume Next
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_SerialPort",,48)
For Each objItem in colItems
...
Computer Hardware Scripts: Enumerating Processor Information
INVENTORY OF A COMPUTER WITH WINDOWS
Pripared by Laxman,
Returns information about the processors installed on a computer.
===================
On Error Resume Next
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_Processor")
For Each objItem in colItems
...
Subscribe to:
Posts (Atom)
Upcoming Topics
Search This Blog
Subscribe via email
Weekly
-
Below are some of the frequently asked Storage (SAN)...
-
#NetBackup interview Questions and Answers. I just...
-
Based on my experience in the daily issues level I have...
-
AWS Interview Questions And Answers The AWS Solution...
-
Down loaders are wants a free rapidshare premium account ...
-
AZ-900 Dumps - Actual exam question and Answers from...
-
Master Server Daemons/Processes Request daemon bprd ...
-
Veeam is a software company that provides data backup...
-
Users of Packet Tracer 3.2, 4.0 and 5.0 will note a variety...
- NetBackup interview Questions and Answers - Top Rated list - 8/28/2019
- EMC Networker Interview Questions - Top Listed Networker FAQ - 8/28/2019
- Netbackup Cheat Sheet - 6/5/2019
- AWS Interview Questions And Answers - AWS scenario based interview question most asked - Part4 - 4/30/2019
- AWS Interview Questions And Answers - AWS scenario based interview question most asked - Part3 - 4/30/2019