FileNameDrop
✖
FileNameDrop
Details and Options

- FileNameDrop by default assumes that path elements are separated by pathname separators suitable for your operating system.
- FileNameDrop[…,OperatingSystem->"os"] uses the conventions of the specified operating system. Possible choices are "Windows", "MacOSX", and "Unix".
- FileNameDrop just operates on names of files; it does not actually search for the file specified.
- If more elements are specified to be dropped than are present, FileNameDrop just drops those that are present.
- FileNameDrop[File["name"],…] is also supported.
Examples
open allclose allBasic Examples (2)Summary of the most common use cases
Scope (1)Survey of the scope of standard use cases
Get the base name of the file specified by the File object:
In[1]:=1

✖
https://wolfram.com/xid/0g7fnxy2lvw-y4wzs
Out[1]=1

In[2]:=2

✖
https://wolfram.com/xid/0g7fnxy2lvw-bzvdwh
Out[2]=2

Wolfram Research (2008), FileNameDrop, Wolfram Language function, https://reference.wolfram.com/language/ref/FileNameDrop.html (updated 2016).
✖
Wolfram Research (2008), FileNameDrop, Wolfram Language function, https://reference.wolfram.com/language/ref/FileNameDrop.html (updated 2016).
Text
Wolfram Research (2008), FileNameDrop, Wolfram Language function, https://reference.wolfram.com/language/ref/FileNameDrop.html (updated 2016).
✖
Wolfram Research (2008), FileNameDrop, Wolfram Language function, https://reference.wolfram.com/language/ref/FileNameDrop.html (updated 2016).
CMS
Wolfram Language. 2008. "FileNameDrop." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2016. https://reference.wolfram.com/language/ref/FileNameDrop.html.
✖
Wolfram Language. 2008. "FileNameDrop." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2016. https://reference.wolfram.com/language/ref/FileNameDrop.html.
APA
Wolfram Language. (2008). FileNameDrop. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/FileNameDrop.html
✖
Wolfram Language. (2008). FileNameDrop. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/FileNameDrop.html
BibTeX
✖
@misc{reference.wolfram_2025_filenamedrop, author="Wolfram Research", title="{FileNameDrop}", year="2016", howpublished="\url{https://reference.wolfram.com/language/ref/FileNameDrop.html}", note=[Accessed: 29-March-2025
]}
BibLaTeX
✖
@online{reference.wolfram_2025_filenamedrop, organization={Wolfram Research}, title={FileNameDrop}, year={2016}, url={https://reference.wolfram.com/language/ref/FileNameDrop.html}, note=[Accessed: 29-March-2025
]}