| View previous topic :: View next topic |
| Author |
Message |
RakeshSharma Newbie
Joined: 21 Mar 2006 Posts: 2 Location: INDIA
|
Posted: Jun 17th, 2006 12:46 PM Post subject: Copy Picture File |
|
|
Help me please !
I want to copy a file from c:\my pic files to c:\Pic and giving the command as follow :
X = Shell(App.Path & "\Xcopy '" & TxtLargePic.Text & "' " & "c:\Pic", vbMaximizedFocus)
Here is TxtLargePic.Text = c:\my pic files\Shree.jpg |
|
| Back to top |
|
RoofRabbit Regular

Joined: 06 Jul 2005 Posts: 95 Location: Lenoir, NC USA
|
Posted: Aug 1st, 2006 08:47 PM Post subject: |
|
|
If XCopy is in your app.path you can do that but if you're using the old dos command "xcopy.exe" it probably won't work because the app is looking for the command in the wrong place. Since windows (versions that still have some dos commands) have their commands (dos) in the search path, just remove the "App.Path & "\" part. _________________ Website - [link] |
|
| Back to top |
|
|