what does it mean? Sub Main NetWorkDrive = "C:\Sample" ASCFILEORIGINALLOCATION =…
- User
what does it mean?
Sub Main NetWorkDrive = "C:\Sample" ASCFILEORIGINALLOCATION = "C:\ProgramData\Sarin Technologies\Advisor" Set FSO = CreateObject("Scripting.FileSystemObject") GetAccessorField "Stone.Name",RoughName GetAccessorField "Stone.RoughWeight",rweight GetAccessorField "Result.Cur.PolishWeight",PolishWeight GetAccessorField "Result.Cur.shapeName",shapeName GetAccessorField "Result.Cur.TotalDepth_%",TD GetAccessorField "Result.Cur.SawName",sawname GetAccessorField "Result.cur.Grading",CutGrade FileName= sawname & "" &shapeName & "" &CutGrade &"" & PolishWeight& "TD" & TD folderName = RoughName & "_" & rweight ''check if folder exist ASCFileNewLocation = NetWorkDrive & "" & folderName & "" '' if rough folder exist, dont create again! if not FSO.folderExists (ASCFileNewLocation) then Set f = FSO.CreateFolder(ASCFileNewLocation) end if ''SolutionName = inputbox ("Enter Sol Name", "Enter Sol Name") ''solFolderNamePath = ASCFileNewLocation & "" & SolutionName '' if rough folder exist, dont create again! ''if not FSO.folderExists (solFolderNamePath & "") then ''Set g = FSO.CreateFolder(solFolderNamePath ) ''end ifSaveCurrentResultsAsAscFile (FileName)
''msgbox ASCFILEORIGINALLOCATION & "" & FileName & "*" ''msgbox ASCFileNewLocation
Call MoveFile(ASCFILEORIGINALLOCATION & "" & FileName & "*",ASCFileNewLocation ) End Sub Function MoveFile (sfol,dfol) Set fso = CreateObject("Scripting.FileSystemObject") fso.MoveFile sfol, dfol
end Function Sub Main
NetWorkDrive = "C:\Sample" ASCFILEORIGINALLOCATION = "C:\ProgramData\Sarin Technologies\Advisor" Set FSO = CreateObject("Scripting.FileSystemObject") GetAccessorField "Stone.Name",RoughName GetAccessorField "Stone.RoughWeight",rweight GetAccessorField "Result.Cur.PolishWeight",PolishWeight GetAccessorField "Result.Cur.shapeName",shapeName GetAccessorField "Result.Cur.TotalDepth_%",TD GetAccessorField "Result.Cur.SawName",sawname GetAccessorField "Result.cur.Grading",CutGrade
FileName= sawname & "" &shapeName & "" &CutGrade &"" & PolishWeight& "TD" & TD
folderName = RoughName & "_" & rweight ''check if folder exist ASCFileNewLocation = NetWorkDrive & "" & folderName & "" '' if rough folder exist, dont create again! if not FSO.folderExists (ASCFileNewLocation) then Set f = FSO.CreateFolder(ASCFileNewLocation) end if
''SolutionName = inputbox ("Enter Sol Name", "Enter Sol Name") ''solFolderNamePath = ASCFileNewLocation & "" & SolutionName '' if rough folder exist, dont create again! ''if not FSO.folderExists (solFolderNamePath & "") then ''Set g = FSO.CreateFolder(solFolderNamePath ) ''end if
SaveCurrentResultsAsAscFile (FileName)
- Assistant