View Single Post
  #39 (permalink)  
Old 05-06-2008, 06:24 PM
agraham's Avatar
agraham agraham is offline
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,055
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

I haven't tested it but it would look something like this. finfobj is an Object and args is an Object Array.
Code:
finfobj.New1(false)
args.new1(
1)
args.SetValue(
0"c:\temp\save\a.a""System.String")
finfobj.CreateNew2(
"System.IO.FileInfo", args.Value)
If finfobj.GetProperty("Exists") = true Then
  finfobj.RunMethod2(
"MoveTo""c:\temp\save\b.b""System.String")    
End If
Reply With Quote