Prev: Help
Next: path.filename
From: basic beginner on
I need to know how to create a vbscript using notepad ++ that will do the
following: · Prompt the user for a folder name & a file name
· If the folder does not exist, create the folder & the file. Let
the user know that the folder & the file have been created.

· If the folder does exist but the file does not, create the file.
Let the user know the file has been created.

· If the both the folder & the file exist, print the following info
about the file: when the file was created, when the file was accessed last
time, when the file was modified last time.

Repeat the operation above until the user enters “0” as the folder name.
Print the number of iterations that have been performed. I am very new to
vbscripting anything would be of great help. Thanks
From: Pegasus [MVP] on


"basic beginner" <basicbeginner(a)discussions.microsoft.com> wrote in message
news:7D876BDA-DBDB-4571-97C7-A38FF0CAFC9F(a)microsoft.com...
> I need to know how to create a vbscript using notepad ++ that will do the
> following: · Prompt the user for a folder name & a file name
> · If the folder does not exist, create the folder & the file. Let
> the user know that the folder & the file have been created.
>
> · If the folder does exist but the file does not, create the file.
> Let the user know the file has been created.
>
> · If the both the folder & the file exist, print the following
> info
> about the file: when the file was created, when the file was accessed last
> time, when the file was modified last time.
>
> Repeat the operation above until the user enters “0” as the folder name.
> Print the number of iterations that have been performed. I am very new to
> vbscripting anything would be of great help. Thanks

Download the VB Script help file script56.chm from the Microsoft site, then
look at the examples for the following functions and objects. After you've
played with them for a couple of hours they will become fairly easy to use.
Post again if you get stuck.

- inputbox (to prompt the user for a folder/file name
- FolderExists (a File System Object method)
- FileExists (a File System object method)
- Numerous other methods within the File System object


 | 
Pages: 1
Prev: Help
Next: path.filename