VS 2008 Create A Shared Folder On A Remote Machine?

Sep 30, 2010

Is it possible to create a folder on a remote machine that has no previously shared folders? I can do this...

vb
Dim fname As String = "\10.1.x.yDocumentsMyFolderName"
IO.Directory.CreateDirectory(fname)

[code].....

View 3 Replies


ADVERTISEMENT

.Net - Open Remote Shared Folder With Credentials?

Sep 26, 2011

I need to open a folder on a remote server with different credentials in a window (explorer.exe).I managed to do it with no credentials (my credentials), but when I do it with another username and another password than mine, it opens a prompt to enter a username and a password, and it says "access denied".

In the access log on the remote desktop, it says that I tried to connect with my own username, and not the other username I entered. So, the process obviously did not work.

[Code]...

View 1 Replies

Can Get API To Just Create A Basic Shared Folder

May 25, 2010

NetShareAdd API from a VB.NET application (.NET version 2.0) and although I can get the API to just create a basic shared folder I now want to create a shared folder and specify its Share permissions (not NTFS permissions) as well, which means I have to pass in a SHARE_INFO_502 structure rather than just a SHARE_INFO_2 like I was previously doing for creating a basic share. I have spent over 5 hours solid just trying to get this working and am getting to the point now where I really cant think of anything else to try.I've encountered several problems whilst trying to make this work but the one I am finally stuck on is this: When I call NetShareAdd it returns the error INVALID_PARAMETER and the parm_ err object (which is supposed to specify which member of the SHARE_INFO_502 structure caused the error) holds the value 501. I know it is something to do with the security descriptor because if I comment out the line where I set the SHARE_INFO_502 structure's shi502_ security_descriptor field then the code works without an error (just obviously does not set the share permissons I want).I think posting all of the code here might be a bad idea as its currently over 150 lines long (yes that is only code for getting this API working...) so I'll just post my definitions of the SECURITY_DESCRIPTOR structure and the code I am actually using to call the various APIs involved: [code] Each of those API calls prior to NetShareAdd returns a non-error value in the Debug.WriteLine that is done after each one, but there is obviously an issue somewhere with the security descriptor.

View 2 Replies

[2008] Close Open Files On Remote Machine?

Apr 27, 2008

Dont know how easy this would be, but basically I'm just wondering if there is any way in VB.net you can close open files on a remote PC.In my scenario the vb.net app would be running with domain admin permissions in most cases so would have access to things like the remote Computer Management console, which of course has the Open Files section in it which lets you close any open files on the remote machine its connected to.So I fugured there must be some way to do it in vb.net... I just dont know if its going to be more hassle than its worth and I dont really know where to start looking (ive used googled but not had much joy).

View 6 Replies

Create A Folder On A Remote Computer Then Share It Out?

Aug 19, 2009

I need to create a folder on a remote machine (The machine name and UNC path are stored in an Access 2007 database. Once the folder is created, I need to share it out with Everyone:Full Control Permissions?

View 3 Replies

VS 2008 Get Machine Startup Folder?

May 31, 2011

how can I get the shared startup folder? My application is set to add a shortcut to the startup folder, but it isnly for that user, and I'd like it to automatically start for any user on the machine.I know you can do this by adding a registry key, but I'm having trouble getting my registry key code to work in this WPF app.

View 1 Replies

[2008] Find A Folder That Is Shared Between All Users Of A PC

Mar 9, 2010

I need to find a folder that is shared between all users of a PC, every body being able to read/write to that folder and below, without any errors. I think that the folder "C:Documents and SettingsAll UsersShared Folder" would do the trick. How do I find the path to that folder, regardless of the OS used (Xp / Vista / 7) and regardless of the Windows language (With a french Windows, this folder is called "C:Documents and SettingsAll UsersDocuments partag").

View 5 Replies

Get Name Of A Shared Directory On A Local Machine?

Apr 12, 2010

I see several posts about getting the UNC of a remote drive, anyone have any ideas how I get the name of a shared directory on a local machine?

View 1 Replies

Public Shared Function(folder In 'Dim Folder As Nvironment?

Aug 6, 2009

if you could see everthing but the thing I'm having trouble with the Public Shared Function(folder in 'Dim folder As nvironment.SpecialFolder' is the problem)

Option Explicit On
Option Strict On
Imports System.IO

[code].....

View 5 Replies

VB 2008/2010 - Save Page As, Create A Folder, Upload The Folder?

Mar 15, 2012

Visual Basic 2008/2010 - Save Page As, create a Folder, upload the folder to a specific ftp site I am working on this vb app that will goto a specific site, click on a button(i am still working on the button process) do a save page as, create a folder, save those files to a folder and then upload that folder to a ftp site.

[Code]...

View 2 Replies

VB 2008 - Programmatically Create A Folder In A 'special Folder' For App?

Oct 25, 2010

I have discovered Environment.SpecialFolder.MyDocuments and My.Computer.Filesystem.SpecialFolder.MyDocuments

I know how to check if the folder exists, but it's awfully difficult to find a way to create a folder in a 'special folder'.

How do I programmatically create a folder in the users 'My Documents'?

View 4 Replies

Use FtpWebRequest On A Remote Machine?

Jun 20, 2011

I would like to use FtpWebRequest on a remote machine but I am getting remote server returned an error: (504) Gateway Timeout How can I fix this?

Here is my sample code:

Dim localFile As String = Nothing
Const remoteFile As String = "INBOX/"
Const host As String = "ftp://111.11.11.111/"

[code].....

View 2 Replies

Connect To The Webservice In Remote Machine?

Apr 7, 2009

I want to know how to connect to the webservice in remote machine

View 5 Replies

Read Eventlog On A Remote Machine

Oct 14, 2002

I am having trouble reading the event log on another machine. From what I can gather the .geteventlogs("server01") method should return the logs from the computer named "server01" but it doesn't work for me. It returns the results from the local machine instead.

[Code]...

View 5 Replies

VS 2005 Connect To .mdb On Remote Machine

May 27, 2010

with vb.net OLEDB (not DSN- ODBC) + access03 + winxp please specify the connection string to connect to a .mdb file on a remote machine with OS winxp .i am confused what is the data source to be used in my connection string

View 4 Replies

VS 2010 - Execute App On Remote Machine Using WMI

Jan 1, 2011

I am trying to execute exe file on remote machine using wmi. Its basically work on 50%, but problem is interactive process it execute the app but i can't see any window or form but I can see app is running in the task manager. Does not need to be vwi, might different method, but I dont want to use psexec tool.

My function:
Public Function StartEXEonRemote(ByVal machine As String, ByVal file As String) As String
Dim wmi As ManagementClass
Dim wmi_in, wmi_out As ManagementBaseObject
Dim retValue As Integer
[Code] .....

View 4 Replies

VS 2010 Execute App On Remote Machine?

Dec 21, 2010

im trying to execute exe file on remote machine using wmi. Its basically work on 50%, but problem is interactive process it execute the app but i can't see any window or form but i can see app is running in the task manager. I spend 3 days on this with no luck.Does not need to be vwi, might different method, but i dont want to use psexec tool.My function:

Public Function StartEXEonRemote(ByVal machine As String, ByVal file As String) As String
Dim wmi As ManagementClass
Dim wmi_in, wmi_out As ManagementBaseObject

[code].....

View 1 Replies

Check Listening Ports On Remote Machine?

May 20, 2012

Check listening ports on remote machine

View 1 Replies

Determine All The Users Logged In To A Remote Machine?

May 4, 2010

We're trying to write code to obtained all the logged on users to a remote machine.

We have the following, which only seems to identify users if they are logged in locally. However, if they're logged in through some other means (such as remote desktop), it doesn't seem to pick those users up.

How can we obtain all the users logged into a machine while excluding those users who only have a process running but aren't logged in (eg, a service is installed by them and might be currently running under their name)?

Dim WMIObject As String = "winmgmts://" & strComputerName.Text & "/root/cimv2"
Dim oComputerQuery As Object
'Contains a sorted list of every user logged into the system

[Code].....

View 1 Replies

Find Out Who Is Running The Process On The Remote Machine

Feb 26, 2012

I am trying to get a list of processes running on remote machine and the username running them. So far I've got:

Dim ps As System.Diagnostics.Process
For Each ps In System.Diagnostics.Process.GetProcesses("myserver")
ListBox1.Items.Add(ps.ProcessName)
Next

View 1 Replies

Get Remote Machine's Current Time In UTC Format?

Apr 23, 2012

Is there any direct method in dot net to obtain remote machine's current time. (Not using WMI).If a post answers your question

View 4 Replies

GetPrivateQueuesByMachine - Get A List Of Queues From A Remote Machine

Dec 4, 2009

I'm using the 2.0 framework to get a list of queues from a remote machine. Sometimes the machine has a firewall and then the user has to wait 80 seconds or so before an exception is thrown stating that the machine is unavailable. Questions: Is there any way that I can set/change the timeout for GetPrivateQueues ByMachine? Is there any other method I can call before running GetPrivateQueuesByMachine to see whether the machine is responding? One that has configurable timeout, Any other solution?

View 1 Replies

Remote Server Machine Does Not Exist Or Is Unavailable

Jan 26, 2010

When am trying read Windows 2008 serivices Remotely from 2003 server by using following VB Script :

'Objective: TO check the SQLServicesHeartbeat of all SQL Server services and send email
'if any state of service is not running
'on error resume next
Set iFSO = CreateObject("Scripting.FilesyStemObject")
Set oFSO = CreateObject("Scripting.FilesyStemObject")
[Code] .....

I am able to get read all windows 2003 servies, but not able to read Windows 2008 SQL Services Remotely, error throwing in the above line : Set objWMIService = GetObject("winmgmts:\" & strComputer & "ootcimv2").

View 1 Replies

Want To Kill A Process Running On Remote Machine

Mar 30, 2011

i want to list the processes running on other machines on LAN and then to kill one/many process(es).

View 6 Replies

WMI Connection To A Remote Machine Using Specified Administrator Credentials

Apr 3, 2010

I'm having an issue here with making a WMI connection to a remote machine using specified administrator credentials.I have the WMI code inside a function, I pass it the computer's name and it returns the WMI information that I am requesting as a string (or in this particular case, an integer) from the remote machine. I'm positive it works, and returns the information I need using specified admin username/password. NOW, the issue I am having is related to (it seems) calling this function from a backgroundworker. [code] "Value does not fall within the expected range." I literally have no clue why this would throw that exception, yet when I call this function from lets say just a random button on my form, it works beautifully. The key here is that I need my WMI requests/processing to run in the background.

View 18 Replies

VS 2008 - Registry - App To Create A Reg Key - Make My Application Start Up On Any Machine ?

Feb 3, 2010

Ive got my application running at startup on my computer. But how can i make my application start up on any machine ? Do i need my app to create a reg key ? Also what path do i use for it to start up on other machines ?

Heres the code im using to start it up on my machine.

Private Sub Form1_FormClosing(ByVal sender As System.Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles MyBase.FormClosing
If CheckBox1.Checked = True Then

[CODE]...

View 10 Replies

.net - View Status Of Service Running On Remote Machine?

Apr 5, 2010

The conditions are I don't have administrator privilege I want to see the status of a service in remote machine (server)I use the following code (vb.net with framework 2.0) to see the status

Dim sqlSvc As ServiceController
Svc = New ServiceController(My.Settings.serviceName, My.Settings.machineName)
If sqlSvc.Status.ToString.Equals("Running") Then
displayStatus("success", sqlSvc.Status.ToString)
Else
displayStatus("error", sqlSvc.Status.ToString)
End If

When running the code, InvalidOperationException is raised and found out that I need admin right in the server.Can I lookup the status of the service without having admin right in remote machine ?

View 2 Replies

Send An Image To Remote Machine And Load It Into Picuture Box?

Sep 26, 2009

I know how to program an application to load the desktop image into the picturebox on a timer. Thats really easy.

But how would I load an image from another IP Address, i.e. another remote machine, into the picturebox on this application.[cod]e...

View 2 Replies

Simulate The Double Click Event On The Remote Machine?

Apr 29, 2010

I m writing a code for Telnet application. I want to simulate the double click event on the remote machine. I think mouse_event api will be used but i m unable to implement it..

View 1 Replies

Execute A Program On A Remote Machine - Psexec Doesn't Work

Jan 29, 2009

I'm trying to execute a program on a remote machine using this code

Dim objProcess As New System.Diagnostics.Process
objProcess.StartInfo.FileName = "cmd.exe"
objProcess.StartInfo.Arguments = " /c PSExec /accepteula \NTAPPMTMIGL01 -u $AdminUsrLocal -p tjdsi44 c:winntMicrosoft.NETFrameworkv2.0.50727gacutil.exe"

[code]....

If I use it, it works since I'm an admin but if someone else use it, I got "The system cannot find the file specified."Is there any other program I can use that can impersonate, I've already tried xcmd.exe but it doesm't work either.

View 2 Replies







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