Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 3 of 3
  1. #1
    Senior Member
    Join Date
    Apr 2002
    Location
    Cocooned in her thoughts
    Posts
    312
    Member #
    67
    Liked
    3 times
    How do I get the current folder using the FileSystemObject in VBSCript??

    For e.g. If the html file is in C:\thexchord\, the current path is just that - C:\thexchord\. What method/property can be used in VB with or without using the FSO?

    I need this within.. 10 minutes
    Don't look so frightened
    This is just a passing phase

    One of my bad days...

  2.  

  3. #2
    Member Spetnik's Avatar
    Join Date
    Mar 2002
    Location
    New York, NY
    Posts
    39
    Member #
    32
    Is this what u want?

    [vbcode]
    Dim objFS

    Set objFS = CreateObject("Scripting.FileSystemObject")

    alert objFS.GetParentFolderName(document.location )
    [/vbcode]
    Be vewwy vewwy quiet.... I'm hunting donuts. :-p

  4. #3
    Senior Member
    Join Date
    Apr 2002
    Location
    Cocooned in her thoughts
    Posts
    312
    Member #
    67
    Liked
    3 times
    hmmm...looks good, thanks. tho I am done already.
    i found some code on the net too.
    but thanks for the help!
    Don't look so frightened
    This is just a passing phase

    One of my bad days...


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 03:45 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com