Jump to content
Sign in to follow this  
ArifDigitalLab

Copying Files to Shared Folder ?

Recommended Posts

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

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

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

...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

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

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
Guest
This topic is now closed to further replies.
Sign in to follow this  

×
×
  • Create New...