Go to Google Groups Home    microsoft.public.scripting.vbscript
Re: problem with vbscript

Pegasus (MVP) <i....@fly.com.oz>

"axel" <sempresol...@live.it> wrote in message

news:0668e797-fc58-45f4-85b9-215ec019e186@a70g2000hsh.googlegroups.com...

> On 18 Mar, 11:30, "Pegasus \(MVP\)" <I....@fly.com.oz> wrote:
>> "axel" <sempresol...@live.it> wrote in message

>> news:e5f89449-1564-4165-8020-1f98f13a1322@m36g2000hse.googlegroups.com...

>> > hi guys

>> > i'm Alex and i have a problem, i want create a VBscript with
>> > copyfolder command for each profile into PC:

>> > folder source: c:\test (in the folder there are many files and
>> > folders)

>> > folder destination: ...\"user profile"\Applications data

>> > this copy run for default user, administrator and all users but don't
>> > work for all profiles first create.

>> > can you help me????

>> A good starting point would be to post your script and tell
>> us what message you see on the screen when the script
>> does not work.

> i haven't a script....

My understanding of the purpose of newsgroups is that they
are a great resource for obtaining help but that they are not
a free "pizza delivery service". In other words, there has to
be some initial effort from the poster. I can see several solutions
to your current problem:
a) Use a humble batch file, e.g. like so:
  @echo off
  cd /d "%UserProfile%\.."
  for /d %%a in (*.*) do xcopy /s /d /c /y /ah "%%a" "d:\Backup\%%a\"

b) Study existing script examples, e.g. this one:
    http://www.microsoft.com/technet/scriptcenter/resources/qanda/aug07/h...

c) Download appropriate help files, e.g. the Scripting Guy file
    (from the above link) or the VB Script help file script56.chm.

To learn VB Script takes time and effort - we all had to do it! -
but it will be a rewarding exercise.