How To Define Virtual IP Programmatically

May 26, 2010

I need to define Virtual IP programmatically (Perl or VB or CMD or java).I need it for temporary use, I can't use any actual IP address and I don't care if it will be accessible only from local machine.

View 1 Replies


ADVERTISEMENT

Programmatically Create And Define Variables?

Dec 28, 2011

I'm looking to define string variables from an array of strings.

x(2) = {"bar","foo"}

How do I create variables out of bar and foo? And then how do I assign them a value?

View 3 Replies

WinForms - Creating Virtual Directory Programmatically As Unprivileged User

Feb 2, 2010

I'm trying to write an application that will allow a non-administrator user to create virtual directories in IIS6. I've tried numerous different ways of impersonating a administrative account but nothing seems to work to create the virtual directory.

Here's some of what I've tried:
dim sDirPath as string = "IIS://remotehost/W3svc/1/root"
Dim de As DirectoryEntry = New DirectoryEntry()
de.Path = sDirPath
de.AuthenticationType = AuthenticationTypes.Secure
de.Username = tbxUsername.Text
[Code] .....

what is the correct way to impersonate another user in winforms application that will allow me to create the virtual directory without the user that's running the application being an administrator on the web server? I know this can be done, IIS manager allows you to use "connect as" checkbox to do it.

View 1 Replies

Get The IP Of A Virtual Server?

Aug 6, 2009

I am using the following function to return the primay ip address with out problem until I ran it on a virtual server. It returned the ip of the physical server not the virtual server.

Public Function fnGetIPAddress() As String
Dim IPAddress As String = My.Computer.Name
Try

[code]......

View 3 Replies

Make A Virtual Os With A Cmd

Jan 7, 2011

i want to make a custom CMD i can try it to make it in notepad and save it as a .bat file en then say, [Code]

View 1 Replies

Re-use An Existing For A New Virtual PC?

Mar 31, 2009

I using 2 virtual PC on may Computer. Can I re-use an existing for a new virtual PC?
Because, A Virtual PC have many space on HDD.

View 2 Replies

Control A Virtual Memory?

Sep 4, 2009

I have created a WFA that has 5 projects in it. One of the projects runs against 600 + servers and queries each server for local administrator accounts and then dumps that into an excel file. It will also check to see if the account that is in a local administrator group is disabled in AD. The problem that I have is that when I run the particular project I will run out of virtual memory. I have 4 gig on my computer. Is there a way to control this?[code]...

View 8 Replies

Does .NET Support Virtual Events

Apr 3, 2009

Does VB.NET supports virtual events?

View 1 Replies

Iis - Create Virtual Directory In .net?

Oct 4, 2011

I want to create virtual directory using vb.net. But while creating permission denied error occurs.If im manually creating virtual directory no error..

View 1 Replies

Make A Virtual Keyboard?

Jul 8, 2010

I'm trying to create a custom keyboard for my accounting firm. I have all the buttons and button events sorted out.How can I make it so that when buttons a pressed, the text is input into where the cursor is? Currently i put the cursor for instance in an excel cell, then click the key on the virtual keyboard and nothing is inputted into the cell, i assume because it selects the keyboard window when i click the button. For some keys I'm also simply using:SendKeys.Send("q") for example.

View 11 Replies

Make A Virtual Piano?

Jul 12, 2010

i am trying to make a virtual piano.in that i am also playing music files which is recorded through the above said piano.but how can i understand when this music playback ends.i need to invoke another function when the plyback ends.so how can i understand when the playback end.

View 1 Replies

MVC - Virtual Property To Be Set Private For IDs

Jan 28, 2010

I am trying to use fluent nhibernate in a MVC project. It seems the entities should have properties that are virtual and the set should be private for IDs. I use vb language. So tried using overrideable. It gives an error...

Public Overridable Property DesignId() As Integer
Get
End Get
Private Set(ByVal value As Integer)
End Set
End Property

It says property cannot be overrideable because it has a private accessor.

View 3 Replies

Virtual Interfacing Of Input Value

Jun 13, 2010

Is it possible to make a virtual interface represents the value of an input? For example, if we have a program shows the level of a liquid in a tank and we want to represent the level virtually: as the calculated value of the level increases, the level (and color) filled in the tank shown, increases as well. Example: If the value is 100, the tank ( a rectangular ) will be shown full and green. If it is 0, will be shown empty and red.

View 1 Replies

Virtual Keyboard For Program

Dec 17, 2004

Im creating a Virtual Keyboard for a touchscreen application and I was wondering if there is a way to know whenever a control gets focus, what type of control it is, basically either another thread or a watch function or something that raises an event when a control gets focus.GLOBALLY, not just one control or one form, but any control on any form in the whole program..Basically i want a keyboard icon to appear whenever the control is of Textbox type.

View 4 Replies

Find A List Of Virtual Key Codes?

Oct 3, 2009

Where can I find a list of Virtual key codes? [code]

View 4 Replies

Add Virtual Keypress To Button Command?

May 28, 2009

How can i add a virtual keypress to a button command? i would like to add Ctrl + Z keypress to a button's command so i can use the systems' undo. i have no idea where to start...so much work to do and so many choices to choose from...

View 4 Replies

C# - List All Virtual Directories Within IIS Site

Oct 14, 2010

I am trying to create a list of all virtual directories within an IIS site. However, I have found that trying to do this varies dramatically in the older versions of IIS. In IIS 7 this is a relatively easy task via C# but I can't seem to find a good method for doing this in IIS 6 and 5. I have tried using the System.DirectoryServices.DirectoryEntry but that doesn't seem to give me the desired output. I am the server administrator so I'm open to using other things such as .vbs files that are built into IIS as well as writing my own code.

View 4 Replies

C# - Map A Virtual Directory For *.asmx Methods In ASP.Net 2.0?

Jun 7, 2012

A little while ago, I managed to get WebServices to return JSON as well as XML from the code-behind of an ASPX.

Today, I needed to migrate an existing ASMX WebService to return JSON instead of XML (which was accomplished with little fuss). My problem became evident in testing the new method.

In the code-behind for the ASMX, I created a new method to return JSON instead of XML. The method works, in that it returns the expected JSON however the new routine breaks every XML-returning method in the code-behind (they all throw "System.NotSupportedException: The type System.Collections.Hashtable is not supported because it implements IDictionary." which is unexpected because the return types are all defined as XmlDocument).

If I simply comment out the JSON-returning method, the XML-returning methods function normally. Uncommenting out the JSON-returning method breaks the XML-returning methods again.

While I cannot find any supporting documentation anywhere, this behavior leads me to believe that in ASP.Net 2.0, JSON-returning methods cannot co-exist in the same module as XML-returning methods.

This led me to try separating the methods in sub-classes like so:

<WebService(Namespace:="http://tempura.org/")> _
<WebServiceBinding(ConformsTo:=WsiProfiles.BasicProfile1_1)> _
<ScriptService()> _

[Code]....

View 2 Replies

C# - Transmit With A Virtual Webcam Driver In .NET?

Feb 14, 2012

It's been a while since i've posted. Happy Valentine's day! Requirement: I would like to interface my .NET application to a "virtual webcam driver" for the purposes of SENDING image frames. I'm happy to use an open source .NET or COM component if that exists or indeed implement a "webcam driver" from scratch if someone can point me in the right direction. My first priority is the functionality.

My second priority is low dependancy on 3rd party libraries and tech (aside from .NET of course I'd prefer not to involve directshow if possible?

View 1 Replies

Convert A Char To A Virtual KeyCode?

Apr 23, 2011

I'm making a function that sends a string to a Handle using sendmessage , and I need to convert a Char to a virtual KeyCode. Asc and AscW returns ASCII code's which don't work.

View 2 Replies

Create A Virtual Operating System IN VB

Jan 8, 2011

My project is to create a virtual operating system in BENGALI through VB. I have created a virtual desktop in which there will be icons such as MY COMPUTER, MY DOCUMENTS, RECYCLE BIN, INTERNET EXPLORER... The internet explorer icon has been linked to the original internet explorer, as the case in RECYCLE BIN. But i am not able to connect to MY COMPUTER AND MY DOCUMENTS. Also in creating the START MENU, there is a RUN COMMAND........

View 3 Replies

Create A Virtual Serial Port?

Aug 19, 2010

How do you create a virtual serial port using vb.net

View 1 Replies

Create Virtual 'shredder' Printer?

Jun 7, 2012

I need to create a virtual printer that 'shreds'

Basically here is my problem. I have a software program that needs to 'print' a file before it will save it. I want to be able to print to my shredder so that it saves the document, but I don't actually want the document printed. So I need to print to a program that securely deletes the document and shows as a driver in Windows.

How would I go about doing this in C# of VB.Net?

View 1 Replies

Creating A Virtual File Handle

Apr 30, 2011

I've been trying to find a Windows API function I can use to generate a virtual file handle in Windows. I'm working with VPC/xVM and I want to create a virtual machine that actually points to my physical hard drive - the methods provided with VPC and xVM for this really suck (I've never been able to get it to work with either virtualization product).

[Code]...

View 4 Replies

Detect Physical/Virtual Printers?

Jul 16, 2009

way to detect Detect physical/Virtual Printers in VB.Net?

View 1 Replies

Error: Is Not A Valid Virtual Path?

Apr 9, 2009

I used something like

Dim i As String
i = Server.MapPath("~/photos/") + fileName

[code].....

View 2 Replies

File Attachment Using Virtual Path In Asp.net

Mar 8, 2012

I'm working on an asp.net project which has a form with a file attachment capability. Since I'm uploading the form on a server, I can't use a physical path. How do I use the asp:FileUpload with a virtual path?

View 2 Replies

Generate A Virtual Disk / Path?

Mar 26, 2009

Is there some way to generate a virtual disk/path?My application needs to generate a lot of temporary small files, edit them, write to disk, execude old executables in Fortran, and read the text files outputs.I cannot choose to avoid the fortran, because is out of my power to decide it.all that I/O is really expensive, because disk access is slow. But all the files involved are really small (including the executable), so they may fit on a few megabytes of RAM, and I have gigabytes of RAM available (RAM is really cheap today).Worse, I cannot parallelize, because it forces me to multiply I/O operations (I need to create, edit, and delete lots of small files).The perfect solution would be to have a small virtual disk in memory.I cannot use a virtual PC software, because users would have a hard time installing it (they have problem using windows explorer even to do simple tasks).

View 4 Replies

How To Get Info About Total / Available Virtual Memory

Oct 26, 2011

I still have one more problem getting total/available virtual memory.
Code:
Select Case My.Computer.Info.TotalVirtualMemory
Case Is >= 1073741824
GetRAMInfo += FormatNumber(My.Computer.Info.TotalVirtualMemory / 1073741824, 0) + " GB" + vbNewLine
Case 1048576 To 1073741823
[Code] .....

For example, now Windows System Information returns:
Total Virtual Memory = 15.8 GB
Available Virtual Memory = 5.52 GB
While the above code returns:
Virtual Memory: 8,191 GB free of 8,192 GB
(I also use the same above code for My.Computer.Info.AvailableVirtualMemory)

View 4 Replies

How To Open Virtual Serial Port

Feb 25, 2009

I wrote a program that uses the following class from that site: VB.NET Tutorials - Serial Port Communication In VB.Net. The problem is that I cannot open a virtual serial port, and the second is that I want to make the communication asynchronous.

This is the subroutine which reads from the port:
#Region "comPort_DataReceived"
''' <summary>
''' method that will be called when theres data waiting in the buffer
''' </summary>
''' <param name="sender"></param>
[Code] .....

View 10 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved