Hai,

I need to copy or move executable file when it starts execute!

My code: (My exe name here: test.exe)
Code:
copystr = "copy " + Chr(34) & App.Path & "\" & "test.exe" & Chr(34) + " " + Chr(34) & Environ("windir") & "\test.exe" + Chr(34) + " /Y"
test = Shell(copystr, vbHidden)
Above code doesn't work for me!

When "test.exe" start execute i need to move "test.exe" to specified location!
how to achieve?

Advance thanks!