Hi
This is my first thread
I have small question i do not know alot about vbscript
so
How can by vbscript move all files from my directory to folder "first" except one file "index.txt"
and move all folders in the same dircetory to folder "first" except one folder "index"
i tried but thera are mistakes so can u help me please
strPath = objFSO.GetParentFolderName(wscript.scriptfullname)
arrExemptFiles = array("index.txt")
set objFSO = CreateObject("Scripting.FileSystemObject")
set objFolder = objFSO.GetFolder(strDir)
for each objFile in objFolder.Files
if (isExempt(objFile.Name) = false) then
move objFile, "first"
end if
next
This is my first thread
I have small question i do not know alot about vbscript
so
How can by vbscript move all files from my directory to folder "first" except one file "index.txt"
and move all folders in the same dircetory to folder "first" except one folder "index"
i tried but thera are mistakes so can u help me please
strPath = objFSO.GetParentFolderName(wscript.scriptfullname)
arrExemptFiles = array("index.txt")
set objFSO = CreateObject("Scripting.FileSystemObject")
set objFolder = objFSO.GetFolder(strDir)
for each objFile in objFolder.Files
if (isExempt(objFile.Name) = false) then
move objFile, "first"
end if
next