Location: List Archives

List Archives

This forum is an archive of all posts to our mailing list over the past few years.  The forum is set read only therefore to contribute you will need to join our list community.  See more info about this here.

 

When subscribed to the list you should use your standard email client to send your posts to ActiveDir@mail.activedir.org.

List Archives

Subject: [ActiveDir] vbscript to read a remote file
Prev Next
You are not authorized to post a reply.

AuthorMessages
AD00000854User is Offline

Posts:0

09/21/2005 12:31 PM  
Hi All,

My requirement is to read some characters
from a . txt file located on remote machine and write them in another text
file on a local machine from where i will run the script.
I have a script which do all this on
a local machine ( read some text from one file and write to another ).
However i am not getting how to fetch the text data from remote machine..
 I have some idea that i have to use WSHControllers object to run
a script on the remote machine and fetch the data.

Any pointers in that direction would
be appreciated.

Regards,
Sudhir Kaushal
Systems Engineer (GIS)
Computer Sciences Corporation.
India - + 91 120 2582323 Ext. 2649
Denmark - + 45 70100024 Ext. 2649

You never win Silver, You
lose Gold


----------------------------------------------------------------------------------------
This is a PRIVATE message. If you are not the intended recipient, please
delete without copying and kindly advise us by e-mail of the mistake in
delivery. NOTE: Regardless of content, this e-mail shall not operate to
bind CSC to any order or other contract unless pursuant to explicit written
agreement or government initiative expressly permitting the use of e-mail
for such purpose.
----------------------------------------------------------------------------------------
dejiUser is Offline

Posts:262

09/21/2005 3:11 AM  
For reading and writing files, I use FileSystemObject (FSO), like this:

Set myFSO = CreateObject("Scripting.FileSystemObject")
Set MyFile
=myFSO.OpenTextFile("\\remotecomputername\remoteshare\remoteFile.txt",
8,true)

HTH


Sincerely,

Dèjì Akómöláfé, MCSE+M MCSA+M MCP+I
Microsoft MVP - Directory Services
www.readymaids.com - we know IT
www.akomolafe.com
Do you now realize that Today is the Tomorrow you were worried about
Yesterday? -anon

________________________________

From: ActiveDir-owner@xxxxxxxxxxxxxxxxxx on behalf of Sudhir Kaushal
Sent: Wed 9/21/2005 5:26 AM
To: ActiveDir@xxxxxxxxxxxxxxxxxx
Subject: [ActiveDir] vbscript to read a remote file

Hi All,

My requirement is to read some characters from a . txt file located on remote
machine and write them in another text file on a local machine from where i
will run the script.
I have a script which do all this on a local machine ( read some text from
one file and write to another ). However i am not getting how to fetch the
text data from remote machine.. I have some idea that i have to use
WSHControllers object to run a script on the remote machine and fetch the
data.

Any pointers in that direction would be appreciated.

Regards,
Sudhir Kaushal
Systems Engineer (GIS)
Computer Sciences Corporation.
India - + 91 120 2582323 Ext. 2649
Denmark - + 45 70100024 Ext. 2649

"You never win Silver, You lose Gold"


-----------------------------------------------------------------------------
-----------
This is a PRIVATE message. If you are not the intended recipient, please
delete without copying and kindly advise us by e-mail of the mistake in
delivery. NOTE: Regardless of content, this e-mail shall not operate to bind
CSC to any order or other contract unless pursuant to explicit written
agreement or government initiative expressly permitting the use of e-mail for
such purpose.
-----------------------------------------------------------------------------
-----------
List info : http://www.activedir.org/List.aspx
List FAQ : http://www.activedir.org/ListFAQ.aspx
List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/
You are not authorized to post a reply.
Forums >ActiveDir Mail List Archive >List Archives > [ActiveDir] vbscript to read a remote file



ActiveForums 3.7
Friends

Friends

VisualClickButoton
Members

Members

MembershipMembership:
Latest New UserLatest:dilips_mon
New TodayNew Today:1
New YesterdayNew Yesterday:0
User CountOverall:5292

People OnlinePeople Online:
VisitorsVisitors:52
MembersMembers:0
TotalTotal:52

Online NowOnline Now:

Ads

Copyright 2012 ActiveDir.org
Terms Of Use