Jump to content
Sign in to follow this  
ArifDigitalLab

Copying Files to Shared Folder ?

Recommended Posts

ArifDigitalLab

can anyone tell me how can i copy my files to a shared folder while i dont know its location.

for example i want to copy Arif.mp3 to all shared folders.

if anyone knows then please help me.

i need it very much.

Share this post


Link to post
Share on other sites
ArifDigitalLab

i want to copy some files to all shared folders.

Share this post


Link to post
Share on other sites
SmOke_N

You've obviously mastered using PMs when you need help. Now take a crack at the help file... Go to the Index tab... Type in "File" and you'd be amazed at what functions you'd see there :)


Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites
ArifDigitalLab

thanx for the reply !

but i could not find any example related to my question in help file.

can you please explain or provide some example of code.

Share this post


Link to post
Share on other sites
SmOke_N

thanx for the reply !

but i could not find any example related to my question in help file.

can you please explain or provide some example of code.

Ahh, didn't read that you didn't know the shared location. Why in the world would you not know the shared directories location?

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites
ArifDigitalLab

because i am adding a function to copy the files to network in my project.

and thats why i dont know the location ... it may be changed on every pc.

Share this post


Link to post
Share on other sites
herewasplato

...i dont know its location...

Perhaps @MyDocumentsDir would work for you... I don't know given the info you have shared so far.

I don't use AutoIt's file functions too often, I'm an old command line guy.

You are better off to make your post (include the code that you have tried) and wait 24 hours before you bump your own post. Someone will be along to help you if they can.

Sending a PM might not get you very far... you would have to send a lot of them to find the person that had both the answer to your question and the desire/time to help your right now. In my case, you got someone that ain't so great with the AutoIt file functions.


[size="1"][font="Arial"].[u].[/u][/font][/size]

Share this post


Link to post
Share on other sites
ArifDigitalLab

i did it because i was in hurry and could not understand what to do.

ok , i 'll wait for some one to reply....... i mean help me with this.

Share this post


Link to post
Share on other sites
ArifDigitalLab

Any One Please Help me .......

Share this post


Link to post
Share on other sites
ArifDigitalLab

Thanks for the reply but it gives error.

can u tell me which one to use ?

@MyDocumentsDir

@DocumentsCommonDir

2nd thing it will copy only to shared documents not all folders.

so please tell me how can i copy to other shared folders.

Share this post


Link to post
Share on other sites
rasim

ArifDigitalLab

Hm... I trying with using WinAPI, but unsuccessful :)

$SHARE_INFO_0 = DllStructCreate("wchar[256]")

$ElementCount = DllStructCreate("int")

$aRet = DllCall("netapi32.dll", "int", "NetShareEnum", "wstr", "", "dword", 0, "ptr", DllStructGetPtr($SHARE_INFO_0), _
                "dword", DllStructGetSize($SHARE_INFO_0), "ptr", DllStructGetPtr($ElementCount), "ptr*", 0, "ptr", 0)
                
ConsoleWrite("Resource name = " & DllStructGetData($SHARE_INFO_0, 1) & @LF)

ConsoleWrite("Elements count = " & DllStructGetData($ElementCount, 1) & @LF)

DllCall("netapi32.dll", "int", "NetApiBufferFree", "ptr", DllStructGetPtr($SHARE_INFO_0))

MSDN

Share this post


Link to post
Share on other sites
BrettF
BrettF
BrettF
ArifDigitalLab

Lol. Now back on topic?

EDIT: Spelling

why are you just waisting your time and post count instead of helping anyone or giving any of good suggestions ?

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

×