Valhalla Legends Forums Archive | Visual Basic Programming | Que?

AuthorMessageTime
Forged
I need to copy a file to another location and
[code]
FileCopy App.Path & "\" & App.EXEName , "C:\k\" & App.EXEName

[/code]
Does not work, but
[code]
FileCopy "C:\project1.exe", "c:\k\project1.exe"
[/code]

How can I get the former to work, or atleast get it to do the same thing?
July 29, 2004, 3:22 PM
Spht
[quote author=Forged link=board=31;threadid=7953;start=0#msg73230 date=1091114551]
I need to copy a file to another location and
[code]
FileCopy App.Path & "\" & App.EXEName , "C:\k\" & App.EXEName

[/code]
Does not work, but
[code]
FileCopy "C:\project1.exe", "c:\k\project1.exe"
[/code]

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

App.EXEName does not include file extension.
July 29, 2004, 3:35 PM
Forged
Yeah I found that out after I tryed to do it in a textbox, thank you.

[code]
FileCopy App.Path & App.EXEName & ".exe", "c:\k\" & App.EXEName & ".exe"
[/code]

works
July 29, 2004, 3:41 PM

Search