×
Siemens Industry Online Support
Siemens AG
Entry type: FAQ Entry ID: 19216821, Entry date: 04/21/2006
(1)
Rate

How can you read out the project path with VBA in WinCC?

  • Entry
  • Associated product(s)

Description: 
You can read out the path using the Windows API function. 

Example:

Private Sub Projectpath()
    Dim obj As grafexe.Application
    Set obj = Application

    MsgBox Left(obj.ApplicationDataPath, Len(obj.ApplicationDataPath) - 7)

End Sub

Keywords: 
Visual Basic, Script, Programming


Security information
In order to protect technical infrastructures, systems, machines and networks against cyber threats, it is necessary to implement – and continuously maintain – a holistic, state-of-the-art IT security concept. Siemens’ products and solutions constitute one element of such a concept. For more information about cyber security, please visit
https://www.siemens.com/cybersecurity#Ouraspiration.