Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages
Visual Basic Forum for Visual Basic Programmers VB Forum Index » Registry & File Input / Output

Post new topic   Reply to topic
Copy Picture File
View previous topic :: View next topic  
Author Message
RakeshSharma
Newbie


Joined: 21 Mar 2006
Posts: 2
Location: INDIA

PostPosted: Jun 17th, 2006 12:46 PM    Post subject: Copy Picture File Reply with quote

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
View user's profile Send private message
RoofRabbit
Regular


Joined: 06 Jul 2005
Posts: 95
Location: Lenoir, NC USA

PostPosted: Aug 1st, 2006 08:47 PM    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website ICQ Number
Display posts from previous:   
Post new topic   Reply to topic    Visual Basic Forum for Visual Basic Programmers VB Forum Index » Registry & File Input / Output All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Visual Basic Forum runs phpBB | Forum Template © iOptional
VB Resources | SSL | Visual Basic