Script To Set ShellReadyEvent For Forced Shell

Sep 2, 2009

I'm having a really hard time with this. I have a situation where I'm running an "internet kiosk" kind of situation. So i'm forcing firefox to run as a shell with some custom settings that prevent users from tampering with anything. Problem is, and this is well documented, you force windows to use something thats not explorer.exe as the shell - you get to wait 2 min before the welcome screen dies. I'm running XP Home - I've tried disabling the Welcome screen in the registry but, nothing seems to work. I keep running across snippets of code refering to something like this:[code]

I've used C++ a few times, so I sorta kinda get whats going on, but I have no idea how to implement it. A lot of people are talking about just adding these snippets to the beginning of their custom shell applications. My shell *is* an application, so i can't add any code. I need to know how to send this signal to the kernal so i can shorten my boot time. I'm assuming I need to take some VB code and turn it into an EXE so i can run it at boot - I tried SHELLing this out to cscript.exe in a batch file, but it says theres errors.

View 1 Replies


ADVERTISEMENT

VS 2008 Make A Shell Replacement For The Windows Default Shell

Aug 1, 2009

I'm going to attempt to make a shell replacement for the Windows default shell: explorer.exe. I'm not sure if its possible using Vb.Net, but I can't seem why not. My end goal is to use a custom made shell for a Windows Preinstallation Environment instead of the default command prompt. I plan to use a 3rd party program to compile the program with the .NET Framework. Otherwise, it wouldn't work because Windows PE does not support the .NET Framework.

View 1 Replies

IDE :: How To Run Program After Changes Were Made Without Being Forced To Save It

May 27, 2009

In my Tools/Options box under Projects and Solutions/Build and Run, I have selected: Before building: to "Don't save any Changes."However, after making changes to a form, I would like to run it without saving, but I get a message that forces me to save, unless it runs the version of the program before the changes were made.The VB 2005 edition works the way I want it to allow testing without saving, but VB2008 does not allow this.Is there any way I can change this behavior?

View 2 Replies

VS 2008 Custom DataGridViewRatingCell Forced RePaint

Jul 23, 2009

I have a project im working on in which data is loaded from a database using sqlite into a datagridview, one column in this datagridview is a custom rating column which windowsmedia like rating stars are displayed and when moused over the image is changed using the following custom column. When the mouse is moved in a cell the cell is forced to repaint and display the star image according to the mouse location in the cell.Now the odd thing is that this works perfectly when the data is loaded in with the SQLreader and added row by row, but when the data is loaded in using fill() using a datatable the cell will not repaint when moused over unless its row is currently selected or has been selected. Everything works fine loading the data row by row but loading time is much longer when there are 1000 items in a table.[code]

View 1 Replies

.net - Can A WCF REST Endpoint Be Forced To Accept Raw Message Format

Jan 25, 2012

I have a web service with both SOAP and REST endpoints. I have to accept requests from a client that I do not have any control over on my REST endpoint. Currently the client gets a 400 response and the tracelog on my server shows this error:

The incoming message has an unexpected message format 'Raw'.
The expected message formats for the operation are 'Xml', 'Json'.

I've tried everything I can think of with the WebContentTypeMapper but seem to end up right where I started every time. The request from the client doesn't appear to be well formed XML or JSON so if I try to force XML or JSON types from the WebContentTypeMapper I end up with parser errors.

So I guess I need to find out if I can force this endpoint to accept the message anyway.

View 2 Replies

Can A WCF REST Endpoint Be Forced To Accept Raw Message Format

Oct 6, 2010

I have a web service with both SOAP and REST endpoints. I have to accept requests from a client that I do not have any control over on my REST endpoint. Currently the client gets a 400 response and the tracelog on my server shows this error:The incoming message has an unexpected message format 'Raw'. The expected message formats for the operation are 'Xml', 'Json

View 2 Replies

.NET Be Forced To Initialize Instance Variables BEFORE Invoking The Base Type Constructor?

Jan 5, 2011

After debugging a particularly tricky issue in VB.NET involving the order in which instance variables are initialized, I discovered that there is a breaking discrepancy between the behavior that I expected from C# and the actual behavior in VB.NET.Nota bene: This question concerns a slight discrepancy in the behaviors of VB.NET and C#. If you're a language bigot that is unable to provide an answer other than "that's why you should use C#, noob", there is nothing for you to see here; kindly move along.Specifically, I expected the behavior outlined by the C# Language Specification (emphasis added):

When an instance constructor has no constructor initializer, or it has a constructor initializer of the form base(...), that constructor implicitly performs the initializations specified by the variable-initializers of the instance fields declared in its class. This corresponds to a sequence of assignments that are executed immediately upon entry to the constructor and before the implicit invocation of the direct base class constructor. The variable initializers are executed in the textual order in which they appear in the class declaration.

Contrast that with the portion of the VB.NET Language Specification concerning Instance Constructors, which says (emphasis added): When a constructor's first statement is of the form MyBase.New(...), the constructor implicitly performs the initializations specified by the variable initializers of the instance variables declared in the type. This corresponds to a sequence of assignments that are executed immediately after invoking the direct base type constructor. Such ordering ensures that all base instance variables are initialized by their variable initializers before any statements that have access to the instance are executed.

The discrepancy here is immediately obvious. C# initializes class-level variables before calling the base constructor. VB.NET does exactly the reverse, apparently preferring to call the base constructor before setting the values of instance fields.If you want to see some code, this related question provides a more concrete example of the divergent behavior. Unfortunately, it does not provide any hints as to how one might coerce VB.NET into following the model established by C#.

I'm less interested in why the designers of the two languages chose such divergent approaches than I am in possible workarounds for the problem. Ultimately, my question is as follows: Is there any way that I can write or structure my code in VB.NET to force instance variables to be initialized before the base type's constructor is called, as is the standard behavior in C#?

View 2 Replies

Use Shell To Have Application Call An External Application But Its Not Working - Error: 'System.windows.shell'

Jun 3, 2011

I'm trying to use the Shell to have my application call an external application but its not working...I don't understand why. I get the following error: 'System.windows.shell' is a namespace and cannot be used as an expression!

Heres my code....any ideas what I'm doing wrong. Its got to be a simple...stupid error.

Private Sub mnuUpgrade_Click(ByVal Ctrl As Microsoft.Expression.Web.Interop.Legacy.CommandBarButton, ByRef CancelDefault As Boolean) Handles mnuUpgrade.Click

[CODE].....................

View 2 Replies

Bat File To Run In Exe (like Shell)?

Apr 17, 2011

i have this

Quote:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Process.Start("mybatchfile.bat")
End Sub

its working if they are on the same folder,i want to do is make the batch file as a resource file so that i can run it even not in the batchs folder?

View 9 Replies

Launching A .lnk Using Shell

Jul 26, 2010

I can create a shortcut using this code:

Dim sFolder As String, sTarget As String, sAppName As String
Dim oShell As New WshShell
Dim oShortcut As WshShortcut

[Code]....

View 5 Replies

Regarding Unzip Using Shell Dll?

Apr 17, 2009

I am using Shell Dll to unzip zip file in vb.net 2005. Following is the code for this.

Dim sc As Shell32.Shell = New Shell32.Shell
Dim srcf As Shell32.Folder = sc.NameSpace(src)
Dim desf As Shell32.Folder = sc.NameSpace(des)

[code].....

View 2 Replies

Run Msg.exe After Opening A Shell Using Cmd.exe?

Jun 26, 2012

I want to send messages withing a windows 7 LAN using VB.NET code. The problem is that the msg.exe executes commands in admin mode only. Here is the code. Shell("cmd.exe /k runas /user:farook-pcadministrator msg.exe") 'Here i'm prompted for a password. Shell("cmd.exe /k msg.exe", 1) I use the /k switch to see what's going on in the shell. /c is the silent switch. I do not wish to use runas neither do I wish to change privilages in msg.exe

View 2 Replies

Run Shell() As Administrator?

Nov 14, 2009

I have an update app, which can be updated itself by another update app (so, the second app is an updater of the main updater). Both apps must have administrator permissions because of writing in the Program Files folder. Is it possible that when the main updater is running (under administrator rights) it can use Shell() to let the second updater run with administrator rights without a UAC confirm dialog popping up again?

View 3 Replies

Start Instead Of Shell?

Aug 10, 2010

it possible to have a start command instead of the simple shell the same code as in a .BAT File, i dont know but on a .bat is a higher/lower lvl.

[Code]...

View 11 Replies

Using Shell And Getting Feedback?

Oct 18, 2011

I want to be able to run any command by typing into a textbox.For example if I wanted to get info from "ipconfig".I want to be able to type "ipconfig" into the textbox and for it to then display the infomation into a richtextbox.I have been searching the internet but so far can not find a solution

Code:
Shell("ipconfig", AppWinStyle.Hide)

How do I now display the infomation from the console into a richtextbox?

View 3 Replies

Using Shell Function In .Net?

Dec 26, 2007

I want to use Shell function in Vb.Net.Thing is that i have 5 checkboxes. on checking each checkbox i want to execute batch file which fires some commands in database.but while checking all 5 checkboxes all batch file gets executed and then it gives me error.I want to run only one batch file at a time.

View 11 Replies

AccessViolationException With Shell To Explorer

Dec 15, 2010

I wrote a backup utility that synchronizes a list of folders. Errors appear in a list. In the list I can right-click to retry, exclude the folder next time, or open the folder in explorer to examine.When I shell to explorer I get an AccessViolationException. Form1 opens Form4 with Form4. ShowDialog(), and that's where the error occurs. The error does not occur within Form4 where the shell function is called. memory must be getting trashed somehow.I've used two methods, Shell and System.Diagnostics.Process.Start. Each produces similar results. Shell waits awhile before causing the error, but Process.Start causes the error immediately.This is VB.Net 2010 using framework 4, though I did resolve a shell problem once before with VBA by writing out a VBScript file then shelling to the VBScript file.

View 3 Replies

AccessViolationException With Shell To Explorer?

Dec 15, 2010

I wrote a backup utility that synchronizes a list of folders. Errors appear in a list. In the list I can right-click to retry, exclude the folder next time, or open the folder in explorer to examine.

When I shell to explorer I get an AccessViolationException. Form1 opens Form4 with Form4.ShowDialog(), and that's where the error occurs. The error does not occur within Form4 where the shell function is called. Memory must be getting trashed somehow.I've used two methods, Shell and System.Diagnostics.Process.Start. Each produces similar results. Shell waits awhile before causing the error, but Process.Start causes the error immediately.

This is VB.Net 2010 using framework 4, though I did resolve a shell problem once before with VBA by writing out a VBScript file then shelling to the VBScript file. I don't think the process being started is isolated enough. It's sharing memory or something else.

View 5 Replies

Add An Icon To Shell Handlers?

Apr 30, 2008

set the Icon for an item in a shell handler? I've set a contextmenu handler to the extension .savdata and added the text "Open with ConvertFile" to the handler so that the context menu for .savdata looks like this:

Open with ConvertFile
-------------------------------------
Send To >

[code]....

So how can I use "my.computer.registry.HKEY_CLASSES_ROOT" in VB 2008 express edition to add an Icon file path to the left of the context menu handler?

View 7 Replies

Add-on To Write Shell Extension?

Nov 15, 2011

Apparently, it's not safe to use the .Net framework < 4 to write a shell extension.

As my users are likely to not have that version of the framework, I'd rather use a third-party solution so I can write the main app in .Net 2 or 3.

Can someone recommend an add-on for this, either open-source or affordable?

View 1 Replies

Can't Shell To Open A Zip File

May 18, 2012

I'm just getting started in VB.net using vb.net 2010 . I thought what I had left to do today was simple but not to be.I am simply trying to open a zip file that the user has selected.No mater how I have tried to send the filename (with quotes added, chr(34) & selfilename, set permissions, confirm file is found) I get Error 53 File Not Found.

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim SelFileName As String
Dim ReturnValue As Boolean
SelFileName = ListBox1.SelectedItem 'Contains the full path and filename

[code].....

View 4 Replies

Executing A File In Shell?

Jan 23, 2009

Here's an example code so you can understand my problem:

Dim test1 As String
Dim test2 As String
Dim test3 As String

[code]....

shell.Run("""testProgram""test1 test2 test3 test4") 'I know this is wrong.My problem is in the last line. I want the contents of the strings to be printed, not the names of the strings, and I don't know how to do that.

View 5 Replies

Get Results Of Shell Function?

Jan 27, 2010

Is there a way to get the results of the shell function?

for example:

shell("test.bat")

i want to get the results of this shell command and pass it to a richtextbox.

View 1 Replies

Get The Output Of A Shell Command?

Jan 10, 2012

I have a VB.net program in which I call the Shell function. I would like to get the text output that is produced from this code in a file. However, this is not the return value of the executed code so I don't really know how to.

This program is a service but has access to the disk no problem as I already log other information. The whole service have multiple thread so I must also make sure that when the file is written it's not already accessed.

View 3 Replies

How To Get The Shell Extension Icons

Jul 20, 2010

For example the WinRAR icon, right-click a file, system popup the context menu, show the WinRAR with it's icon, i want to know how to get the WinRAR icon or other icons (for example CuteFTP...) using .NET. I researched this problem

[Code]...

View 12 Replies

How To Read Shell Paramaters

Jun 16, 2011

I need to be able to read a variable that is coming from the dos shell "sort of". We run this app that is supposed to create a word document.In some of the old school versions of word you could pass a command line parameter of /N to winwordto autocreate the file. That doesn't work in 2007 so I'm trying to write a vbscript to take it's place. I did the same in powershell and had not problems, it just recognized the variable.

'Command line arguments
Set colNamedArguments = WScript.Arguments.Named
strHelp = colNamedArguments.Item("?")

[code].....

View 3 Replies

Launch App Using Shell From Another .net App Within Windows 7?

Aug 19, 2010

I am having an issue with a .net application launching another application using Shell On Windows 7 the app will not launch at all. I am assuming UAC is preventing this?

View 2 Replies

Passing Argument To Shell()?

Jan 5, 2009

I'm designing an interface using visual basic .NET with visual studio tool. In my program I have to call an extern .exe using the function shell() and pass a FileName to it. The problem is that what it passes to the executable is never the file path. My code is this one and I think it should work but I don't know why, it doesn't.

Public Class FormMain
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

[code].....

View 15 Replies

Pause In Between Shell Executions?

Nov 14, 2011

Pause in between shell executions

View 1 Replies

PDF Shell - Batch Opener

Dec 30, 2011

PDF shell - batch opener

View 3 Replies







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