| View previous topic :: View next topic |
| Author |
Message |
tic
Joined: 22 Apr 2007 Posts: 1786
|
Posted: Fri Oct 12, 2007 1:29 am Post subject: |
|
|
| 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 |
|
 |
Joy2DWorld
Joined: 04 Dec 2006 Posts: 561 Location: Galil, Israel
|
Posted: Fri Oct 12, 2007 1:55 am Post subject: |
|
|
| 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 |
|
 |
tic
Joined: 22 Apr 2007 Posts: 1786
|
Posted: Fri Oct 12, 2007 1:57 am Post subject: |
|
|
| If you still have it, would you be able to post the code? I tried once and it didnt work. |
|
| Back to top |
|
 |
Joy2DWorld
Joined: 04 Dec 2006 Posts: 561 Location: Galil, Israel
|
Posted: Fri Oct 12, 2007 2:08 am Post subject: |
|
|
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 |
|
 |
Sean
Joined: 12 Feb 2007 Posts: 2462
|
Posted: Fri Oct 12, 2007 2:13 am Post subject: |
|
|
| 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 |
|
 |
Joy2DWorld
Joined: 04 Dec 2006 Posts: 561 Location: Galil, Israel
|
Posted: Fri Oct 12, 2007 8:23 am Post subject: |
|
|
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 |
|
 |
tic
Joined: 22 Apr 2007 Posts: 1786
|
Posted: Fri Feb 08, 2008 5:48 pm Post subject: |
|
|
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 |
|
 |
Erittaf
Joined: 02 Nov 2007 Posts: 188
|
Posted: Fri Feb 22, 2008 12:24 am Post subject: |
|
|
@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 |
|
 |
SKAN
Joined: 26 Dec 2005 Posts: 8688
|
Posted: Fri Feb 22, 2008 12:37 am Post subject: |
|
|
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.  |
|
| Back to top |
|
 |
tic
Joined: 22 Apr 2007 Posts: 1786
|
Posted: Fri Feb 22, 2008 12:51 am Post subject: |
|
|
| 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 |
|
 |
Erittaf
Joined: 02 Nov 2007 Posts: 188
|
Posted: Fri Feb 22, 2008 1:14 am Post subject: |
|
|
| 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 |
|
 |
SKAN
Joined: 26 Dec 2005 Posts: 8688
|
Posted: Fri Feb 22, 2008 2:12 am Post subject: |
|
|
| tic wrote: | | inferior? how so? |
I will explain that when I post, right now I'm searching it.  |
|
| Back to top |
|
 |
Erittaf
Joined: 02 Nov 2007 Posts: 188
|
|
| Back to top |
|
 |
SKAN
Joined: 26 Dec 2005 Posts: 8688
|
Posted: Fri Feb 22, 2008 2:51 am Post subject: |
|
|
That is NTFS specific method.  |
|
| Back to top |
|
 |
SKAN
Joined: 26 Dec 2005 Posts: 8688
|
Posted: Mon Mar 03, 2008 8:05 pm Post subject: |
|
|
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 ).
 |
|
| Back to top |
|
 |
|