cl$() is used to get a commandline from a string.
For example:
if you use in another program:
execute file filename$, commandline$, directory$, then the
cl$() will return the commandline passed with this command.
Another example would be the "open with ..." (right click on a file > open with), or dragging your file onto the exe (same effect), then the commandline will be the URL of the selected file.
To get the name without quotation marks, it is enough to use
File$ = left$(cl$(), len(cl$()) - 1)
File$ = right$(File$, len(File$) - 1)
(it could be comprimised into one line, but it would make it a bit unreadable)
So (I saw your program on the forum), if you need to add this: Start by checking wether the command line contains something or nothing(""), if it contains something, see if the file exist, and if it exist, open it.
I hope this helps.
It's the programmer's life:
Have a problem, solve the problem, and have a new problem to solve.