Question

Calculations with large numbers

Asked by: simonprr

Hi,

I've been trying to write a batch file to perform a number of calculations using some fairly large numbers, however whenever I try I get the following message, for example:

C:\> set /a total=11787702272+1
Invalid number.  Numbers are limited to 32-bits of precision.

Seems to happen whenever the number is more than 10 digits in length. I'm trying to use numbers that are 11 or 12 digits in length. I assume 10 is the limit in the command prompt/dos. Is there any way around it? I've looked for other command line utilities that do the same thing as 'set /a' but couldn't find anything at all. Any ideas?

Any help appreciated.

Thanks

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2006-10-04 at 13:41:32ID22013202
Tags

limited

Topic

MS DOS

Participating Experts
4
Points
125
Comments
24

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. Calculate Pi
    how do i calculate pi in VB?
  2. a calculator
    I need to write a program which simulates a simple desk calculator that acts on integer numbers., It has one button for each of the 10 digits, 0 to 9. It has a button to add and a button to subtract. It has a clear button, to clear the display and an equals(=) button to ge...
  3. Calculator in Systray
    How can I make the usual Win98 calculator a permanent feature of my Systray? Thank you in advance.

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: GuruGaryPosted on 2006-10-04 at 13:47:23ID: 17663341

The command prompt SET command uses 32 bit integers.  So you can use numbers up to 4 GB or 4,294,967,295.  If you want something bigger than that, you will probably have to use a 3rd party program ... unless you want to split the number up, do math on the parts, and then combine the parts as text.

What exactly are you trying to do?  Maybe we can help come up with a better solution?

 

by: simonprrPosted on 2006-10-04 at 14:02:34ID: 17663474

The script I'm creating is to output the % disk space usage on some servers. I know there is lots of programs which do this, but I want a script to run everyday and output it to a text file or something so management can look at it and so that it's completely automated. I also wanted to be able to do it in a batch file so I can fix/amend etc when necessary.

I was going to do it like this:

Use dir /-c to get the free disk space
Use diruse to get the used space
Then add them together
Then divide used space by total space and times by 100 = 25%

I know by default dir outputs the free space like you mentioned, and diruse can output it in bytes/KB/MB, but couldn't figure out how to do the calculations with the comers in it!

Hope this helps!

Thanks

 

by: simonprrPosted on 2006-10-04 at 14:05:42ID: 17663505

Oops, ignore that 25% bit, should just be the % used.

 

by: SteveGTRPosted on 2006-10-04 at 14:30:07ID: 17663716

This doesn't solve your problem, but this can get the information you want a little faster:

@echo off

if "%~1"=="" echo usage %0: [[computer drive], drive]&goto :EOF

if "%~2"=="" set compName=.&set drv=%~1
if not "%~2"=="" set compName=%~1&set drv=%~1

if "%drv:~1%"=="" set drv=%drv%:

set size=

wmic /Failfast:on /node:%compName% logicaldisk get caption, size, freespace 2>NUL >_temp.txt

for /f "tokens=2,3" %%a in ('type _temp.txt 2^>NUL ^| findstr /i "%drv%"') do set size=%%a&set free=%%b

del _temp.txt 2>NUL

if "%size%"=="" echo Could not get drive information for %drv%&goto :EOF

echo %drv% size=%size% free=%free%

Good Luck,
Steve

 

by: dragon-itPosted on 2006-10-04 at 14:46:35ID: 17663821

I haven't got time to play with this at the moment but I was toying with the idea of leaving in the comma seperators then you can get the free space in Mb (near enough) by trimming off the last two sections which would make the maths smaller.  Trouble with what I have here is it would misreport if space dropped below 1Gb ....

for /f "tokens=3,4 delims=, " %a in ('dir /c ^| find /i "dir(s)"') do echo %a%b

 

by: GuruGaryPosted on 2006-10-04 at 14:47:49ID: 17663830

You can just chop off the last 3 digits (or more) of the numbers for total space and free space and do your math on those  numbers.  The percentage should still work out to be the same.

DIRUSE is not the quickest way to figure out the total disk space, but SteveGTR's solution looks good.  Or you can also try the FSUTIL command (fsinfo sub-command).  You can use SET command and the %~ notation to work with a portion of the number to calculate your percentages without using a number that is too big.

 

by: simonprrPosted on 2006-10-05 at 06:29:37ID: 17668163

Nice. Thanks Steve. Certainly gets the disk usage information quickly. I think "do set size=%%a&set free=%%b" should be "do set free=%%a&set size=%%b" though, as it's outputting them the wrong way round for me.

I have tried removing the last 3 digits of the sizes and then working out the percentages, but it's not coming out right because dos can't handle decimals (I think) although I managed to do this before. It keeps outputting as 0 or 1. I can't remember the way round this - any ideas?

Thanks for the help so far everyone!

 

by: DanCh99Posted on 2006-10-05 at 07:32:10ID: 17669001

we used to use Hyena to get disk space stats, and it could either produce reports in HTML or CSV for Excel.  I think it had some scripting tools as well, but we used to point it at some servers, get some coffee, and then look at the pretty stats that it had recovered.  Mind you, it was about 3 years ago.  Good tool though!

http://www.systemtools.com/hyena/

Dos is fun, but why re-invent this particular wheel?

 

by: SteveGTRPosted on 2006-10-05 at 07:38:34ID: 17669075

I'm not a vbs script wizard, but it could help out in this case. Try this:

@echo off

setlocal

if "%~1"=="" echo usage %0: [[computer drive], drive]&goto :EOF

if "%~2"=="" set compName=.&set drv=%~1
if not "%~2"=="" set compName=%~1&set drv=%~1

if "%drv:~1%"=="" set drv=%drv%:

set size=

wmic /Failfast:on /node:%compName% logicaldisk where caption='%drv%' get size, freespace 2>NUL >_temp.txt

for /f "skip=1 tokens=1,2" %%a in ('type _temp.txt 2^>NUL') do set free=%%a&set size=%%b

del _temp.txt 2>NUL

if "%size%"=="" echo Could not get drive information for %drv%&goto :EOF

>temp.vbs echo Wscript.Echo wscript.arguments(0) / wscript.arguments(1) * 100

for /f "delims=" %%a in ('cscript //NOLOGO _temp.vbs %free% %size% 2^>NUL') do set percent=%%a

echo Percent free on %drv% is %percent%

del _temp.vbs 2>NUL

 

by: GuruGaryPosted on 2006-10-05 at 10:10:32ID: 17670395

Or to work around the calculations for your batch file, you can do something like:

set /a percentage=%free:~,-3%/%size:~-5

That should give you the whole number percentage of free disk space

 

by: GuruGaryPosted on 2006-10-05 at 10:16:13ID: 17670449

Reading my post, it looks like I missed a comma.  Sorry.  Should be:

set /a percentage=%free:~,-3%/%size:~,-5%

 

by: SteveGTRPosted on 2006-10-05 at 12:33:06ID: 17671536

That works very well :)

 

by: dragon-itPosted on 2006-10-05 at 12:48:22ID: 17671680

And would you believe it that syntax is in the help for set /? and I'd never seen it before, right at the top of a new page :-)  Cool.

Steve

 

by: simonprrPosted on 2006-10-05 at 16:54:19ID: 17673195

Well, you have all given me a lot to think about!

DanCh99: I did consider a separate application like hyena but couldn't justify the cost given that we already have other applications that have similar features. I also like scripts cause I can adapt them exactly how I want (usually). Just wish I knew VB or something :)

GuruGary: Works well!

Steve: That script is very interesting... one thing though, if I'm reading it right, I should be able to:
C:\> diskspace server c
But it comes back with "Could not get drive information for server"  Server does exist.

dragon-it: I can't see it in set /? I must be blind.... :)


The problem still exists in a way though - doing large calculations, which for this I have a way round, but I will need to convert the bytes to GBs otherwise the % used can be meaningless. GuruGary: Is there a way to do this like the way you have worked out the percentage?

 

by: SteveGTRPosted on 2006-10-05 at 18:23:27ID: 17673472

Another bug in my code :(

You can use the batch processing like this (if you named it GetPercentFree.bat):

GetPercentFree c
GetPercentFree yourserver c

@echo off

setlocal

if "%~1"=="" echo usage %0: [[computer drive], drive]&goto :EOF

if "%~2"=="" set compName=.&set drv=%~1
if not "%~2"=="" set compName=%~1&set drv=%~2

if "%drv:~1%"=="" set drv=%drv%:

set size=

wmic /Failfast:on /node:%compName% logicaldisk where caption='%drv%' get size, freespace 2>NUL >_temp.txt

for /f "skip=1 tokens=1,2" %%a in ('type _temp.txt 2^>NUL') do set free=%%a&set size=%%b

del _temp.txt 2>NUL

if "%size%"=="" echo Could not get drive information for %drv%&goto :EOF

>_temp.vbs echo Wscript.Echo wscript.arguments(0) / wscript.arguments(1) * 100

for /f "delims=" %%a in ('cscript //NOLOGO _temp.vbs %free% %size% 2^>NUL') do set percent=%%a

echo Percent free on %drv% is %percent%

del _temp.vbs 2>NUL

 

by: GuruGaryPosted on 2006-10-05 at 19:12:51ID: 17673611

This is 95% SteveGTR's code ... but I think this is what you are looking for without using VBS code:

@echo off

setlocal

if "%~1"=="" echo usage %0: [[computer drive], drive]&goto :EOF

if "%~2"=="" set compName=.&set drv=%~1
if not "%~2"=="" set compName=%~1&set drv=%~2

if "%drv:~1%"=="" set drv=%drv%:

set size=

wmic /Failfast:on /node:%compName% logicaldisk where caption='%drv%' get size, freespace 2>NUL >_temp.txt

for /f "skip=1 tokens=1,2" %%a in ('type _temp.txt 2^>NUL') do set free=%%a&set size=%%b

del _temp.txt 2>NUL

if "%size%"=="" echo Could not get drive information for %drv%&goto :EOF

set /a percentage=%free:~,-3%/%size:~,-5%

echo Drive %drv% has %free:~,-9% GB free space which is %percentage%%%



You could have some more precision (like 12.12 GB and 12.12%) if you want to do a couple more math calculations.  I don't know how accurate this needs to be.

 

by: simonprrPosted on 2006-10-06 at 17:54:27ID: 17680969

Works well guys! Thanks. Good team work :)

The percentage is fine, but I think the free space needs to be a bit more precise. For example:

C:\>diskspace server c
Drive c: has 29 GB free space which is 48%

However Windows tells me I have 27.6Gb free.

I think I've asked this before... been trying to find it. This is what I have so far, seems closer, but not quite right:

C:\>diskspace server c
Drive c: has 29 GB free space which is 48% free
28.3

============================================
@echo off

setlocal

if "%~1"=="" echo usage %0: [[computer drive], drive]&goto :EOF

if "%~2"=="" set compName=.&set drv=%~1
if not "%~2"=="" set compName=%~1&set drv=%~2

if "%drv:~1%"=="" set drv=%drv%:

set size=

wmic /Failfast:on /node:%compName% logicaldisk where caption='%drv%' get size, freespace 2>NUL >_temp.txt

for /f "skip=1 tokens=1,2" %%a in ('type _temp.txt 2^>NUL') do set free=%%a&set size=%%b

del _temp.txt 2>NUL

if "%size%"=="" echo Could not get drive information for %drv%&goto :EOF

set /a percentage=%free:~,-3%/%size:~,-5%

echo Drive %drv% has %free:~,-9% GB free space which is %percentage%%% free

set /a tenthmb = (1024 * 1024) / 10
set /a mbdecimal = %free:~,-3%/%tenthmb%
if %mbdecimal% LSS 10 set mbdecimal=0%mbdecimal%
set mbdecimal=%mbdecimal:~0,-1%.%mbdecimal:~-1%

echo %mbdecimal%
============================================

Is this because we have had to shorten the %free% variable?

 

by: SteveGTRPosted on 2006-10-06 at 23:22:23ID: 17681598

If you look at the bytes to the left of the GB on the Drive's property sheet you'll see that number of bytes starts with 29.

A GB is equal to 1,073,741,824 bytes not 1,000,000,000. On my machine there are 90,032,271,360 bytes free and it Windows Explorer reports there are 83.8 GB free.

This is 90,032,271,360 / 1,073,741,824 = 83.849086761474609375

If you want a more precise number then the scripting option will do whatever you want...

 

by: GuruGaryPosted on 2006-10-07 at 00:15:30ID: 17681706

I think Steve is right.  I think it is because the calculation we are using is the "billions of bytes" calculation.  The number from Windows is probably true gibabytes.  Using Steve's number, we can still do math in the batch file.  Round off the GB calculation to thousands and we can use this for the last 2 lines (which will give us more precision, and should match the Windows answer):

set /a freeGB=%free:~,-3%/1074
echo Drive %drv% has %freeGB:~,-3%.%freeGB:~-3,2% GB free space which is %percentage%%%


So the full batch file would be (still 95% SteveGTR's code):
@echo off

setlocal

if "%~1"=="" echo usage %0: [[computer drive], drive]&goto :EOF

if "%~2"=="" set compName=.&set drv=%~1
if not "%~2"=="" set compName=%~1&set drv=%~2

if "%drv:~1%"=="" set drv=%drv%:

set size=

wmic /Failfast:on /node:%compName% logicaldisk where caption='%drv%' get size, freespace 2>NUL >_temp.txt

for /f "skip=1 tokens=1,2" %%a in ('type _temp.txt 2^>NUL') do set free=%%a&set size=%%b

del _temp.txt 2>NUL

if "%size%"=="" echo Could not get drive information for %drv%&goto :EOF

set /a percentage=%free:~,-3%/%size:~,-5%
set /a freeGB=%free:~,-3%/1074

echo Drive %drv% has %freeGB:~,-3%.%freeGB:~-3,2% GB free space which is %percentage%%%

 

by: simonprrPosted on 2006-10-10 at 17:50:56ID: 17703708

Great. Thats it!

I have been thoroughly testing this the last couple of days and haven't encountered any issues yet. I assume this way of calculating the sizes and percentage will work with any size drive up to 999GB (1TB)?

I've added the used GB myself using the same formula and think it is working right...although I'm not getting the precise value, but I've done it the same way as you have:

======
@echo off
cls
echo Please wait...
setlocal

if "%~1"=="" echo usage %0: [[computer drive], drive]&goto :EOF

if "%~2"=="" set compName=.&set drv=%~1
if not "%~2"=="" set compName=%~1&set drv=%~2

if "%drv:~1%"=="" set drv=%drv%:

set size=

wmic /Failfast:on /node:%compName% logicaldisk where caption='%drv%' get size, freespace 2>NUL >_temp.txt
cls
for /f "skip=1 tokens=1,2" %%a in ('type _temp.txt 2^>NUL') do set free=%%a&set size=%%b

del _temp.txt 2>NUL

if "%size%"=="" echo Could not get drive information for %drv%&goto :EOF

set /a used=%size:~,-3%-%free:~,-3%

set /a percentage=%free:~,-3%/%size:~,-5%

set /a freeGB=%free:~,-3%/1074
set /a usedGB=%used:~,-3%/1074
set /a sizeGB=%size:~,-3%/1074

echo Drive %drv% has %freeGB:~,-3%.%freeGB:~-3,2% GB free space which is %percentage%%% free
echo Drive %drv% is %sizeGB:~,-3%.%sizeGB:~-3,2% GB in size
echo Drive %drv% has %usedGB% GB used space
======

I don't understand why we do -3 for the free value and -5 for the size value here:
set /a percentage=%free:~,-3%/%size:~,-5%
I would have thought it would make it un-even?! Sorry I'm a bit confused!

Thanks again, almost there :)

 

by: GuruGaryPosted on 2006-10-10 at 19:40:28ID: 17704046

The reason for the difference in the -3 and the -5 is to save a calculation.  What we really want is:
((%free:~,-3%) / (%size:~,-3%) / 100)
to convert free to a percentage.  But since we are dropping the last 6 digits of that number anyway, the 3rd through the 5th digits are insignificant, and instead of doing an extra calculation we can basically "move the decimal over 2 places" in one of our numbers to simulate the /100.

Your calculation for the used space was right, but you don't need the -3 since you got that calculation from 2 numbers that already had the -3.  So you just need to change 2 lines:
set /a usedGB=%used%/1074 (take away the -3)
and:
echo Drive %drv% has %usedGB:~,-3%.%usedGB:~-3,2% GB used space (use the -3 here to give your precision)

 

by: GuruGaryPosted on 2006-10-10 at 19:42:12ID: 17704051

So your script (which is mostly SteveGTR's code) with the 2 changes would be:

@echo off
cls
echo Please wait...
setlocal

if "%~1"=="" echo usage %0: [[computer drive], drive]&goto :EOF

if "%~2"=="" set compName=.&set drv=%~1
if not "%~2"=="" set compName=%~1&set drv=%~2

if "%drv:~1%"=="" set drv=%drv%:

set size=

wmic /Failfast:on /node:%compName% logicaldisk where caption='%drv%' get size, freespace 2>NUL >_temp.txt
cls
for /f "skip=1 tokens=1,2" %%a in ('type _temp.txt 2^>NUL') do set free=%%a&set size=%%b

del _temp.txt 2>NUL

if "%size%"=="" echo Could not get drive information for %drv%&goto :EOF

set /a used=%size:~,-3%-%free:~,-3%

set /a percentage=%free:~,-3%/%size:~,-5%

set /a freeGB=%free:~,-3%/1074
set /a usedGB=%used:~,-3%/1074
set /a sizeGB=%size:~,-3%/1074

echo Drive %drv% has %freeGB:~,-3%.%freeGB:~-3,2% GB free space which is %percentage%%% free
echo Drive %drv% is %sizeGB:~,-3%.%sizeGB:~-3,2% GB in size
echo Drive %drv% has %usedGB% GB used space

 

by: GuruGaryPosted on 2006-10-10 at 21:11:28ID: 17704325

Oops.  I just realized that is the original script without the 2 changes (sorry).  How about this:

@echo off
cls
echo Please wait...
setlocal

if "%~1"=="" echo usage %0: [[computer drive], drive]&goto :EOF

if "%~2"=="" set compName=.&set drv=%~1
if not "%~2"=="" set compName=%~1&set drv=%~2

if "%drv:~1%"=="" set drv=%drv%:

set size=

wmic /Failfast:on /node:%compName% logicaldisk where caption='%drv%' get size, freespace 2>NUL >_temp.txt
cls
for /f "skip=1 tokens=1,2" %%a in ('type _temp.txt 2^>NUL') do set free=%%a&set size=%%b

del _temp.txt 2>NUL

if "%size%"=="" echo Could not get drive information for %drv%&goto :EOF

set /a used=%size:~,-3%-%free:~,-3%

set /a percentage=%free:~,-3%/%size:~,-5%

set /a freeGB=%free:~,-3%/1074
set /a usedGB=%used%/1074
set /a sizeGB=%size:~,-3%/1074

echo Drive %drv% has %freeGB:~,-3%.%freeGB:~-3,2% GB free space which is %percentage%%% free
echo Drive %drv% is %sizeGB:~,-3%.%sizeGB:~-3,2% GB in size
echo Drive %drv% has %usedGB:~,-3%.%usedGB:~-3,2% GB used space

 

by: simonprrPosted on 2006-10-11 at 17:09:33ID: 17711829

Brilliant!

Thanks GuruGary for the help and amendments to Steve's code to get exactly what I wanted and BIG thanks to Steve for the original code too!

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...