Console Window Appear For Scheduled Application With No User Logged In?

Oct 27, 2009

I am using VB in VS 2008. I have written a program which loads data into SQL Server nightly. It is a Windows Forms application which runs well from Task Scheduler when a user is logged in. However when I try to run it when there is no user logged in, the program starts but it just sits idle.

[Code]...

View 5 Replies


ADVERTISEMENT

Get The WindowsIdentity Object For Logged-on User In An Application Running As Another User?

Jul 18, 2011

I'm running an application under an account that is not the account logged-on to the PC.

Within the application I need check if the logged-on user is a member of the Administrators group. Below is the code I'm using. From what I've read, WindowsIdentity.GetCurrent() should return an object associated with the logged-on user. It doesn't, it returns the same information as the call to System.Threading.Thread.CurrentPrincipal. Which is the information associated to the ID running the application, not the logged-on user.

[Code]...

View 8 Replies

Javascript - Get Windows NT Logged User Name In ASP.NET 3.5 In Intranet Application

May 5, 2011

I have an intranet asp.net application and when a page is loaded, i want to log the IP Address, Computer Name and the Windows Account(from active directory) currently logged into the computer from which the page is being accessed.

So far, Im able to get the IP address and computer name but the windows account, am getting NT AUTHORITYSYSTEM

View 2 Replies

Forms :: Transfer Console Application To Window Form Application

Dec 22, 2011

modify console application below to window form application for me.I've tried by myself for million times, but i couldn't console application.rar?

View 2 Replies

Showing OpenFileDialog Window In Console Application

Feb 15, 2009

I have in a console application. I need the program to show a OpenFileDialog window when certain text is entered, such as "file". I've tried doing this and I cannot get it to work.

View 1 Replies

VS 2005 Use A Console Window To See Data On A Windows Form Application?

Sep 1, 2009

I have a form program that runs long, and for kicks I was wondering if I could out put some data to a "real console" -not the Console useing the Output debugger.

View 8 Replies

When Running Console Application / Dos Window Disappears Without Asking For 'press Any Key To Continue'

Aug 19, 2010

When running a console application, the dos window disappears without asking for a "press any key to continue", why? What setting in 2010 is not set correctly?

View 3 Replies

Console Application With User Commands?

Jul 30, 2011

I want to create a console application with commands that can be entered by the user, but to make my application reconize those commands do I have to have an if statement for every command, or can I do something like this[code]...

View 1 Replies

Exit A Console Application When User Type Anything?

Jun 21, 2011

I have following VB.NET console application [code]...

View 3 Replies

Create A Console Application Which Would Read Input From User?

May 27, 2011

How to create a console application which would read input from user and assign the input to a variable? The problem is, I need to enter several words on one line separated with blank spaces like "ab cd efg" and then assign ab to one variable, cd to another variable and efg to another variable. Also the entered words can be any lenght.

View 3 Replies

Check VB, Console Application, User Input To Make Sure They Entered A Valid Number?

Feb 2, 2012

Vb is not my language of choice , but I have to do this for school and I'm not having a very easy time with VB's documentation.I'm just creating a very simple console application that accepts user input: degrees in Celsius, and converts it into Fahrenheit. I want to make sure that if the user just hits enter without entering the degrees in Celsius, then an if else statement will catch and write to enter Celsius again.Here's what I've tried:

[Code]...

View 1 Replies

VB5 Scheduled Task - Obtain A Screen Picture For A Post Review Of The Running Window

Dec 31, 2009

I'am trying to write a program in order to obtain a screen picture for a post review of the running window that should be periodically executed with the tasks manager.

[Code]...

View 1 Replies

Create A Console Application That Lets A User Enter 20 Names And Then It Sorts Them Out Alphabetically In Order?

Mar 25, 2012

I need to create a console application that lets a user enter 20 names and then it sorts them out alphabetically in order and then displays them.

Module Module1
Sub Main()
Const names As Integer = 20
Dim index As Integer

[code]....

View 2 Replies

Capture Application Window Switch By User?

Feb 6, 2009

How to capture when a user switched application windows. Basically what i want to do is for example is when EVER a user works inside Microsoft Word i want the CAP lock to be turned on. When they leave Microsoft word's app window and select a new app the CAPS button would turn off. Then when they return back to Word caps turns back on. I have code I found in another post on how to turn CAPS on, now i just don't now how to automatically capture application switches running all the time. My idea is to create a small app that can be minimized to the system tray then let it run and capture all thE app changes.

View 5 Replies

Why Doesn't The Main Window In Application Allow The User To Resize

Jun 15, 2009

Why doesn't the main window in my application allow the user to resize?

View 3 Replies

C# - Check If User Is Logged In?

Dec 5, 2010

I am using Microsoft visual basic 2010 for a asp.net site using c#.I am using the asp.net configuration for user registration. I have a comments form which I want to appear only if a user is logged in.I now there is a toolbox helper thing called Login View which does exactly what I want but as soon as I put a form inside the code won't compile because it cannot find the textbox fields.

I have the following in NewsArticle.aspx:

<asp:LoginView ID="LoginView1" runat="server">
<AnonymousTemplate>
<div class="postcomment">

[code]....

If I take the form out of asp:LoginView it works fine. Inside I get the following:

Error 2 The name 'txtTitle' does not exist in the current context NewsArticle.aspx.cs 59 53 Figmentville
Error 3 The name 'txtComment' does not exist in the current context NewsArticle.aspx.cs 59 68 Figmentville

View 1 Replies

Get The Logged-in User From ASP.NET Membership?

Dec 12, 2009

(I work on VS 2005 with Access Database and C#)

I have my code as follows:

protected void Page_Load(object sender,
System.EventArgs e)
{

[Code]....

The logged-in 'UserId' and 'UserName' is getting displayed correctly, but now how do I use the string 'lmember' in my 'SELECT' statement when I need to display the related information from the table 'aspnet_Users' for the logged-in user? getting the following select statement:

SelectCommand="SELECT * FROM aspnet_Users WHERE (UserName= ????)"

View 1 Replies

Logged In User Information?

Jul 20, 2009

I'm writing software in VB .NET (2005) which uses the Windows user information as login credentials - just the username. I've found Environment.UserName which works for the username (as you would expect).However, I need more information - I need the full name of the user (as shown on the Start Menu). It seems this information is stored... somewhere, as Windows is able to use it for things like permissions on file shares.

View 1 Replies

Give Prompt When User Clicked The X To Close Application/Window?

Apr 16, 2011

I know how to add an exit button with a prompt. However, I do not have the slightest cluse as to how I can add this same functionality to the window so that if the user clicks the X in the upper right corner, there is a prompt message confirming the user needs to exit.I added a form closing event but getting wrong results, the form closes if I click no and message window does not leave when I click yes to stay.

Code:

Private Sub frmTest_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
If (MessageBox.Show("Are you sure you want to exit?", "Close Form", _
MessageBoxButtons.YesNo, MessageBoxIcon.Question) = _

[code]....

View 5 Replies

Display The Current User Logged In ?

Aug 15, 2011

i have a problem with my project.in one form i have 2 textboxes in one i have displayed the serial number.in the second i want display the current user logged on software.how can i display the current user logged in ????? the code for the serial number is :[code].....

View 2 Replies

C# - Keep A Session Variable When The User Is Logged In?

May 7, 2009

I keep a Session variable when the user is logged in. So that when the user click on btnLogout it must clear all my sessions and Log the User out for GOOD!!!

It does clear my sessions but if i click the BACK button in IE right after i logged out then i am still logged in! Meaning it goes back to screen where the user was still logged into.

My code on log out

protected void btnLogout_Click
{
Session.Clear();
Session.Abandon();

[Code]....

Is there maybe an option in code i can do that will disable the user from pressing the BACK button in the Web Browzer?

View 4 Replies

Check Which User Last Logged In To Workstation?

Jan 18, 2012

I need to create a spreadsheet of which kit is assigned to which person, within the company.

We have desktops & laptops, for the purpose of this post, we'll say desktops are named DESKTOP then a random 3 digit number (DESKTOP001, DESKTOP002 etc.) and laptops are named LAPTOP then a random 3 digit number (LAPTOP001, LAPTOP002 etc.)

I'm presuming the best way of checking which user uses each workstation would be to check who last logged in to it. doing this for ALL computers in a certain OU (lets say DESKTOP_OU for desktops and LAPTOP_OU for laptops in this example) (either with VB Script or PowerShell I would presume) and to export it to Excel.

View 1 Replies

Find Out Remote Cp Logged On User?

May 21, 2010

I want to know if its possible to retrieve from a given address (IP) the currently logged on user.

View 5 Replies

Get Logged In User's Alias From LDAP

May 17, 2010

I'm trying to get the Alias of the logged in user (Active Directory/LDAP environment/Exchange) .

View 8 Replies

Retrieve User Info When Logged In?

Feb 15, 2012

what i want is when the user inputs the username and password, his/her information will be showed in the textbox located at the mainform which shows the users information like where he live and his occupation. how to show users data in the textbox of another form when he/she logged in. im using vb.net and mssql

View 1 Replies

Retrieve What User Has Logged In, When Doing Something In Vb2008?

Apr 11, 2011

I have a windows login form, and it checks whether the user name and password match and lets you log in. If I wanted to say pull some information from a dataset later on in the program. How would i pull the data from the specific user that is logged in, rather than all the data from the database.

View 4 Replies

Username Of Logged On User When Run With Other Credentials?

Sep 12, 2010

I have a client/server application running in a windows domain environment, the client application is started at log on by a scheduled task using domain admin credentials, i need to be able retrieve the username of the user who logged onto the workstation but all the methods i have tried returns the user that was used to execute the program.I have tried:

Environment.UserName
System.Security.Principal.WindowsIdentity.GetCurrent().Name
Environment.GetEnvironmentVariable("USERNAME")

All of these return the account i used to run the application, not the user who is logged on.

View 5 Replies

VS 2010 Backup For User Currently Logged In?

May 28, 2010

HTML

Private Sub Button1_Click(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles start.Click
Dim folderExists As Boolean

[Code]....

above i have a specific username in the little backup script i have created. in this section of the code, if the user selects this particular chkbox then hits "start" it backs up the above loacation to a "server" H.

how do i code it to automatically pull the username and place it where "godboubs" (aka the username) is?

View 17 Replies

Either End The Program Or Start The Program Over In A Visual Basic Console Application - Based Upon User Input?

Apr 8, 2012

I have a procedure at the end of my console application that ask the user to either hit enter to end the program, or type s to perform another search. The issue I'm having is no matter what the user types in the program end. What I would like to happen is if the user types s, then the program starts over and lets the user perform another search. The program is procedural and I need to find a way to start back off at the top of the program which ask the user to type a name to search.

[Code]....

View 1 Replies

ClickOnce Application Not Running As A Scheduled Task

Jul 27, 2009

I am currently attempting to support a ClickOnce application that i did not write. This application is running from a scheduled task. The scheduled task points to a .application file. This had been running happily untill today when it stopped. The only thing that has changed is that the application has been executed manually by a developer by double clicking on the .application file. Since then each time the scheduled task is scheduled to run the application doesn't appear to execute. The task reports no error and the error code (0x0) given indicates it ran and completed ok.

I am not familiar with ClickOnce and am not sure when implication clicking the .application file would have had or why it has stopped running as a scheduled task. It appears to me that everything else has remained the same (i have checked it is running under the correct account etc).

View 3 Replies







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