Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to get SendTo path?

Status
Not open for further replies.

jumpjack

Programmer
Jul 28, 2006
79
IT
Let's suppose I add my program to SendTo menu, in such a way I can "send" to it any file just by right-clicking on the file: how can my program access the path of the right-clicked file? Looks like it is NOT in the command line...?


-- Jumpjack --
 

>Looks like it is NOT in the command line...?

I have no problem with it:

Label1.Caption = Command()
 
Right, it works: I'm actually using RapidQ (Visual basic clone), I didn't notice that file path is seen as the last parameter received from commandline.

For search engines:
this code in RapidQ shows all the commandline parameters, last one being the path of the file dropped on the executable, or "received" from "SendTo" menu item:

for i = 0 to CommandCount
print i, "," ,command$(i)
next



-- Jumpjack --
 
just because it lacks an IDE? ;-)
it uses same syntax, same keywords...

-- Jumpjack --
 
Its basic(!) syntax is mostly that of QBasic. As, indeed, the original author points out. And much of VB's syntax also derives from QB. So there's some compatiblity there as a result.

But I think you may be confusing (vague) compatability with cloning. Some of the source code may be compatible but sgnificant amounts are not (PEEK, POKE, INKEY$, CALLBACK, CODEPTR, Financial functions, memory functions ... just off the top of my head), and the two IDEs are completely different, the types of projects that can be compiled are entirely different, the compilation results are different, ...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top