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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Copying files to a folder with a dot in the name

Status
Not open for further replies.

PhilEvelyn

Programmer
Feb 17, 2003
67
GB
I have a few java patches that I need to put in a folder to make some fingerprint recognition devices work. Sadly the folder in question is named j2re1.4.2_10

I have tried a batch file as both:-

Copy q:<file name> c:\program files\java\j2re1.4.2_10\lib\ext

and

copy q:\<file name> c:\program~1\java\j2re1.~1 etc

I have also tried VB Script, creating a variable and then copying the file to the location required:-

variable.copy ("c:\program files\java etc")

I have even tried renaming the folder but I get just as stuck.

Is there a way for me to force either a batch file or VB script to deal with the folder name?

Any suggestions are greatfully received.


Phil



 
What about this ?
Copy q:<file name> [!]"[/!]c:\program files\java\j2re1.4.2_10\lib\ext[!]"[/!]


Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Damn it.... Thank you PH, I knew it would be something very simple but I bet I would have been sitting for another hour and not have spotted that myself :(
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top