Webmaster Forum

Go Back   Webmaster Forum > Scripting/Programming & Debugging > ASP & VBScript Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

ASP & VBScript Forum Need help from a webmaster with ASP or VBScript, you may ask in this forum?

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-22-2008, 01:24 PM
scorpion13 scorpion13 is offline
Junior Member
 
Join Date: Jun 2008
Posts: 1
scorpion13 is an unknown quantity at this point
Submit to Clesto Submit to Digg Submit to Reddit Submit to Furl Submit to Del.icio.us Submit to Jeqq Submit to Spurl
Default New To Scripting

Hi,
I am new to Vbscript. And I tried my first program and got error in that also.
I jst thought to write a small program that will give me the size of "Documents and Settings" folder. But when I run this program I get error "Path not found". Initailally I thought that it might be because of spaces in the name of folder. But tht's not the case because I tried to run the same code with other folders having spaces in their name and program worked fine. But I am getting error when I run it for "Documents and Settings". So I am really curious to know, wats the problem with "Documents and Settings" folder.

Set fso = createobject("Scripting.FilesystemObject")
Set obj = fso.getfolder("C:\Documents and Settings")
set subfld = obj.subfolders
wscript.echo obj.size/(1024*1024) 'subfld.count
Reply With Quote

This ad is part of our Revenue Sharing program
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Uninstalling software using VB Scripting Namitas ASP & VBScript Forum 1 06-13-2008 02:08 PM


All times are GMT. The time now is 06:29 AM.


Creative Commons License
Powered by vBulletin Version 3.6.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.0.0

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 29 30