Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.
strSourceFolder = "\\X.X.41.40.119\erchart$" strSourceFileSearch ="*.PDF" strTargetDataFolder = "\\X.X.40.119\data$" strTargetDataFilename = "MyTable.txt" If Right(strSourceFolder, 1) <> "\" Then strSourceFolder = strSourceFolder & "\" Set fso = CreateObject("Scripting.FileSystemObject") Set objSource = fso.GetFolder(strSourceFolder) For Each oFile In objSource.Files Wscript.Echo "FilePathName"&", "&"FileName" to strTargetDataFilename Wscript.Echo objFSO.GetParentFolderName(objFile) to strTargetDataFilename Wscript.Echo objFSO.GetFileName(objFile) to strTargetDataFilename Next
|Show hidden user account||7||59|
|Batch or VBscript: Transfer/replace files if they exist from one folder to other folders.||6||60|
|Programmatically signing Word macros||4||72|
|change the windows script file to BAT||10||40|