AutoHotkey Community

It is currently May 25th, 2012, 7:29 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 97 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7  Next
Author Message
 Post subject:
PostPosted: October 12th, 2007, 2:29 am 
Offline

Joined: April 22nd, 2007, 6:33 pm
Posts: 1832
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 12th, 2007, 2:55 am 
Offline

Joined: December 4th, 2006, 10:35 am
Posts: 561
Location: Galil, Israel
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 12th, 2007, 2:57 am 
Offline

Joined: April 22nd, 2007, 6:33 pm
Posts: 1832
If you still have it, would you be able to post the code? I tried once and it didnt work.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 12th, 2007, 3:08 am 
Offline

Joined: December 4th, 2006, 10:35 am
Posts: 561
Location: Galil, Israel

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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 12th, 2007, 3:13 am 
Offline

Joined: February 12th, 2007, 7:54 am
Posts: 2462
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 12th, 2007, 9:23 am 
Offline

Joined: December 4th, 2006, 10:35 am
Posts: 561
Location: Galil, Israel
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 8th, 2008, 6:48 pm 
Offline

Joined: April 22nd, 2007, 6:33 pm
Posts: 1832
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?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 22nd, 2008, 1:24 am 
Offline

Joined: November 3rd, 2007, 12:41 am
Posts: 188
@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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 22nd, 2008, 1:37 am 
Offline
User avatar

Joined: December 26th, 2005, 4:40 pm
Posts: 8775
Unluckily I did not :( . 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. :)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 22nd, 2008, 1:51 am 
Offline

Joined: April 22nd, 2007, 6:33 pm
Posts: 1832
inferior? how so? i would love asynchronous to be released! its in my top 5 things ive been waiting for someone to write!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 22nd, 2008, 2:14 am 
Offline

Joined: November 3rd, 2007, 12:41 am
Posts: 188
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 22nd, 2008, 3:12 am 
Offline
User avatar

Joined: December 26th, 2005, 4:40 pm
Posts: 8775
tic wrote:
inferior? how so?


I will explain that when I post, right now I'm searching it. :)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 22nd, 2008, 3:41 am 
Offline

Joined: November 3rd, 2007, 12:41 am
Posts: 188
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?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 22nd, 2008, 3:51 am 
Offline
User avatar

Joined: December 26th, 2005, 4:40 pm
Posts: 8775
That is NTFS specific method. :)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 3rd, 2008, 9:05 pm 
Offline
User avatar

Joined: December 26th, 2005, 4:40 pm
Posts: 8775
Please excuse me for the delay friends. I unable to trace the asynchronous version and I have to write it again from scratch. :(

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

:)


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 97 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: spg SCOTT and 7 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group