question

VithalSuryakantPawitwar-8534 avatar image
0 Votes"
VithalSuryakantPawitwar-8534 asked MotoX80 answered

I have created Batch file in windows 10.

I have created Batch file in windows 10. (Send mail to designated users with attachment from network other computer, path is ok). But when I am running the batch file with Double click then mails are delivered but when I am opening batch with administrator rights then the mails are not delivered and getting msg in command prompt that "Path for attached file is not found". Please give your input as same batch file when running through double click and Running through admin rights is having issue.

windows-10-general
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Did you create it using the PowerShell or Command Prompt?
Is it possible to share you script?
If you want to share script, make sure hide personal data like emails and IP address.

0 Votes 0 ·

1 Answer

MotoX80 avatar image
0 Votes"
MotoX80 answered

attachment from network other computer,

You are probably running into this.

https://activedirectoryfaq.com/2015/04/mapped-drives-are-not-available-in-windows-explorer/

Due to security reasons, the two contexts do not share all available information. Besides other things, drive mappings are not shared between “Admin” and “User” contexts.

Use a UNC path instead of a drive letter or follow the instructions in the section: Solution: How to make mapped drives visible

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.