Hi,
I need some help for writing a script.

My problem is this.
I have a pile of 200 or so floppy disks.
I have to get all the contents from each disk into a separate folder on a
hard drive.

I have looked at the floppies some of them have Volume names and some of
them don't.
I would like to keep the volume name if it exists and use it for naming the
folder.
I suspect that maybe some od the floppies have identical volume names and so
I mus t have away to differenciate between any two floppies (and folders)
which would have the same name.
I think that adding a timestamp to the name of the folder would be OK.

I have looked at the floppies - again - some of them have viruses !! and
some of them don't.

So this is what I'd like to do.
1. Put the floppy in the floppy drive.
2. Click on a vbscript that would
Read the voulume name
Run my AV programme to scan for viruses and let me deal with any bad
things
Make a new unique folder on the hard drive
XCopy a:\*.* /s with all subfolders and hidden and system files to the
new unique folder.
Give me a yell when it's done!
3. Ask for anew floppy and start over again

Maybe I should deal with the viruses first and then run a simpler script
that would just copy ?

Anyway, any help appreciated.

TIA

AMD

Re: Help needed for a script by mr_unreliable

mr_unreliable
Wed Aug 09 16:25:31 CDT 2006

hi Anne-Marie,

What you suggest is do-able from script.

This will get you going, but you are still going to
have to refer to the documentation.

1. Insert Floppy. Must do this by hand.

2. Read VolumeName. Use the "VolumeName" property of the
(fso) drive object.

3. Make a folder. Look up the fso.CreateFolder method.

4. Run XCopy. It is possible to do this with fso, but
XCopy is probably better and faster. Use shell.run

Set oSH = WScript.CreateObject("WScript.Shell")
oSH.Run "%comspec% /c xcopy " & (xcopy parameters)

4. Give a Yell. The best I can suggest here is to have
your computer play a bugle call.

oSH.Run "BugleCall.mp3"

Note that if the mp3 extension is registered with a
musicplayer shell.run will start the musicplayer and
play the piece you selected.

5. Ask for new floppy. A MsgBox should suffice for this.

cheers, jw
____________________________________________________________

You got questions? WE GOT ANSWERS!!! ..(but,
no guarantee the answers will be applicable to the questions)



Anne-Marie Degraies wrote:
> Hi,
> I need some help for writing a script.
>
> My problem is this.
> I have a pile of 200 or so floppy disks.
> I have to get all the contents from each disk into a separate folder on a
> hard drive.
>
> I have looked at the floppies some of them have Volume names and some of
> them don't.
> I would like to keep the volume name if it exists and use it for naming the
> folder.
> I suspect that maybe some od the floppies have identical volume names and so
> I mus t have away to differenciate between any two floppies (and folders)
> which would have the same name.
> I think that adding a timestamp to the name of the folder would be OK.
>
> I have looked at the floppies - again - some of them have viruses !! and
> some of them don't.
>
> So this is what I'd like to do.
> 1. Put the floppy in the floppy drive.
> 2. Click on a vbscript that would
> Read the voulume name
> Run my AV programme to scan for viruses and let me deal with any bad
> things
> Make a new unique folder on the hard drive
> XCopy a:\*.* /s with all subfolders and hidden and system files to the
> new unique folder.
> Give me a yell when it's done!
> 3. Ask for anew floppy and start over again
>
> Maybe I should deal with the viruses first and then run a simpler script
> that would just copy ?
>
> Anyway, any help appreciated.
>
> TIA
>
> AMD
>
>
>
>