Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

absolute file path

Status
Not open for further replies.

edgarv

MIS
Jul 25, 2003
248
US
Hello, I am not sure if this is the right place to post this question. Please excuse me if it is not.

Is there a way to get the absolute file path.
for example I have a bunch of .dwg files and I need to get the absolute path of each one. I can do a search and it shows me
c:\dwgfiles\002\002.dwg
c:\dwgfiles\005\005.dwg
c:\dwgfiles\006\006.dwg
This woudl be great if I could somehow copy the path. But Microsoft search does not let you do that.

Does anybody know of a way to get the path?

I could just type it in but I have about 30000 files so it would be a bit time consuming.

Any help is greately appreciated

eav
 
ahhh that sounds great!!
would it look something like this?

FORFILES -p\\myserver\files\drawings -s -m*.dwg -c"CMD /C Echo @RELPATH is the location of @FILE
 
oh yes one more thing where do I see the path or where does it store it?
 
You are using the CMD /c to invoke the command interpreter. You can replace 'Echo @RELPATH is the location of @FILE' with some other valid dos command, such as a copy or rename.
 
I am so sorry for my ignorance.
would it be:
FORFILES -p\\myserver\files\drawings -s -m*.dwg -c"CMD /C copy is the location of @FILE
 
If you are just requiring a method of copying a path so you can paste it somewhere else there are several ways.

In Folder Options/ View, you have a check box to display the path in the Address Bar. This will give you the chance to copy the path, but you would have to manually add the file name.

"Specifies that the complete path of the open file or folder is displayed in the address bar of the window."


The Properties of any file have a copyable Location and the file name is also able to be copied from the separate name box.


If you want a non-copyable version of the full path and name, as seen via DOS names, for the file name and path, you can copy the file itself and look at the result in 'system32\clipbrd.exe (the clipboard).


 
To copy all *.dwg files from C: to d:\backup

FORFILES -p\\myserver\files\drawings -s -m*.dwg -c"CMD /C copy @FILE d:\backup
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top