spunit
spunit

Reputation: 565

Open file with "=" in its file name

How do I manage to open a file with "=" in its path? I'm trying to do this, but it does not work:

System.Diagnostics.Process.Start("explorer.exe", @"/select, " + @"C:\te=st.srt");

Maybe the "=" can be replaced with something else in my code maybe?

Upvotes: 2

Views: 81

Answers (1)

SLaks
SLaks

Reputation: 887365

You need to pass the filename on the command line in quotes:

@"/select, ""C:\te=st.srt"""

Upvotes: 3

Related Questions