I would like to pass the full path of the text file to one of the functions. I place my script and text file in the same place using the command below, I found the path to the folder where my script is
p = CreateObject("Scripting.FileSystemObject").GetParentFolderName(WScript.ScriptFullName)
p appeared as C:\test
My file name xyz.txt
I want to pass the argument of the function as C:\test\xyz.txt
how can i combine path and file name
I tried under the code
path = p & "xyz.txt"
can anyone help me how to join the path and file name.
source
share