Re: Obtain and use UserName from .ldb file???



Doug,

Thanks but it's still not working (WinXP Pro). I run the command in the DOS window, no response, no error message. I leave the DOS window open, go back to Access VBA immediate window, type ?Environ("Username") and get the original Windows logon name, no change taken place. A version thing maybe?

Regards,
Nikos

Douglas J. Steele wrote:
If you use Set Username=abc (no quotes required), it'll be changed while that DOS box is open.


.



Relevant Pages

  • Re: how do I find what this computers IP address is under Vista
    ... Just for what it's worth, under Vista 32-bit Ultimate I can't get ip address info by simply typing "ipconfig" or "ipconfig /all" into the command box. ... In order to actually see the info I must type "command" in the "start search" box to get a DOS window, and then type "ipconfig /all" in the DOS window. ...
    (microsoft.public.windows.vista.general)
  • Re: Command line behavior has changed
    ... Unfortunately, in my case, even a command which includes switches will ... cause the same problem of premature DOS window closing. ... cmd /k ipconfig /all ...
    (microsoft.public.windowsxp.general)
  • Re: Command line behavior has changed
    ... Unfortunately, in my case, even a command which includes switches will ... cause the same problem of premature DOS window closing. ... cmd /k ipconfig /all ...
    (microsoft.public.windowsxp.general)
  • Re: ps2pdf???
    ... asking for the output filename. ... a way to pass the output filename on the command line, ... No ps2pdf in my mikTeX. ... Opening a DOS window, cd-ing to the directory ...
    (comp.text.tex)
  • Re: Command line behavior has changed
    ... cmd /k ipconfig /all ... BTW the /k switch carries out the command after it and leaves the cmd window ... cause the same problem of premature DOS window closing. ... the DOS window opens and remain opened. ...
    (microsoft.public.windowsxp.general)