12-20-2008, 08:01 AM
I am wondering whether a QM user can create a special folder?
Create a special folder
|
12-20-2008, 08:01 AM
I am wondering whether a QM user can create a special folder?
12-20-2008, 08:26 AM
File folder?
Or like new System folder in QM items list. It is not possible. To change special file folder path use SHSetFolderPath. Macro dll shell32 [232]#SHSetFolderPathW csidl hToken dwFlags @*pszPath
12-20-2008, 09:25 AM
Dear Gintaras,
Many thanks for a very prompt reply. Yes, I mean a file folder and your example code was extremely clear and helpful. Best regards
03-02-2009, 12:28 AM
When I run this macro I get
Error: Error in c:\program files\quick macros 2\winapi.txt: function not found dll shell32 [SHSetFolderPathA]#SHSetFolderPath csidl hToken dwFlags $pszPath I am using QM 3.2.0.8 Why am I getting this error?
03-02-2009, 09:05 AM
The function on older OS is not exported by name, only by ordinal. I changed the code.
03-02-2009, 05:07 PM
Is this because I am an i386 emulator?
03-02-2009, 05:12 PM
It depends on Windows version. On Vista the function is exported by name, on some other OS - only by ordinal.
in dll shell32 [232]#SHSetFolderPathW csidl hToken dwFlags @*pszPath 232 is ordinal.
09-17-2014, 06:36 AM
Dear Gintaras,
I understand that there exists a QM special folder named $Drive$. My question is : Is it likely that this special folder is used somewhere internally, something that I cannot detect? The reason of this question is that I need for my applications a special folder and I intend to change special file folder $Drive$ path using SHSetFolderPath. Many thanks, Best regards.
09-17-2014, 06:47 AM
$Drive$ cannot be changed with SHSetFolderPath. It is QM-specific, like $qm$, $my qm$ and $temp qm$.
Quote:I need for my applications a special folderUse environment variables. SetEnvVar "aSpecFolder" "Z:\path" _s.getfile("%aSpecFolder%\file.txt")
09-17-2014, 02:06 PM
Many thanks once more!
However, I thought about using a special folder because an environment variable it seeme that it does not unexpand as I though ti would be. I would appreciate it if you comment on the following example : Function tempf11 SetEnvVar "aSpecFolder" "Z:\path" Unless, I do some kind of mistake or misunderstanding.
09-17-2014, 02:10 PM
Can only unexpand to $...$, not to %...%.
|
« Next Oldest | Next Newest »
|