|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
FSO equivalent in VB.netHi all,
I have been using the FSO object in in my Excel/ Access and VB 6 development from the ScriptingRuntime library. I am just starting to use a VS 2002 and VS 2005 Express. I am wondering if there is something equivalent in VS 2002 and later or how I can correctly use it? Thanks for sharing your thoughts and suggestions. Ben "Ben" <B**@discussions.microsoft.com> wrote in message Have a look in the System.IO namespacenews:ADA78080-ECB7-460E-99FD-40C0CD4A7FBA@microsoft.com... > Hi all, > > I have been using the FSO object in in my Excel/ Access and VB 6 > development > from the ScriptingRuntime library. I am just starting to use a VS 2002 > and > VS 2005 Express. I am wondering if there is something equivalent in VS > 2002 > and later or how I can correctly use it? Thanks for sharing your thoughts > and suggestions. Show quoteHide quote > > Ben > Ben,
There is so much that it is almost impossible to point you. Just tell us what you want to do, than we can give you a better answer. Although the IO class as Michael showed you is of course as well a good starting direction. Cor Show quoteHide quote "Ben" <B**@discussions.microsoft.com> schreef in bericht news:ADA78080-ECB7-460E-99FD-40C0CD4A7FBA@microsoft.com... > Hi all, > > I have been using the FSO object in in my Excel/ Access and VB 6 > development > from the ScriptingRuntime library. I am just starting to use a VS 2002 > and > VS 2005 Express. I am wondering if there is something equivalent in VS > 2002 > and later or how I can correctly use it? Thanks for sharing your thoughts > and suggestions. > > Ben > Cor, Robin -
I have been using FSO to test for file/directory existence and creation in place of VB and VBA's built-in function. I love the flexibility and the sytnax is more intuitive. That is what I am hoping to do. Thanks guys. Ben -- Show quoteHide quote"Cor Ligthert [MVP]" wrote: > Ben, > > There is so much that it is almost impossible to point you. > Just tell us what you want to do, than we can give you a better answer. > Although the IO class as Michael showed you is of course as well a good > starting direction. > > Cor > > "Ben" <B**@discussions.microsoft.com> schreef in bericht > news:ADA78080-ECB7-460E-99FD-40C0CD4A7FBA@microsoft.com... > > Hi all, > > > > I have been using the FSO object in in my Excel/ Access and VB 6 > > development > > from the ScriptingRuntime library. I am just starting to use a VS 2002 > > and > > VS 2005 Express. I am wondering if there is something equivalent in VS > > 2002 > > and later or how I can correctly use it? Thanks for sharing your thoughts > > and suggestions. > > > > Ben > > > > > On 2006-12-05, Ben <B**@discussions.microsoft.com> wrote:
> Cor, Robin - Imports System.IO> > I have been using FSO to test for file/directory existence and creation in > place of VB and VBA's built-in function. I love the flexibility and the > sytnax is more intuitive. > > That is what I am hoping to do. Thanks guys. > > Ben > .... If File.Exists(pathToFile) Then ' Do Cool Stuff End If If Directory.Exists (pathToDirectory) Then ' Do Cool stuff End If HTH, -- Tom Shelton Ben,
In this page you see in extention to Tom, as well how to create a directory. http://msdn2.microsoft.com/en-us/library/system.io.directory.aspx I hope this helps, Cor Show quoteHide quote "Tom Shelton" <tom_shel***@comcastXXXXXXX.net> schreef in bericht news:dKCdnQYFEdsrvevYnZ2dnUVZ_rKdnZ2d@comcast.com... > On 2006-12-05, Ben <B**@discussions.microsoft.com> wrote: >> Cor, Robin - >> >> I have been using FSO to test for file/directory existence and creation >> in >> place of VB and VBA's built-in function. I love the flexibility and the >> sytnax is more intuitive. >> >> That is what I am hoping to do. Thanks guys. >> >> Ben >> > > Imports System.IO > > ... > > If File.Exists(pathToFile) Then > ' Do Cool Stuff > End If > > If Directory.Exists (pathToDirectory) Then > ' Do Cool stuff > End If > > HTH, > > -- > Tom Shelton Tom, Cor -
Thank you both. That definitely helps. Ben -- Show quoteHide quote"Ben" wrote: > Cor, Robin - > > I have been using FSO to test for file/directory existence and creation in > place of VB and VBA's built-in function. I love the flexibility and the > sytnax is more intuitive. > > That is what I am hoping to do. Thanks guys. > > Ben > > -- > > > > "Cor Ligthert [MVP]" wrote: > > > Ben, > > > > There is so much that it is almost impossible to point you. > > Just tell us what you want to do, than we can give you a better answer. > > Although the IO class as Michael showed you is of course as well a good > > starting direction. > > > > Cor > > > > "Ben" <B**@discussions.microsoft.com> schreef in bericht > > news:ADA78080-ECB7-460E-99FD-40C0CD4A7FBA@microsoft.com... > > > Hi all, > > > > > > I have been using the FSO object in in my Excel/ Access and VB 6 > > > development > > > from the ScriptingRuntime library. I am just starting to use a VS 2002 > > > and > > > VS 2005 Express. I am wondering if there is something equivalent in VS > > > 2002 > > > and later or how I can correctly use it? Thanks for sharing your thoughts > > > and suggestions. > > > > > > Ben > > > > > > > > > Check out the FileInfo and DirectoryInfo classes.
As Cor said, if you give us an idea what you're trying to do, we can make more precise suggestions. Robin S. ----------------------- Show quoteHide quote "Ben" <B**@discussions.microsoft.com> wrote in message news:ADA78080-ECB7-460E-99FD-40C0CD4A7FBA@microsoft.com... > Hi all, > > I have been using the FSO object in in my Excel/ Access and VB 6 > development > from the ScriptingRuntime library. I am just starting to use a VS 2002 > and > VS 2005 Express. I am wondering if there is something equivalent in VS > 2002 > and later or how I can correctly use it? Thanks for sharing your thoughts > and suggestions. > > Ben >
General Guidelines
Call Multithreaded Sub from Timer code to find all dynamic control locations on a form??? Consume webservice within intranet from internet Command Line Arguments making shortcuts to start MsAccess how to 'remember' control location Setup and Deployment Projects word automation active document copy Install VB2005 app on 2003 64 bit server |
|||||||||||||||||||||||