Results 1 to 3 of 3

Thread: Help me with this VBS code please

  1. #1
    I have just started trying to write a VBS WSH scrip to run from my desktop.

    This is my first effort and I get a syntax error.

    Can anyone help me out here please

    ChDrive ("c")
    ChDir "C:\junk"
    MsgBox ("The current directory is " & CurDir)

    Regards
    Digby
    NZ
    Last edited by digmen1; 10-12-2005 at 05:43 AM. Reason: To subscribe to it

  2. Software & Hardware   -   #2
    OK then,

    Could anyone help me with the syntax of this code ?

    Function CreateFolderDemo
    Dim fso, f
    Set fso = CreateObject("Scripting.FileSystemObject")
    Set f = fso.CreateFolder("D:\My New Folder")
    CreateFolderDemo = f.Path
    End Function

    Regards
    Digby
    What color is your Adkaf ?

  3. Software & Hardware   -   #3
    backlash's Avatar usenet lover
    Join Date
    Aug 2003
    Location
    in your dreams
    Posts
    1,579
    you'd be better off asking these questions in a VB forum. There are plenty out there. google is your friend
    Last edited by backlash; 10-16-2005 at 03:03 PM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •