Similar Threads:
1.Pipe a pipe command to a file
I couldn't find any better place to post this, so here it is:
I'm trying to find a way to echo a pipe command (>>) to a file.
Basically I'm trying to have one batch file create another batch file on the
fly. Unfortunately one of the commands already has a pipe command in it:
FOR /F %%I IN ('%1') DO ECHO %%~I >>%2
So to pipe it to a batch file, I would normally do this:
echo FOR /F %%I IN ('%1') DO ECHO %%~I >>%2 >> c:\test.bat
Unfortunately this fails because there are two sets of pipe commands (>>) in
the line.
Is there a way around this, maybe a way to specify ASCII characters in place
of >>?
Thanks,
--
Bill Baker
2.Trouble with named pipe, getting "could not open pipe message"
I have a service running as local system, and a GUI that resides in a user
account. When I try to open a named pipe to connect to the service, I get a
"could not open pipe" message. Now I know that the pipe has no security set,
so it must be getting blocked in Vista on that basis. Here is a small sample
of the c# code that creates the pipe, where and how do I enable connections
for everyone. I don't want any security on this pipe.
public PipeHandle(PipeURI URI,PipeHandleType type, int inBufferSize, int
outBufferSize)
{
_URI = URI;
_Type = type;
_BufferIn = inBufferSize;
_BufferOut = outBufferSize;
}
public PipeHandle(string pipeURI,PipeHandleType type, int inBufferSize, int
outBufferSize)
{
_URI = new PipeURI(pipeURI);
_Type = type;
_BufferIn = inBufferSize;
_BufferOut = outBufferSize;
}
internal void CreateHandle() {
switch (_Type) {
case PipeHandleType.Server:
_Handle =
UnsafeNativeMethods.CreateNamedPipe(_URI.FullName,
(int)FileAccess.ReadWrite|UnsafeNativeMethods.FILE_FLAG_OVERLAPPED,
UnsafeNativeMethods.PIPE_TYPE_BYTE | UnsafeNativeMethods.PIPE_WAIT,
UnsafeNativeMethods.PIPE_UNLIMITED_INSTANCES,
_BufferIn,
_BufferOut,
UnsafeNativeMethods.NMPWAIT_WAIT_FOREVER,
IntPtr.Zero);
break;
case PipeHandleType.Client:
_Handle = UnsafeNativeMethods.CreateFile(_URI.FullName,
(int)FileAccess.ReadWrite,
(int)System.IO.FileShare.ReadWrite,
IntPtr.Zero,
(int)System.IO.FileMode.Open,
UnsafeNativeMethods.FILE_FLAG_OVERLAPPED,
IntPtr.Zero);
break;
}
if (_Handle.IsInvalid) throw new IOException("Could not open
pipe.");
}
Any ideas? A code sample would be sweeeet.
3.decimal symbol and the currency symbol
I would like to change the decimal symbol and the currency symbol for all
the users on a W2K server.
Do you know a VBscript to do it ?
Thanks a lot
--
Cordialement,
Je FOURNET
Administrateur Reaux
XXXX@XXXXX.COM
4.Registered Symbol and Trade Mark Symbol in text box
I need to be able to type theses symbols directly into a text box. I'm
locked into the Garamond font so I can't use a symbol font. Also, I need to
store these in a SQL table. When I retrieve from the SQL table will these
symbols be in tact? I'm stuck.
Thanks,
KF
5.No ToolBarIcons showing on Symbol PPT8800 and Symbol MC50
The following problem
I have an application that uses a toolbar to switch between various Parts of
the application. The toolbar is linked to an ImageList which contains the
Icons that are to be displayed on the toolbar buttons.
The icons display correctly using the PocketPC 2003 Emulator and on a real
Pocket Pc (T-Moblie MDA II, ARM Processor).
But on the above mentioned devices (Symbol PPT8800 and Symbol MC50) the
icons do not show correctly. There is only a thin line visible instead of
the whole icon as if the icons shrunk vertically .
Any help would be greatly appreciated.
Stephan Pahl
6. Cannot debug anymo Symbols for VS2003SP1 are MISSING FROM THE SYMBOL SERVER
7. Windows 2000 Service Pack 4 debug symbols & symbol server
8. Named pipes in Visual Basic .NET