Open a specific Windows Folder
Hello everyone!
I am using this code to open a specific Windows folder ..... and it works perfect:
----------------------------------------------------------------------------------------
As String Dim folder
folder = "c: \ Documents WORD"
Dim Retval
Retval = Shell ("explorer.exe / e, / root," "" & folder & "" "", 1)
----------------------------------------------------------------------------------------
... but also need to open in the specified path, taking the data "UserName" of one field in a table:
TABLE: "Assignments" IDEExp, UserName, Date
So instead of going to the folder = "c:\Documents WORD" would go to: c: \Documents WORD\UserName "
PS: In Windows and subfolders are created with UserName1, 2,3,4, etc.
I hope you can help me
Thank you!
DMX. -
Hello everyone!
I am using this code to open a specific Windows folder ..... and it works perfect:
----------------------------------------------------------------------------------------
As String Dim folder
folder = "c: \ Documents WORD"
Dim Retval
Retval = Shell ("explorer.exe / e, / root," "" & folder & "" "", 1)
----------------------------------------------------------------------------------------
... but also need to open in the specified path, taking the data "UserName" of one field in a table:
TABLE: "Assignments" IDEExp, UserName, Date
So instead of going to the folder = "c:\Documents WORD" would go to: c: \Documents WORD\UserName "
PS: In Windows and subfolders are created with UserName1, 2,3,4, etc.
I hope you can help me
Thank you!
DMX. -