Windows - Access %appdata% On Distant Computer .NET Openremotebasekey?
Feb 12, 2011
I am trying to access the "AppData" of a user on a remote computer. I have all the rights needed. I tried this:
r = RegistryKey.OpenRemoteBaseKey(RegistryHive.Users, MachineName)
r.OpenSubKey(SIDValue & "SoftwareMicrosoftWindowsCurrentVersionExplorerUser Shell Folders")
AppData = r.GetValue("AppData")
The fact is that it retrieves my own appdata folder...Actually the SID Value of the account on the distant computer and on mine is the same (I am under a domain). I don't know if it is the reason why I get my own appdata folder.How should I proceed?When I browse the HKEY_Local_Machine, I manage to have information about the remote computer..But not when browsing HKEY_USERS.
View 1 Replies
ADVERTISEMENT
Feb 4, 2011
i have encountered a problem, i want to access the data coming to the computer from the in-built bluetooth module of a computer on windows platform, this data has been sent by a remote bluetooth module say a by an autonomous device (just like a bluetooth mouse connecting to the computer). The to be sent is in the form of numbers and i need these to manipulate on the computer.
View 6 Replies
Jul 9, 2011
How can you access files in %appdata% through vb.net? e.g. C:UsersKuzonAppDataRoamingprogram. How would i access that file but on another windows 7 machine, also how would you do it on windows xp? I believe it is %Application Data%
View 1 Replies
Jun 12, 2010
I have a desktop computer with a cable connection on the back that allows me to watch TV on the computer using Windows Media Center. I had the idea of writing a program that would access this feed and send it to another computer (laptop) via my network. That way I would be able to watch TV from anywhere that my network spans. I have no idea if this is possible or how I would even do it,
So I have three questions.
1: Is it possible?
2: How would I go about access the feed?
3: How would I send it over the network?
My original thought was doing it in Flash, but I'm not very good at Flash so I wanted to do it in VB.Net.
View 2 Replies
May 3, 2010
We have an VB.NET VS 2005 application that goes out and connects to remote computers on the network to gather information about the running services, processes, etc.
However, not all of the computers and servers are Windows boxes, and this is causing us some grief.
Is there a way in VB .NET to determine if a computer is running a Windows OS before trying to make a connection to it?
View 6 Replies
Jan 6, 2010
Im trying to delete a uneccary file from AppData Becuse i´m working on a DiskCleaner.And i´ve discovered that CCleaner deletes a file that is unneccesary.So i want to delete it ;D BUT it seems like the kill function dosent work.It says "A part of the Path could not be found" [code]
View 4 Replies
Aug 24, 2011
I'm working on a project in Visual Basic and it's going to store all the data in a folder in %appdata%. I'm using Visual Studio 2010 I already tried this:My.Computer.FileSystem. CreateDirectory(Environment.ExpandEnvironmentVariables(%AppData est"))but it didn't work.
View 2 Replies
Oct 8, 2011
How do you use user specific folders like the appdata I was making a program that wooed back up folders on different computer without editing the code. So how use folders that you can get to by putting present shins around like %appdata%
View 1 Replies
Aug 5, 2010
im JTidler work for EBU. i need help making a program for vb that allows users to delete these files i need to delete the file MozillaControl is appdata and the file Graboid_inc in LOCALAPPDATA. I made a program in VB. here it is can i get this in VB.
[Code]...
View 4 Replies
Jan 16, 2010
Is there anyway to change the default appdata program folder?
i have a class to serialize my settings, and i just want to save them to:
appdata/roaming/[programname]/settings.xml
but when i use the filesystem.specialdirectories.currentuserappdata(something like that) it give me appdata/roaming/[company]/[programName]/[Version]/
i don't want any of that extra stuff, especially since new versions won't be able to access the old settings.
View 1 Replies
Jun 21, 2010
i'm finish to develop a registration system using vb 2008 exp edition. so, i want to connect my standalone system with LAN network. i want to access database from other computer and be use in my system. i'm use crosscable to connect with 2 computer. before this, i'm just change connection string: 'server = ip address of second computer but it's didn't work.
connectionstring = "server=localhost; user id=root;password=123456;database=vrs;"
View 3 Replies
Mar 26, 2012
wizards of the web i have a problem with my computer i no long have windows xp i have a beta product that is no good an i would like to return my computer back to its original windows xp how do i do that for my computer?19slim69
View 2 Replies
Oct 10, 2009
how to get physical address of computer having Windows 7.
View 8 Replies
Mar 27, 2012
Here is what I am doing: I have several servers that are used to run a piece of software. The software is started using a scheduled task. I can have up to three instances of the software running using three scheduled tasks, and three logged in users. Currently I am using a separate program running on two additional servers to make sure these two additional users are logged in, the scheduled task will not run if the user is not logged in. This separate program uses a saved Remote Desktop Session to make sure the users are logged in.
[Code]...
View 1 Replies
Feb 26, 2009
I was wondering if anyone knows if there's a way to programatically unlock the currently logged in account (i.e. when the user hits Windows + L), or even to just unlock the screensaver password.
View 1 Replies
Jan 3, 2011
I am creating a VB .NET app that uses the user's Application Data to store data. Can an unprivileged user create a folder in the top level of their Application Data directory? I am trying to create the app's folder if it doesn't already exist for that user.
View 3 Replies
Jan 13, 2009
I have sqlserver database in my server folder c:data How can i access this data from other computer with my vb application?
View 8 Replies
Aug 26, 2010
Can anyone provide the resource to learn making connection between computers over the LAN and retrieve files? EDIT: And can I browse the folders like its done in the local machine?
View 3 Replies
May 31, 2011
it's been awhile since I've been here. Is there anyway to access the computer monitor's menu? I have done a lot of searching over the past week.
View 8 Replies
Aug 6, 2010
Actually it is possible to find the mac address of host computer using but i just want the code for access the visitor's computer mac address in c#.net
View 1 Replies
Mar 24, 2012
I'm trying to download a file from the internet by clicking a button in MS Access.
I'm trying to use My.Computer.Network.DownloadFile as described here: [URL]
Private Sub Command2_Click()
My.Computer.Network.DownloadFile("http://www.example.com/temp/xml_test.xml", "C:xml_test.xml")
End Sub
but the 'Microsoft Visual Basic for Applications' IDE that I'm typing this into seems to have no idea what I'm talking about (text just turns red).
Can I just not do this through the built in VB editor or can I simply load a library or something to make it work?
Sorry but I'm very new to VB and to Access so search results are not specific enough for me to understand - lord knows I've tried.
I'm using Access 2010 but the DB was created in an previous version - not sure if that matters.
View 1 Replies
Sep 17, 2010
I am writing a Windows Service that will shut the machines down in my domain at 6:00 PM every night. I just want to do an If/Then statement to see if someone is logged into the machine before I shut them down. For example: If Machine_Is_Logged_In = True Then
Do Nothing Else Shut Down The Machine I've been searching for the syntax but can't find it. I've tried both "isauthenticated" and "my.user.name = "" " but nether of these work.
View 5 Replies
Aug 29, 2009
My.Computer.FileSystem.FileExists(g_DbFolder & "MyDB.sdf")returns false for this existing database in Windows 7 64bitYet when I boot back into Vista Ultimate/(rip off) 64bit the database is properly detected.
View 9 Replies
Jan 15, 2010
I tried to make a winsock program.But when i run, i have a SocketException "No connection could be made because the target machine actively refuse it."Any suggestions on what i should do? Im using 17477 port.By the way Im using my own computer to test it. So i have no idea why.How should I open this specific port in my own computer?
Is it possible that I could include it to could into my program so that i don't need to open the ports of each computer? Below is my code.
[Code]...
View 6 Replies
Nov 6, 2009
I have a program that occasionally pops up on the screen and displays a message, using vb.net. Is there a way to have it run and display even if the computer is locked or no one is logged on?
View 4 Replies
Jan 13, 2011
I have an xml file I parse to get a path to some other xml files that I then want to parse and read values from. I am fine to get the path from the first xml document and fine to parse the subsequent documents.Where I am struggling is implementing the path. It is being stored using system level variables like:
%appdata%my_appconfig
When I try open the file like this:
xmlConfig.Load(userConfigFile)
It tries to start in the application working directory - assume c:emp So the error message I get is:
Could not find a part of the path 'C:emp\%appdata%my_appconfighive.machine.xml'.
Is there a way I can use this pathing structure in my VB code or determine the actual fully qualified path programatically?
View 7 Replies
Oct 5, 2011
how do I do this properly:
vb
Imports System.IO
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
[code]....
I would like to store some app data in a 'default system folder', so when I launch the program it will know where to look for it's own settings.As a matter of fact I only need to store there a path to the files used by the program. Users will be able to choose where to put them (simplified installation). The program has to know where to look for them.
Am I creating the folder properly? As you can see I'm referring to C:... The folder structure presented here comes from my laptop running on Windows 7 Ultimate. Maybe the C:... can be somehow defined by some sort of a system 'shortcut'. Following the above example the program would look for those in C:... , but maybe I can use something like ~~ default.app.settings.My Program Name ~~~. How does it work? Have no idea how to call it properly, but I'm sure you will know what I mean.
View 5 Replies
May 8, 2009
My application (vb.net) sometimes throws an "access denied" exception when attempting to delete files in the AppData folder and I'm not sure why.I confirm that the file exists before attempting to delete it and have not done anything to make it readonly, etcThe interesting thing is that it seems to go okay when I'm logged in with Admin rights
View 2 Replies
Sep 23, 2009
I have a program that needs to access the files that are open by another program on the computer.When my application comes up I can easily see if the other application is running with the .net Process.GetProcessesByName method
Dim MyProcesses() as Process = GetProcessesByName("AnApplication")
For Each Instance as Process in MyProcesses
If MsgBox("application is running - do you want to end it?", MsgBoxStyle.YesNo or MsgBoxStyle.Question, "Warning") = MsgBoxResult.Yes then
[code].....
The problem is that the Instance.Kill does not allow the application to end gracefully. In VB6 you could use the SendMessage API to send a close message to the application and it would end gracefully - i.e. give the user the normal closing prompt. This just slays the application - leaving any open files in their potentially incomplete state, etc.
View 4 Replies
Feb 14, 2012
I'm trying to access server database from a remote computer in lan-based network using this connection string "Server=192.168.10.2; user id=user; password=pass; database=sample_db" .. but it can't open a connection.. I don't know what to do, I tried searching for this but no luck.
View 3 Replies