PDA

View Full Version : Help me with this VBS code please



digmen1
10-12-2005, 05:42 AM
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

digmen1
10-15-2005, 11:54 PM
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

backlash
10-16-2005, 03:03 PM
you'd be better off asking these questions in a VB forum. There are plenty out there. google is your friend (http://www.google.com/search?hl=en&q=vb+forum&btnG=Google+Search)