Running a batch file which is saved in a share file

When ever I create a batch file and saved it in a share location, I am unable to call the batch file from the share location through a script because of Windows security warning

Is there any way to skip this windows security warning so that I can call the batch files through a script?
jmohan0302Asked:
Who is Participating?
 
skrgaCommented:
You cant call network file with UNC ("\\server\file") path in DOS. Map network folder as Network Drive, eg. "U:\" and then call file with something like "U:\file" ...
0
 
Bill PrewCommented:
What warning are you getting?

~bp
0
 
Gerwin Jansen, EE MVETopic Advisor Commented:
Is the warning about UNC pathnames? You can't for example set a UNC working directory on a DOS prompt, you'll get this warning:

"CMD does not support UNC paths as current directories."

You should map a network drive to a UNC path, change dir to the mapped drive letter and then call your batch from that directory.
0
 
skrgaCommented:
That is what i wrote in first post... Map network drive than refer to that network drive or if your clients are on Winxp or later you can use vbs scripts ..
http://stackoverflow.com/questions/631401/access-network-share-from-within-vbscript-eg-filesystemobject
0
 
jmohan0302Author Commented:
I got the tips its working. Thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.