Hoping someone out there can help. I have a fairly simple piece of code for viewing files

System.Diagnostics.Process.Start(tFileInfo.FullName)

Basically passes the path of a file to the process and let Windows deal with how to open it. Have also tried

Dim myProcess As New System.Diagnostics.Process
      With myProcess
        .StartInfo.UseShellExecute = True
        .StartInfo.FileName = tFileInfo.FullName
        .StartInfo.CreateNoWindow = False
        .Start()
      End With

Works beautifully on my machine, but on three others i have tested it on, it opens PDF and TXT files no problem, but as soon as I attempt to open a Word file or an Excel file
I get "There is not enough memory or disk space to open Word" and similar in Excel if the application is not already open. If the Office app is open, the code works perfectly. Has anyone come across this before?

Solved this. Not related to the code at all, but the user name

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.