In Search of Sample Code

In Search of Sample Code

I’m always looking for sample code, and the setup1.vbp file is an excellent source of reusable code. It comes with VB and is part of the VB setup kit. The contents vary, depending on what version of VB you have, but you’ll find useful examples in each version. For example, the VB5 file sample code does these things:

  • Gets the Windows directory.
  • Gets the Windows System directory.
  • Determines if a file or directory exists.
  • Determines if you’re running WinNT or Win95.
  • Determines drive type.
  • Checks disk space.
  • Creates a new path.
  • Reads from an INI file.
  • Parses date and time.
  • Retrieves the short path name of a file containing long file names.

Plus, a whole module works to log errors to an error file. This code is well-commented and can easily be cut and pasted into your project.

Share the Post:
Heading photo, Metadata.

What is Metadata?

What is metadata? Well, It’s an odd concept to wrap your head around. Metadata is essentially the secondary layer of data that tracks details about the “regular” data. The regular

XDR solutions

The Benefits of Using XDR Solutions

Cybercriminals constantly adapt their strategies, developing newer, more powerful, and intelligent ways to attack your network. Since security professionals must innovate as well, more conventional endpoint detection solutions have evolved

AI is revolutionizing fraud detection

How AI is Revolutionizing Fraud Detection

Artificial intelligence – commonly known as AI – means a form of technology with multiple uses. As a result, it has become extremely valuable to a number of businesses across

AI innovation

Companies Leading AI Innovation in 2023

Artificial intelligence (AI) has been transforming industries and revolutionizing business operations. AI’s potential to enhance efficiency and productivity has become crucial to many businesses. As we move into 2023, several

data fivetran pricing

Fivetran Pricing Explained

One of the biggest trends of the 21st century is the massive surge in analytics. Analytics is the process of utilizing data to drive future decision-making. With so much of