AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Crazy Scripting : FolderSpy v0.96 [ Synchronous ]
Goto page Previous  1, 2, 3, 4, 5, 6, 7  Next
 
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
tic



Joined: 22 Apr 2007
Posts: 1786

PostPosted: Fri Oct 12, 2007 1:29 am    Post subject: Reply with quote

Quote:
You didn't say about DeviceIoControl, but about CreateSymbolicLink


yes sorry. youre right. i meant to say DeviceIoControl as I dont have vista.

is it dangerous to use junctions as they will overwrite a hard drives contents if done wrong?

Hopefully Joy2DWorld will respond with whatever he did to get it working.
Back to top
View user's profile Send private message
Joy2DWorld



Joined: 04 Dec 2006
Posts: 561
Location: Galil, Israel

PostPosted: Fri Oct 12, 2007 1:55 am    Post subject: Reply with quote

tic wrote:
would you be able to show me how you created N threads.

sorry, wasn't following the thread...

I just set multiple copies of everything WF0, WF1, CRD0, CRD1,PFI1, etc... including the callback.

and set each forked process to low priority.
_________________
Joyce Jamce
Back to top
View user's profile Send private message
tic



Joined: 22 Apr 2007
Posts: 1786

PostPosted: Fri Oct 12, 2007 1:57 am    Post subject: Reply with quote

If you still have it, would you be able to post the code? I tried once and it didnt work.
Back to top
View user's profile Send private message
Joy2DWorld



Joined: 04 Dec 2006
Posts: 561
Location: Galil, Israel

PostPosted: Fri Oct 12, 2007 2:08 am    Post subject: Reply with quote


was just playing with it on a scratchpad, experimenting with what can do with 'Fork'.

much more interesting what is actually possible with the 'FORK' concept. Strangely, in playing with it, sometimes couldn't get the global vars to be recognized inside the callback function, and most any AHK command seem to execute 1 and terminate the thread....

in the end, found it more stable/reliable just to set up a 'mirror' function,

ie. call independant ahk script with params and share results via global objects sent via simple messages (you can just use common gui edit control).

but... unsatisfied goals can be frustrating... so...


if you've played with my suggestion & can't get it to work, post your code and I will look & see where your issue is.....
_________________
Joyce Jamce
Back to top
View user's profile Send private message
Sean



Joined: 12 Feb 2007
Posts: 2462

PostPosted: Fri Oct 12, 2007 2:13 am    Post subject: Reply with quote

tic wrote:
is it dangerous to use junctions as they will overwrite a hard drives contents if done wrong?

It's a bit awkward to tell in words. I suppose you'll face the trouble yourself once or twice in the course of using it. I don't think there will be a problem with creating and using it. The problem is almost always when deleting it, especially if you turned off the recycle bin, like me. You have to immediately recover the data using a decent recovery tool.

In spite of the risk, however, it's truly a super-feature. I can't live without it. My system is heavily relying on mount points and junction points.
Back to top
View user's profile Send private message
Joy2DWorld



Joined: 04 Dec 2006
Posts: 561
Location: Galil, Israel

PostPosted: Fri Oct 12, 2007 8:23 am    Post subject: Reply with quote

re: junctions...


1. as far as I can tell... if you delete from explorer a symbolic directory, it does not 'remove' the junction, it removes the directory structure.

2. the best i've been able to do is create 'ghost' directories or file containers. (this I use to keep file in my 'scripts' directory AND make it available in LIB directory. ie. file by file basis, and has two 'doors' to same file.

If it is possible to JOIN two directories (like the DOS join), please bring me up to speed-- ie. if dir __ of a single directory can bring up actual listings of two... type thing...
_________________
Joyce Jamce
Back to top
View user's profile Send private message
tic



Joined: 22 Apr 2007
Posts: 1786

PostPosted: Fri Feb 08, 2008 5:48 pm    Post subject: Reply with quote

Does anyone know the best method to mount all the harddrives on the computer to a folder, so that folder can be monitored for all computer activity?

For example, how could thise be used....

Code:
E := DllCall("SetVolumeMountPoint", "Str", "C:\mnt\", "Str", "\\?\D:\")


that doesnt work, but how could i get it to mount D:\ into C:\mnt ?

Must I use

http://msdn2.microsoft.com/en-us/library/aa364994(VS.85).aspx

as the last parameter?
Back to top
View user's profile Send private message
Erittaf



Joined: 02 Nov 2007
Posts: 188

PostPosted: Fri Feb 22, 2008 12:24 am    Post subject: Reply with quote

@SKAN
did you ever post the Asynchronous version that you mentioned on page 1 of this forum?? I am interested but I can't find it on the boards
Back to top
View user's profile Send private message
SKAN



Joined: 26 Dec 2005
Posts: 8688

PostPosted: Fri Feb 22, 2008 12:37 am    Post subject: Reply with quote

Unluckily I did not Sad . I have to search my backups and if not I will try to rewrite it again. But I can tell you it is slightly inferior to Synchronous mode. Smile
Back to top
View user's profile Send private message Send e-mail
tic



Joined: 22 Apr 2007
Posts: 1786

PostPosted: Fri Feb 22, 2008 12:51 am    Post subject: Reply with quote

inferior? how so? i would love asynchronous to be released! its in my top 5 things ive been waiting for someone to write!
Back to top
View user's profile Send private message
Erittaf



Joined: 02 Nov 2007
Posts: 188

PostPosted: Fri Feb 22, 2008 1:14 am    Post subject: Reply with quote

Yeah, I just need to monitor a network folder for changes... it gets 7-15 folders added to it per day... From your earlier descriptions async seemed best.
Back to top
View user's profile Send private message
SKAN



Joined: 26 Dec 2005
Posts: 8688

PostPosted: Fri Feb 22, 2008 2:12 am    Post subject: Reply with quote

tic wrote:
inferior? how so?


I will explain that when I post, right now I'm searching it. Smile
Back to top
View user's profile Send private message Send e-mail
Erittaf



Joined: 02 Nov 2007
Posts: 188

PostPosted: Fri Feb 22, 2008 2:41 am    Post subject: Reply with quote

hrm... on a related thought, (should this be a new thread) just found this on MSDN:
http://msdn2.microsoft.com/en-us/library/aa363798(VS.85).aspx

Anyone know how to call the functions to use this?
Back to top
View user's profile Send private message
SKAN



Joined: 26 Dec 2005
Posts: 8688

PostPosted: Fri Feb 22, 2008 2:51 am    Post subject: Reply with quote

That is NTFS specific method. Smile
Back to top
View user's profile Send private message Send e-mail
SKAN



Joined: 26 Dec 2005
Posts: 8688

PostPosted: Mon Mar 03, 2008 8:05 pm    Post subject: Reply with quote

Please excuse me for the delay friends. I unable to trace the asynchronous version and I have to write it again from scratch. Sad

Meanwhile, I would like to know if anyone is interested in an external Dll solution.

The DLL will be < 37Kb and multithreaded ( means it can be called multiple times for as many folders ).

Smile
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Goto page Previous  1, 2, 3, 4, 5, 6, 7  Next
Page 3 of 7

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group