Dos get directory name batch file


















Monday 20 May pm at MikeG says:. Saturday 8 June am at Ed says:. Saturday 8 June pm at Tuesday 11 June am at Tuesday 11 June pm at Saturday 22 June am at Sunday 21 July pm at Joe Casey says:.

Monday 17 June pm at Thursday 20 June pm at Ruth says:. Tuesday 25 June pm at Friday 28 June pm at Saturday 29 June pm at Monday 22 July am at Tuesday 23 July am at Ian says:. Thursday 1 August am at Thursday 1 August pm at Friday 2 August am at Wednesday 8 January pm at Thursday 9 January pm at Eta Beta says:. Wednesday 12 February am at Friday 7 March pm at Omprakaash Soundararajan says:.

Saturday 15 February pm at Rita says:. Wednesday 19 February pm at Dinesh Saraswat says:. Thursday 27 March am at Matt says:. Friday 16 May pm at Saturday 17 May am at Mike says:.

Monday 7 July pm at Friday 18 July pm at Sunday 1 March am at Wednesday 4 March pm at OldMovieMan says:. Wednesday 13 January am at Sunday 17 January pm at Magnes3d says:. Friday 19 February pm at Saturday 20 February pm at Leave a Reply Cancel reply Enter your comment here Fill in your details below or click an icon to log in:.

Email required Address never made public. Bear in mind that 0 is a special case of parameter numbers inside a batch file, where 0 means this file as given on the command line. So if the file is myfile. All of the above are legal calls if you call it from the correct relative place to the directory in which it exists. However, this will leave out the file extension. But if you know the file name you could add the following code. The range is 0 to the end of the variable string. Stack Overflow for Teams — Collaborate and share knowledge with a private group.

Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Can a Windows batch file determine its own file name?

Ask Question. Asked 10 years ago. Active 2 years, 10 months ago. I found this useful for finding a parent folder that was a couple directories above the batch file. While academically interesting, this does not answer the OP's question.

Community Bot 1 1 1 silver badge. I dont see how that can work. Ok, I added an answer below that solves the problem more simply. Echo objFS. DaDummy DaDummy 49 3 3 bronze badges. GerH GerH 11 2 2 bronze badges. While this code may solve the question, including an explanation of how and why this solves the problem would really help to improve the quality of your post, and probably result in more up-votes.

Remember that you are answering the question for readers in the future, not just the person asking now. Please edit your answer to add explanations and give an indication of what limitations and assumptions apply.

From Review — double-beep. Sign up or log in Sign up using Google. By using this website you agree to accept our Privacy Policy Accept.

Japan parcel delivery box ». Loop through the lines in the temporary file, skipping the first three, and then taking the third token. Assign that token to a variable. If you like this post please consider linking to it using this code:.



0コメント

  • 1000 / 1000