home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Ask a Tech Support Question (free)!

.vbs Programming Help or .bat Programming

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 2348
Discussions: 200,497, Posts: 2,374,297, Members: 245,824
Old July 2nd, 2009, 09:52 PM   Digg it!   #1 (permalink)
Member
 
Join Date: Feb 2009
Posts: 35
Red face
.vbs Programming Help or .bat Programming

Hi everyone my name is bradley and I am looking for someone who knows .vbs or .bat programming to give me a code I could use that will show the drives that are being used for example it will show C:\ D:\ A:\ ect if this is possible thanks for any help or if you know a usful website i could visit that has.vbs and .bat coding on it with this sort of thing thanks
BJseal91 is offline   Reply With Quote
Old July 2nd, 2009, 10:02 PM     #2 (permalink)
Not Really a Member
 
Join Date: Oct 2001
Posts: 25,212
Code:
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
    & "{impersonationLevel=impersonate}!\\" _
    & strComputer & "\root\cimv2")
Set colDisks = objWMIService.ExecQuery _
    ("Select * from Win32_LogicalDisk")
For Each objDisk in colDisks
    Wscript.Echo "DeviceID: "& vbTab &  objDisk.DeviceID	 
    Wscript.Echo "File System: "& vbTab & objDisk.FileSystem
Next
Win32_LogicalDisk Class (Windows)
provides all logical disks on the device you run the code on.
can easiliy be manipulated to run locally against a remote machine
__________________
Helicopters don't fly; they vibrate so much and make so much noise that the earth rejects them.
vass0922 is online now   Reply With Quote
Old July 2nd, 2009, 10:37 PM     #3 (permalink)
Member
 
Join Date: Feb 2009
Posts: 35
Smile
Many Thanks

Many thanks this worked perfectley this is great i will be using this script alot
BJseal91 is offline   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need Help in C programming! Ramimania Webmastering and Programming 3 July 7th, 2007 05:34 AM
C++ Programming Help umax Webmastering and Programming 3 April 30th, 2007 02:49 PM
programming sunny22 Webmastering and Programming 44 June 19th, 2005 01:47 AM
Programming MikeHof IMO Community 6 January 18th, 2004 11:18 AM
Outlook VBS Programming w/ Forms nsohenick Applications and Operating Systems 2 July 17th, 2003 10:21 AM


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
Is It Just Me? (1610)
FT HOOD attack: 7 killed 12 injured (58)
HELP!!! What do you think of this s.. (9)
Looking for a graphic card that wil.. (30)
Aero in Vista (7)
Assosiations (21493)
PC Modern Warfare 2: it's much wors.. (12)
core i7 extreme 975, nvidia 9400gt (8)
Motherboards and my curse... (24)
My 1st pc build (36)
slaving laptop drive (7)
Building my first computer (13)
How to Ship a PC (16)
[F@H SPAM 11/1/09]New month . . . n.. (32)
Recent Discussions
hard drive problem (2)
Win7 TrustedInstaller Permissions (2)
My 1st pc build (36)
Speed up Win 7 boot time a bit (1)
Hard Drive test program (2)
wireless westell versalink model 327w (1)
HELP!!! What do you think of this sys.. (9)
New build 10 second reboot cycle! Won.. (3)
New Linksys Routers (2)
sometime power/Amber light (0)
Motherboards and my curse... (24)
Mic won't work. (2)
Weird Vista Internet Issue (2)
1st ever Harddisk benchmark thread (87)
high network traffic (0)
Excel password changed..... (3)
SSD or 2x640gb RAID 0 (4)
Weird symptoms after installing new C.. (1)
MFT corruption, program to fix? (1)
Aero in Vista (7)
ext. sound card laptop to stereo syst.. (1)
I want your old/new unused pc parts! (4)
Domain user adjust time when it is Da.. (14)
How To Share Youtube Videos With Peop.. (1)
Musical Maxtor (262)


All times are GMT -4. The time now is 05:49 PM.
TechIMO Copyright 2008 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28