Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Need help with code in Visual Basic

Featured Replies

Hello,

I need to find out how to replace one file with another in Visual Basic 6. Say I need to replace the file C:\Program Files\Folder\test.txt with the file C:\Program Files\documents\test.txt . How would I write that? Thank You for your help

Using the default VB6 library you can do it like that...

Kill "C:\Program Files\Folder\test.txt"
FileCopy "C:\Program Files\documents\test.txt", "C:\Program Files\Folder\test.txt"

It's not the perfect code but it work (with an error handler).

To prevent an error with Kill you can remove the read-only attribute with SetAttr before calling Kill.

And it's not a good idea to have hard coded path like that (use variable instead).

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.