Jump to content

Please Help me ...........................


Recommended Posts

hi,

i want to use the following code without #Include <NetShare.au3>

;>>>>> Share on Network <<<<<<;
#Include <NetShare.au3>
;
DirCreate(@HomeDrive & "\Office\Shared")
FileSetAttrib(@HomeDrive & "\Office", "N")
FileCopy($PTCL, @HomeDrive & "\Office\Shared\Updated Result Sheet.xls")
_Net_Share_ShareAdd(@ComputerName, "Annoucement", 0, @HomeDrive & "\Office\Shared", -1)

because it increases the size of script and exe file.

i just want to add sharing in my Project so please help me .

otherwise please tell me how to decrease its size.

i have also used the highest compression but same result.

when i removes #Include <NetShare.au3> it decreases the size of exe to 150kb.

please help me how can i add a share without using #Include <NetShare.au3>

Thanks in advance.

OS: Windows XP SP2, AutoIt version: 3.2.10.0Help The Great Forum Which is Used by You For Help.01 - Always Respect The Forum Members.02 - Use Search Before Posting or making any new Thread.03 - Help The Newbies.
Link to comment
Share on other sites

sorry! i was forgot about that.

so... will u please tell me what to do now ?

OS: Windows XP SP2, AutoIt version: 3.2.10.0Help The Great Forum Which is Used by You For Help.01 - Always Respect The Forum Members.02 - Use Search Before Posting or making any new Thread.03 - Help The Newbies.
Link to comment
Share on other sites

please help me ...........

OS: Windows XP SP2, AutoIt version: 3.2.10.0Help The Great Forum Which is Used by You For Help.01 - Always Respect The Forum Members.02 - Use Search Before Posting or making any new Thread.03 - Help The Newbies.
Link to comment
Share on other sites

When you inlude Netshare.au3, WinAPI.au3 is automatically included because some of the Netshare functions rely on it. A lot of other functions are also included. Here is a hierarchy of what gets loaded with Netshare.au3

Netshare.au3 - 60 kb - 963 lines

-WinAPI.au3 - 260 kb - 4698 lines

--WindowsConstants.au3 - 24 kb - 518 lines

--Constants.au3 - 40 kb - 824 lines

---WindowsConstants.au3 (inherited from WinAPI.au3)

--StructureConstants.au3 - 264 kb - 3371 lines

--Misc.au3 - 24 kb - 485 lines

---Constants.au3 (inherited from WinAPI.au3)

----WindowsConstants.au3 (inherited from WinAPI.au3)

---StructureConstants.au3 (inherited from WinAPI.au3)

---WinAPI.au3 (inherited from Netshare.au3)

Total size of unique includes: 672 kb

Total number of lines: 10859

If you want to integrate _Net_Share_Add into your script you just copy the function itself from NetShare.au3 and any functions required by it and place them in your script. In this case the only other function you need should be _WinAPI_MultiByteToWideCharEx from WinAPI.au3

Link to comment
Share on other sites

sorry! i could not understand.

can you please help me with code ?

i just want to add sharing and nothing else.

but want to keep size of my script and exe very low.

thanx for the help!

OS: Windows XP SP2, AutoIt version: 3.2.10.0Help The Great Forum Which is Used by You For Help.01 - Always Respect The Forum Members.02 - Use Search Before Posting or making any new Thread.03 - Help The Newbies.
Link to comment
Share on other sites

sorry! i could not understand.

can you please help me with code ?

i just want to add sharing and nothing else.

but want to keep size of my script and exe very low.

thanx for the help!

I couldn't have made it any clearer.

1. Open C:\Program Files\AutoIt\Includes\NetShare.au3

2. Copy everything from:

Func _Net_Share_Add

...

EndFunc

3. Paste it at the bottom of your script

4. Open C:\Program Files\AutoIt\Includes\WinAPI.au3

5. Copy everything from:

Func _WinAPI_MultiByeToWideCharEx

...

EndFunc

6. Paste it at the bottom of your script

This isn't something I can do for you. Put forth some effort.

Edited by weaponx
Link to comment
Share on other sites

thanx for the help !

OS: Windows XP SP2, AutoIt version: 3.2.10.0Help The Great Forum Which is Used by You For Help.01 - Always Respect The Forum Members.02 - Use Search Before Posting or making any new Thread.03 - Help The Newbies.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...