ArifDigitalLab Posted May 20, 2008 Share Posted May 20, 2008 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. Link to comment Share on other sites More sharing options...
ArifDigitalLab Posted May 20, 2008 Author Share Posted May 20, 2008 i want to copy some files to all shared folders. Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted May 20, 2008 Moderators Share Posted May 20, 2008 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. Link to comment Share on other sites More sharing options...
ArifDigitalLab Posted May 20, 2008 Author Share Posted May 20, 2008 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. Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted May 20, 2008 Moderators Share Posted May 20, 2008 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. Link to comment Share on other sites More sharing options...
ArifDigitalLab Posted May 20, 2008 Author Share Posted May 20, 2008 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. Link to comment Share on other sites More sharing options...
herewasplato Posted May 20, 2008 Share Posted May 20, 2008 ...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] Link to comment Share on other sites More sharing options...
ArifDigitalLab Posted May 20, 2008 Author Share Posted May 20, 2008 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. Link to comment Share on other sites More sharing options...
ArifDigitalLab Posted May 21, 2008 Author Share Posted May 21, 2008 Any One Please Help me ....... Link to comment Share on other sites More sharing options...
James Posted May 21, 2008 Share Posted May 21, 2008 FileCopy(@MyDocuments & '\myFile.txt!', @HomeDrive & '\Shared Documents\myFile.txt')Yes? Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
ArifDigitalLab Posted May 21, 2008 Author Share Posted May 21, 2008 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. Link to comment Share on other sites More sharing options...
rasim Posted May 21, 2008 Share Posted May 21, 2008 ArifDigitalLabHm... 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 Link to comment Share on other sites More sharing options...
James Posted May 21, 2008 Share Posted May 21, 2008 @MyDocumentsDir Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
BrettF Posted May 21, 2008 Share Posted May 21, 2008 Patience and kindness is a virtue... You have much to learn, so sit back, and enjoy the ride. Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
James Posted May 21, 2008 Share Posted May 21, 2008 Patience and kindness is a virtue... You have much to learn, so sit back, and enjoy the ride.Yoda you are? Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
BrettF Posted May 21, 2008 Share Posted May 21, 2008 Do or do not... there is no try. Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
James Posted May 21, 2008 Share Posted May 21, 2008 "Do or do not... there is no try." Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
BrettF Posted May 21, 2008 Share Posted May 21, 2008 (edited) Lol. Now back on topic? EDIT: Spelling Edited May 21, 2008 by Bert Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
ArifDigitalLab Posted May 21, 2008 Author Share Posted May 21, 2008 Lol. Now back on topic?EDIT: Spellingwhy are you just waisting your time and post count instead of helping anyone or giving any of good suggestions ? Link to comment Share on other sites More sharing options...
James Posted May 21, 2008 Share Posted May 21, 2008 Because post count doesn't matter. We all have to have fun. You screwed around "Bumping" this. Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
Recommended Posts