Where is cm_SavePathToFileA?

English support forum

Moderators: Hacker, petermad, Stefan2, white

User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

You need VBS or VB6? You've mentioned VBS earlier.
sexy69
Member
Member
Posts: 124
Joined: 2016-06-22, 17:21 UTC

Post by *sexy69 »

indifferently, for me it's the same
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

I've just gave you an example of VBS script reading its command line arguments, you are free to do anything with this information. :D
sexy69
Member
Member
Posts: 124
Joined: 2016-06-22, 17:21 UTC

Post by *sexy69 »

WScript.Echo WScript.Arguments.item(0)

msgbox ???????????

What am I there to enter
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

What do you want to do with your script?
My example doesn't contain any editable fields, it only shows how you can get command line arguments, and you are free to do anything with them.
sexy69
Member
Member
Posts: 124
Joined: 2016-06-22, 17:21 UTC

Post by *sexy69 »

VBS skrypt:
How will the code for Path

Dim WshShell As Object
Set WshShell = CreateObject("WScript.Shell")
WshShell.AppActivate "Total Commander (x64)"
msgbox Path (active window TC) ?
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

What should this script do at all? Activate TC window, what's next? It is unclear now.
sexy69
Member
Member
Posts: 124
Joined: 2016-06-22, 17:21 UTC

Post by *sexy69 »

e.g
(active window TC) "C:\Program Files\" <- (Path)
Msgbox Path

Msgbox must read path of the active window
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

If you want just a message box, WScript.Echo does exactly that, and this script does exactly what you ask (shows a message box with current path in active panel), so I don't understand what is wrong with it.

Screenshot
sexy69
Member
Member
Posts: 124
Joined: 2016-06-22, 17:21 UTC

Post by *sexy69 »

Then write in a notepad txt: "Msgbox Path" and name the file test.vbs
Now run the file (double-click the mouse on the icon of the file)
and see the result is the window will show the path TC (e.g. Source or Target).
Last edited by sexy69 on 2016-08-19, 07:31 UTC, edited 3 times in total.
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Please give an example of file that should be created.
sexy69
Member
Member
Posts: 124
Joined: 2016-06-22, 17:21 UTC

Post by *sexy69 »

You'd better not explain.

I want to Msgbox showed what window is active?
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Do you really need path of current panel or you only need to know which one is active? I don't understand what you're trying to get using these paths.
sexy69
Member
Member
Posts: 124
Joined: 2016-06-22, 17:21 UTC

Post by *sexy69 »

Yes, I need it
Post Reply