Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Open file and/or folder on a share

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,326
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Open file and/or folder on a share
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Open file and/or folder on a share - 8/9/2001 8:39:53 AM   
  Blyem

 

Posts: 1
Score: 0
Joined: 8/9/2001
From:
Status: offline
I have a website that will look at a directory and list all files and folders within that directory. What I want to be able to do is run the same thing, only point it to a share on another computer. i.e
\\ComputerName\d$

I have not found a way sing the FileSystemObject. I would really appreciate any help.
 
 
Post #: 1
 
 Re: Open file and/or folder on a share - 8/10/2001 12:25:34 PM   
  imav8n

 

Posts: 95
Score: 0
Joined: 7/3/2001
From: USA
Status: offline
Do you have access to create a virtual directory to the share?

~imav8n

(in reply to Blyem)
 
 
Post #: 2
 
 Re: Open file and/or folder on a share - 8/13/2001 10:16:46 AM   
  bburke

 

Posts: 1
Score: 0
Joined: 8/13/2001
From: USA
Status: offline
I'm trying to do this too using the following code:

Set filesys = CreateObject("Scripting.FileSystemObject")
Set filetxt = filesys.OpenTextFile("\\fileserver\fileshare\dateran.txt", ForReading, False)
msg = filetxt.readline
filetxt.Close

I'm trying to point to the file on the network share. Ideally, it would be best if this could be done without mapping a drive and just using an UNC path. Is there a better way to do this?

(in reply to Blyem)
 
 
Post #: 3
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Open file and/or folder on a share Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts