These are not questions. These are relative infinitives, like what to order, who to tell, when to leave, or which one to pick. Putting a question mark after them does not make them questions. Relative infinitives are often used in lists, like journalists' bullet points: what, where, when, how, who, why, ..
They can be used as embedded question complement clauses, with the right verbs and constructions:
- He asked her what to do.
- She knows when to do it.
- How to make sure it works is a problem.
But they aren't questions by themselves. There are several ways to make questions in English, but these are sposta be Wh-questions. There's really only one way to make them, and it doesn't involve infinitives. Here's the rule:
- Start with a statement that has a missing or unknown part you want to ask about, e.g,
You can list files in Directory A by using Program ??
- Substitute the appropriate Wh-word for the missing part, e.g,
You can list files in Directory A how
- Form a Yes/No question from the modified statement, e.g,
Can you list files in Directory A how?
- Move the Wh-word to the beginning of the Yes/No question, e.g,
How can you list files in Directory A?
Note that the question has its subject (you) and its first auxiliary inverted (can you instead of you can). It doesn't use to.
Infinitives with to are strictly subordinate clauses. But, in posters, advertisements, slogans, songs, bullet lists, raps, movies, slideshows, poems, and other spontaneous or artistic language, grammar does not constrain.