Quantcast
Channel: Total Commander
Viewing all articles
Browse latest Browse all 18748

Eng :: How to replace "Wscript.Arguments" for VB6?

$
0
0
Author: sexy69
Subject: How to replace "Wscript.Arguments" for VB6?
Posted: Tue Aug 23, 2016 2:36 am (GMT -6)

This script is to show the full path of the selected file.

TC button:
Command: B:\test.vbs
Parameter: %L
Code:
Set ABC = CreateObject("Scripting.FileSystemObject")
'*****************************
'Here is the problem.

Set Path = Wscript.Arguments  '<-- How to replace "Wscript.Arguments" for VB6?
'*****************************

Set MyFile = ABC.OpenTextFile(Path.Item(0),1)
   FullName1 = MyFile.ReadLine
MyFile.Close

Msgbox FullName

As the VBS script rewrite for VB6?


Viewing all articles
Browse latest Browse all 18748

Trending Articles