L
Lumpjaw
Helllo All,
I have the following code to copy a file to a newly created folder.
JobDirectory = 'c:\Job Files\"
JobNumber= 'B 06-100"
JobName='Construction"
Why am I getting a permission error, this all happens on my laptop, no
network.
Const OverwriteExisting = True
Set objFSO = CreateObject("Scripting.FileSystemObject")
objFSO.CopyFile "C:\Job Setup\Project Information.doc", JobDirectory &
JobNumber & "." & JobName, OverwriteExisting
Thanks for the replies.
I have the following code to copy a file to a newly created folder.
JobDirectory = 'c:\Job Files\"
JobNumber= 'B 06-100"
JobName='Construction"
Why am I getting a permission error, this all happens on my laptop, no
network.
Const OverwriteExisting = True
Set objFSO = CreateObject("Scripting.FileSystemObject")
objFSO.CopyFile "C:\Job Setup\Project Information.doc", JobDirectory &
JobNumber & "." & JobName, OverwriteExisting
Thanks for the replies.