Thanks srod! You are the man!
Here's what seems to work:
*lResult = 0
Debug SendMessageTimeout_(#HWND_BROADCAST,#WM_SETTINGCHANGE,0,"Environment",2,1000,*lResult)
Debug *lResult
If you have a better suggestion for the parameters, let me know, but this seems to work.
More info here:
http ...
Search found 695 matches
- Mon Aug 09, 2010 10:17 pm
- Forum: Coding Questions
- Topic: Changed PATH in Registry but its not changed in Environment
- Replies: 2
- Views: 1100
- Mon Aug 09, 2010 8:43 pm
- Forum: Coding Questions
- Topic: Changed PATH in Registry but its not changed in Environment
- Replies: 2
- Views: 1100
Changed PATH in Registry but its not changed in Environment
Hi All.
I am writing an app which requires the addition of new directories to the environmental PATH variable.
So after successful creation of the new directories, I add the new directories to the registry PATH value at HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment.
But this ...
I am writing an app which requires the addition of new directories to the environmental PATH variable.
So after successful creation of the new directories, I add the new directories to the registry PATH value at HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment.
But this ...
- Thu Feb 25, 2010 9:20 pm
- Forum: Coding Questions
- Topic: SMTP AUTH example
- Replies: 20
- Views: 15622
Re: SMTP AUTH example
Wow - talk about old threads! Blow the dust off this one.
Anyway, I've been using the above clipper code but the "Date:" field data sometimes throws off some mail recipients because their mail servers/clients don't know how to interpret it (and I have had some complaining customers - gotta keep em ...
Anyway, I've been using the above clipper code but the "Date:" field data sometimes throws off some mail recipients because their mail servers/clients don't know how to interpret it (and I have had some complaining customers - gotta keep em ...
- Thu Jul 02, 2009 9:06 pm
- Forum: Coding Questions
- Topic: Code for cross-platform GUID/UUID?
- Replies: 3
- Views: 1282
- Thu Jul 02, 2009 8:53 pm
- Forum: General Discussion
- Topic: Dumb ass database question!
- Replies: 4
- Views: 3001
- Tue Feb 10, 2009 12:39 am
- Forum: Off Topic
- Topic: Good Freeware Stuff
- Replies: 668
- Views: 677162
- Fri Jan 02, 2009 12:53 am
- Forum: General Discussion
- Topic: Where's freak?
- Replies: 8
- Views: 2841
Where's freak?
Why is Timo not listed as a team member?
http://purebasic.com/support.php3
Are changes afoot for 2009? Or am I just starting a rumor? Or did I miss an announcement somewhere?
http://purebasic.com/support.php3
Are changes afoot for 2009? Or am I just starting a rumor? Or did I miss an announcement somewhere?
- Fri Jan 02, 2009 12:33 am
- Forum: Coding Questions
- Topic: RunProgram() with a shortcut .lnk
- Replies: 10
- Views: 3429
- Tue Dec 30, 2008 10:31 pm
- Forum: Coding Questions
- Topic: RunProgram() with a shortcut .lnk
- Replies: 10
- Views: 3429
I tried:
But it gave an error that it could not find "%comspec%", so I changed it to "cmd.exe" and it now works fine.
Thanks for the tip.
Code: Select all
RunProgram("%comspec%","/c C:\myprogram.exe.lnk","c:\")
Thanks for the tip.
- Tue Dec 30, 2008 9:12 pm
- Forum: Coding Questions
- Topic: RunProgram() with a shortcut .lnk
- Replies: 10
- Views: 3429
RunProgram() with a shortcut .lnk
I have a shortcut link "myprogram.exe" which is actually "myprogram.exe.lnk", but RunProgram("myprogram.exe") returns 0, and RunProgram("myprogram.exe.lnk") returns 1 but does not run the shortcut like when I click it from explorer. Instead it launches 7-zip!??
Is there a trick to running shortcuts ...
Is there a trick to running shortcuts ...
- Fri Dec 26, 2008 12:22 am
- Forum: Off Topic
- Topic: Merry Christmas (now with fangbeasts girls on p2)
- Replies: 46
- Views: 8462
- Tue Dec 16, 2008 10:41 pm
- Forum: Feature Requests and Wishlists
- Topic: Please add CurrentProcessId()
- Replies: 0
- Views: 793
Please add CurrentProcessId()
to the Process library please. Or maybe call it SystemProcessId() or OSProcessId() since it is an externally assigned number.
- Tue Dec 16, 2008 8:48 pm
- Forum: Coding Questions
- Topic: Get Current Process ID within calling EXE
- Replies: 2
- Views: 2034
- Tue Dec 16, 2008 8:07 pm
- Forum: Coding Questions
- Topic: Get Current Process ID within calling EXE
- Replies: 2
- Views: 2034
Get Current Process ID within calling EXE
Ok, I wrote this following function to return the current process id from within the calling EXE, however, I don't like having to open a window to do it since it is in a non-windowed app. Granted, it does work, but does anyone have a non-window method to do this?
Procedure.l CurrentProcessId ...
Procedure.l CurrentProcessId ...
- Tue Dec 16, 2008 7:28 pm
- Forum: Coding Questions
- Topic: Base64 Question
- Replies: 3
- Views: 1430