Back

VB046

App.Path joined without separator

Visual Basic 6
Warning
VB6

App

App.Path has no trailing backslash — except on drive roots, where it does; the concatenation works on C:\App and breaks on C:\.

Why this severity

App.Path has no trailing backslash — except on drive roots, where it does; the concatenation works on C:\App and breaks on C:\.


Known false positives

a separator appended elsewhere before the join; literals starting with \ or / are already exempt.

Remediation example

iniPath = App.Path & "\settings.ini"

Reconnecting… Connection lost. Reload