Valhalla Legends Archive

Programming => General Programming => Visual Basic Programming => Topic started by: Forged on July 29, 2004, 10:22 AM

Title: Que?
Post by: Forged on July 29, 2004, 10:22 AM
I need to copy a file to another location and

FileCopy App.Path & "\" & App.EXEName , "C:\k\" & App.EXEName


Does not work, but

FileCopy "C:\project1.exe", "c:\k\project1.exe"


How can I get the former to work, or atleast get it to do the same thing?
Title: Re:Que?
Post by: Spht on July 29, 2004, 10:35 AM
Quote from: Forged on July 29, 2004, 10:22 AM
I need to copy a file to another location and

FileCopy App.Path & "\" & App.EXEName , "C:\k\" & App.EXEName


Does not work, but

FileCopy "C:\project1.exe", "c:\k\project1.exe"


How can I get the former to work, or atleast get it to do the same thing?

App.EXEName does not include file extension.
Title: Re:Que?
Post by: Forged on July 29, 2004, 10:41 AM
Yeah I found that out after I tryed to do it in a textbox, thank you.


FileCopy App.Path & App.EXEName & ".exe", "c:\k\" & App.EXEName & ".exe"


works