Forums before death by AOL, social media and spammers... "We can't have nice things"
|    alt.msdos.batch    |    Fun with MS-DOS batch files    |    42,547 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 41,973 of 42,547    |
|    Zaidy036 to Herbert Kleebauer    |
|    Re: Why Windows 10 batch admin isn't the    |
|    11 Sep 21 17:29:43    |
      XPost: alt.comp.os.windows-10, alt.comp.microsoft.windows       From: Zaidy036@air.isp.spam              On 9/11/2021 5:03 AM, Herbert Kleebauer wrote:       > On 10.09.2021 23:40, Scott Lurndal wrote:       >       >> Exact same one line batch file command is being run in both cases above.       >> freeopenvpn.bat       >> c:\path-to\openvpn\bin\openvpn.exe freeopenvpn.ovpn       >       >> a. When it works, I type "freeopenvpn.bat" & [Enter] in an admin window.       >> b. When it fails, I rightclick "freeopenvpn.bat" & run-as-administrator.       >       >> For whatever reason, my "command prompt" is instantaneous.       >> It disappears in a nanosecond so I can't tell what it's doing inside.       >       > Then insert a "pause" command at the end of the batch file so the       > window stays open.       >       > And don't forget, when you run the batch by a right click, there is a       > different working directory as when run in a command window. Insert       > a cd command at the beginning of the batch to have the same working       > directory as with you command window.              easier to use "CMD /K" so batch ends but leaves window open and usable              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca