Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2013
    Posts
    17

    Unanswered: Automatic logon on another computer using vba

    I have some code in my form which create a new folder in computer (which is in "home network"")

    The prblem is case, when I click on the button, and vba can't create folder because I'm not logged in.
    Is it possible to write some VBA code which automatically check that I'm logged in or not, if not log as user: ***, password: ***?

  2. #2
    Join Date
    Feb 2004
    Location
    New Zealand
    Posts
    1,418
    Provided Answers: 7
    Ammmmmmmmmmmmmmm nop

    That is if you are try to log windows

    But in say that if the user is a admin of the computer then u should be able to write to the "home work"
    but u have to find the full path
    Above xp
    C:\user\username\somefolder\somewhere
    Xp
    C:\document and setting\username\somefolder\somewhere

    There is some vb code that will tell who is log in google it
    Last edited by myle; 04-16-13 at 09:58. Reason: spelling
    hope this help

    See clear as mud


    StePhan McKillen
    the aim is store once, not store multiple times
    Remember... Optimize 'til you die!
    Progaming environment:
    Access based on my own environment: DAO3.6/A97/A2000/A2003/A2007/A2010
    VB based on my own environment: vb6 sp5
    ASP based on my own environment: 5.6
    VB-NET based on my own environment started 2007
    SQL-2005 based on my own environment started 2008
    MYLE
    YOUR PASSWORD IS JUST LIKE YOUR TOOTHBRUSH DON'T SHARE IT.

  3. #3
    Join Date
    Apr 2013
    Posts
    17
    Sorry but I don't understand what You are trying to tell me

    My computer is "Radek"
    Computer where I'll create folder is "\\Signa"
    I should be logged in "\\Signa" when I using vba button to create new folder.

    I found the files "ntuser.dat.LOG1", "ntuser.dat.LOG2" what next?
    Last edited by radek225; 04-16-13 at 10:26.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •