forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Windows copy dialog

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1751
Location: Space and Time

PostPosted: Mon Apr 22, 2013 11:28 pm    Post subject: Windows copy dialog Reply with quote

Is there a way to copy files/folders and show the windows copy dialog? API or VBScript maybe?

Thanks!

_________________
Chris
Http://theblindhouse.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
cnodnarb
Professional Member
Professional Member


Joined: 11 Sep 2002
Posts: 762
Location: Rockeledge, GA

PostPosted: Tue Apr 23, 2013 3:27 pm    Post subject: Reply with quote

I don't know if this can be done via api, if so look to kernel32.dll CopyFileW

For VBS

The target folder must be created prior to calling the vbs script.

Code:

Const FOF_CREATEPROGRESSDLG = &H0&

strTargetFolder = "c:\myTarget"

Set objShell = CreateObject("Shell.Application")
Set objFolder = objShell.NameSpace(strTargetFolder)

objFolder.CopyHere "c:\mySource\*.*", FOF_CREATEPROGRESSDLG
Back to top
View user's profile Send private message AIM Address
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1751
Location: Space and Time

PostPosted: Tue Apr 23, 2013 8:44 pm    Post subject: Reply with quote

I gave that a quick try, it copies the files but does not show the progress dialog.
_________________
Chris
Http://theblindhouse.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
cnodnarb
Professional Member
Professional Member


Joined: 11 Sep 2002
Posts: 762
Location: Rockeledge, GA

PostPosted: Wed Apr 24, 2013 12:59 pm    Post subject: Reply with quote

Works in both my test, for Windows 7 and Windows XP...

Maybe try running it via wscript.exe test.vbs ?

Your script host might be set different than mine?

Extra slash? Can you post your .vbs source?
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
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
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group