Hello All,
I have been battling with this for a bit.
I am new to vbScript so please be patient.
Here is the scenario:
Say I get a file count of a folder and assign it to a variable.
Set Folder = Ofso.GetFolder(I)
FleCnt = Folder.Files.Count
Then I go and move files to and from this folder. Maybe even remove all files from the folder.
When I access the variable again, it has changed. Normally this is what I want but I have some cases where I need to store the original number/information and keep it the same.
What am I missing?
I don't understand how to use the Const var to do this so maybe that's it and I just need a little direction.
Any suggestions will be appreciated.
rnpIII
I have been battling with this for a bit.
I am new to vbScript so please be patient.
Here is the scenario:
Say I get a file count of a folder and assign it to a variable.
Set Folder = Ofso.GetFolder(I)
FleCnt = Folder.Files.Count
Then I go and move files to and from this folder. Maybe even remove all files from the folder.
When I access the variable again, it has changed. Normally this is what I want but I have some cases where I need to store the original number/information and keep it the same.
What am I missing?
I don't understand how to use the Const var to do this so maybe that's it and I just need a little direction.
Any suggestions will be appreciated.
rnpIII