Results for "Author: adam murray"
Executes a command passed as a string, and waits for it to finish. Example: lResult = ShellAndWait("d:\ztbold\ztw.exe", 10000) That calls the d:\ztbold\ztw.exe and waits for it to exit for up to 10,000 milliseconds. If you want to call something and redirect its output to a file, you'll have to call CMD.EXE like this: lResult = ShellAndWait("cmd.exe /c MyCommand.EXE > MyFile.TMP", 10000)
Modified from Benjamin Wilger's original source. Gives forms a Winamp-like docking behavior. I have added support to make the forms move together when docked, just as in Winamp. Previously, the windows would dock to each other, but not move together. This version adds the option of making one form the "master" of the other docked forms, so that when the master form is dragged, forms docked to it are dragged as well. Many, many thanks to Benjamin Wilger for his code, without which this version would not exist. (See http://www.pscode.com/vb/scripts/ShowCode.asp?txtCodeId=27489&lngWId=1 for the original code.) Please cast a positive vote if you enjoy this code. It only takes a few seconds, and I feel less like I'm operating in a vacuum here.
Executes a command passed as a string, and waits for it to finish. Example: lResult = ShellAndWait("d:\ztbold\ztw.exe", 10000) That calls the d:\ztbold\ztw.exe and waits for it to exit for up to 10,000 milliseconds. If you want to call something and redirect its output to a file, you'll have to call CMD.EXE like this: lResult = ShellAndWait("cmd.exe /c MyCommand.EXE > MyFile.TMP", 10000)
Modified from Benjamin Wilger's original source. Gives forms a Winamp-like docking behavior. I have added support to make the forms move together when docked, just as in Winamp. Previously, the windows would dock to each other, but not move together. This version adds the option of making one form the "master" of the other docked forms, so that when the master form is dragged, forms docked to it are dragged as well. Many, many thanks to Benjamin Wilger for his code, without which this version would not exist. (See http://www.pscode.com/vb/scripts/ShowCode.asp?txtCodeId=27489&lngWId=1 for the original code.) Please cast a positive vote if you enjoy this code. It only takes a few seconds, and I feel less like I'm operating in a vacuum here.
Executes a command passed as a string, and waits for it to finish. Example: lResult = ShellAndWait("d:\ztbold\ztw.exe", 10000) That calls the d:\ztbold\ztw.exe and waits for it to exit for up to 10,000 milliseconds. If you want to call something and redirect its output to a file, you'll have to call CMD.EXE like this: lResult = ShellAndWait("cmd.exe /c MyCommand.EXE > MyFile.TMP", 10000)
Modified from Benjamin Wilger's original source. Gives forms a Winamp-like docking behavior. I have added support to make the forms move together when docked, just as in Winamp. Previously, the windows would dock to each other, but not move together. This version adds the option of making one form the "master" of the other docked forms, so that when the master form is dragged, forms docked to it are dragged as well. Many, many thanks to Benjamin Wilger for his code, without which this version would not exist. (See http://www.pscode.com/vb/scripts/ShowCode.asp?txtCodeId=27489&lngWId=1 for the original code.) Please cast a positive vote if you enjoy this code. It only takes a few seconds, and I feel less like I'm operating in a vacuum here.
Appends a string to a specified file (or creates the file if needed). Unlike the open/print/close method, this subroutine uses Win32 API calls. This ensures that your application will be able to write to its log file correctly, even if another user has that log file open in an editor during your write attempt. This is the most practical approach to production-quality logging.
Executes a command passed as a string, and waits for it to finish. Example: lResult = ShellAndWait("d:\ztbold\ztw.exe", 10000) That calls the d:\ztbold\ztw.exe and waits for it to exit for up to 10,000 milliseconds. If you want to call something and redirect its output to a file, you'll have to call CMD.EXE like this: lResult = ShellAndWait("cmd.exe /c MyCommand.EXE > MyFile.TMP", 10000)
Uses Mutex Objects to track multiple instances of the same .EXE. A Mutex object is an interprocess synchronization object whose state is set to signaled when it is not owned by any thread, and nonsignaled when it is owned. Only one thread at a time can own a mutex. Use of mutex objects makes possible batch processing and other synchronous tasks, from concurrent instances of the same application.
Modified from Benjamin Wilger's original source. Gives forms a Winamp-like docking behavior. I have added support to make the forms move together when docked, just as in Winamp. Previously, the windows would dock to each other, but not move together. This version adds the option of making one form the "master" of the other docked forms, so that when the master form is dragged, forms docked to it are dragged as well. Many, many thanks to Benjamin Wilger for his code, without which this version would not exist. (See http://www.pscode.com/vb/scripts/ShowCode.asp?txtCodeId=27489&lngWId=1 for the original code.) Please cast a positive vote if you enjoy this code. It only takes a few seconds, and I feel less like I'm operating in a vacuum here.
Uses Mutex Objects to track multiple instances of the same .EXE. A Mutex object is an interprocess synchronization object whose state is set to signaled when it is not owned by any thread, and nonsignaled when it is owned. Only one thread at a time can own a mutex. Use of mutex objects makes possible batch processing and other synchronous tasks, from concurrent instances of the same application.
Executes a command passed as a string, and waits for it to finish. Example: lResult = ShellAndWait("d:\ztbold\ztw.exe", 10000) That calls the d:\ztbold\ztw.exe and waits for it to exit for up to 10,000 milliseconds. If you want to call something and redirect its output to a file, you'll have to call CMD.EXE like this: lResult = ShellAndWait("cmd.exe /c MyCommand.EXE > MyFile.TMP", 10000)
Appends a string to a specified file (or creates the file if needed). Unlike the open/print/close method, this subroutine uses Win32 API calls. This ensures that your application will be able to write to its log file correctly, even if another user has that log file open in an editor during your write attempt. This is the most practical approach to production-quality logging.
Modified from Benjamin Wilger's original source. Gives forms a Winamp-like docking behavior. I have added support to make the forms move together when docked, just as in Winamp. Previously, the windows would dock to each other, but not move together. This version adds the option of making one form the "master" of the other docked forms, so that when the master form is dragged, forms docked to it are dragged as well. Many, many thanks to Benjamin Wilger for his code, without which this version would not exist. (See http://www.pscode.com/vb/scripts/ShowCode.asp?txtCodeId=27489&lngWId=1 for the original code.) Please cast a positive vote if you enjoy this code. It only takes a few seconds, and I feel less like I'm operating in a vacuum here.
Appends a string to a specified file (or creates the file if needed). Unlike the open/print/close method, this subroutine uses Win32 API calls. This ensures that your application will be able to write to its log file correctly, even if another user has that log file open in an editor during your write attempt. This is the most practical approach to production-quality logging.
Executes a command passed as a string, and waits for it to finish. Example: lResult = ShellAndWait("d:\ztbold\ztw.exe", 10000) That calls the d:\ztbold\ztw.exe and waits for it to exit for up to 10,000 milliseconds. If you want to call something and redirect its output to a file, you'll have to call CMD.EXE like this: lResult = ShellAndWait("cmd.exe /c MyCommand.EXE > MyFile.TMP", 10000)
Uses Mutex Objects to track multiple instances of the same .EXE. A Mutex object is an interprocess synchronization object whose state is set to signaled when it is not owned by any thread, and nonsignaled when it is owned. Only one thread at a time can own a mutex. Use of mutex objects makes possible batch processing and other synchronous tasks, from concurrent instances of the same application.
Modified from Benjamin Wilger's original source. Gives forms a Winamp-like docking behavior. I have added support to make the forms move together when docked, just as in Winamp. Previously, the windows would dock to each other, but not move together. This version adds the option of making one form the "master" of the other docked forms, so that when the master form is dragged, forms docked to it are dragged as well. Many, many thanks to Benjamin Wilger for his code, without which this version would not exist. (See http://www.pscode.com/vb/scripts/ShowCode.asp?txtCodeId=27489&lngWId=1 for the original code.) Please cast a positive vote if you enjoy this code. It only takes a few seconds, and I feel less like I'm operating in a vacuum here.
Appends a string to a specified file (or creates the file if needed). Unlike the open/print/close method, this subroutine uses Win32 API calls. This ensures that your application will be able to write to its log file correctly, even if another user has that log file open in an editor during your write attempt. This is the most practical approach to production-quality logging.
Executes a command passed as a string, and waits for it to finish. Example: lResult = ShellAndWait("d:\ztbold\ztw.exe", 10000) That calls the d:\ztbold\ztw.exe and waits for it to exit for up to 10,000 milliseconds. If you want to call something and redirect its output to a file, you'll have to call CMD.EXE like this: lResult = ShellAndWait("cmd.exe /c MyCommand.EXE > MyFile.TMP", 10000)