+ Reply to Thread
Results 1 to 2 of 2

OpenProcess throws an error on UNC path, but not on mapped network drive

  1. #1
    Registered User
    Join Date
    07-26-2011
    Location
    Richmond, Virginia
    MS-Off Ver
    Excel 2007
    Posts
    10

    OpenProcess throws an error on UNC path, but not on mapped network drive

    Hello again...

    I have some VBA code that is doing a shell-and-wait on an executable being launched by wscript. I originally setup the code using a mapped network drive letter, but after switching it to the UNC version, error traps kick in while trying to run the shell command. I've been debugging and get 100% correct results when using mapped network drives to a file share location, but get disperate results otherwise. Is this process access rights related? This isnt my area at all.

    Please Login or Register  to view this content.
    I need to use PROCESS_QUERY_INFORMATION to watch the exit code. I tried PROCESS_QUERY_LIMITED_INFORMATION as well, but the results were the same. If anything sticks out, please let me know. I will continue to dig on my end.

    Thanks forumers...

  2. #2
    Registered User
    Join Date
    07-26-2011
    Location
    Richmond, Virginia
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: OpenProcess throws an error on UNC path, but not on mapped network drive

    This ended up being related to strings and literals. I'd omitted chr(34) in a few places, but once i fixed that, smooth sailing...until the next bug

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 0
    Last Post: 04-14-2014, 02:12 AM
  2. [SOLVED] VBA to check and see if network drive is mapped
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-29-2013, 10:02 PM
  3. Save files to a Mapped Network Drive on server
    By wotsup in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-12-2012, 11:46 AM
  4. Replies: 0
    Last Post: 10-07-2010, 10:37 AM
  5. Replies: 1
    Last Post: 10-17-2005, 01:05 PM

Tags for this Thread

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1