Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

saving to multiple users folders 1

Status
Not open for further replies.

itsfisko

Technical User
Jan 19, 2002
226
GB
is it possible to have a script save a document to all the home directories of a network?
I post this here as apprently i posted this question in the wrong place.
Thanks for any help ,school tech :)

Some lead, some follow....I just Hope!
 
Hi mark perhaps I have made an error some where
I have a folder in my user area called OUTBOX which I have included in the Doc = path
I then tried putting an OUTBOX in the copy to path but I still get the error. Can you explain the oSubfolder.Name function? Thanks John :)

Some lead, some follow....I just Hope!
 
sorry mark i should have said INBOX in my copy to path

john

Some lead, some follow....I just Hope!
 
oSubFolder.Name would be the enumeration of all sub folders within E:\Users.

Does this inbox directory already exist?

I hope you find this post helpful. Please let me know if it was.

Regards,

Mark
 
Yes this directory exists Mark. I am still fiddling with the code to get it to put the copied doc into a folder called INBOX within the users home directory.
All the best John school tech.

Some lead, some follow....I just Hope!
 
I think the code is god at this point, I would focus on making sure the script has access to the source file. If you can, try putting a copy of the file in the same directory as the script and just give the file name (with extension) in the input box. You would not need a path then.

I hope you find this post helpful. Please let me know if it was.

Regards,

Mark
 
Hi Mark the basic code is great. I just wish I could figure a way to get it to place the copied document into a file folder in the target users my documents.
I copies it fine from my work area to their my documents but it willnot seem to place it into a folder in their user area.
Still its working better than I had expected. I will keep looking for that next step...
Thanks and all the best from John F
;-)

Some lead, some follow....I just Hope!
 
Hi all I have revisited this question, I was wondering if it was possible to use a form in word or excel to do the same thing
Ie; to have an input box (what file)(& path)
input box destination year ( and folder)
any thgoughts? :)


Some lead, some follow....I just Hope!
 
Take a look under the hood at Word macros. You can use VBA in there.

Seems that word or Excel would be rather difficult to work with for your need. I'd look more into using ASP code.

I hope you find this post helpful. Please let me know if it was.

Regards,

Mark
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top