M Mr. Novice Mar 12, 2004 #1 What is the best way to have a batch file check itself to see if it's being executed from a unc path or drive letter? Chad
What is the best way to have a batch file check itself to see if it's being executed from a unc path or drive letter? Chad
R Ray at Mar 12, 2004 #3 p.s. Read the thread all the way to the end! The first response is not the best one! http://groups.google.com/groups?th=9be9434913ba8a92 Ray at work
p.s. Read the thread all the way to the end! The first response is not the best one! http://groups.google.com/groups?th=9be9434913ba8a92 Ray at work
M Mr. Novice Mar 12, 2004 #4 Perfect! Thank you!! I had thought of having it check to see if it was being run from the windows directory but didn't like that. The % ~d0 works great!! Chad
Perfect! Thank you!! I had thought of having it check to see if it was being run from the windows directory but didn't like that. The % ~d0 works great!! Chad
M Matthias Tacke Mar 13, 2004 #5 Mr. Novice said: What is the best way to have a batch file check itself to see if it's being executed from a unc path or drive letter? Chad Click to expand... Without having seen your question, I wrote and posted a batch just some hours ago in amb which examines the origin of the running batch. http://groups.google.com/[email protected] Of course using the same commands mentioned by Ray repective Clay. May also be useful to count the folder levels independent of unc/drive letter.
Mr. Novice said: What is the best way to have a batch file check itself to see if it's being executed from a unc path or drive letter? Chad Click to expand... Without having seen your question, I wrote and posted a batch just some hours ago in amb which examines the origin of the running batch. http://groups.google.com/[email protected] Of course using the same commands mentioned by Ray repective Clay. May also be useful to count the folder levels independent of unc/drive letter.