|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Member (7 bit)
Join Date: Jan 2002
Location: Bristol, UK
Posts: 104
|
copying .url files in DOS
Not sure if anyone can help me on this one...
I want to create a BAT file that will automatically copy a set of internet 'favorites' stored on a network drive into the windows favorites folder on a PC. (I have to copy the favorites over to about 15 PCs on a regular basis so this would speed up the process.) I'm not that good with DOS commands (didn't get into PCs until DOS was going out of fashion if you know what I mean), but I've done a bit of research and have worked out how to copy files from one location to another (in fact it was fairly straightforward)... Problem is I can't get it to copy .url (as in Internet Shortcut) files. From what I can gather this is something to do with filename limitations within DOS. Is it possible to do this? And if so... How? |
|
|
|
|
|
#2 |
|
Red-eyed Moderator
Staff
Premium Member
Join Date: Dec 1999
Location: Regina, Saskatchewan, Canada
Posts: 17,576
|
sure, open an editor and type in
COPY X:\WINDOWS\FAVORITES C:\WINDOWS\FAVORITES where X:\ is your network drive (sub in correct letter), WINDOWS\FAVORITES is the location of your favorites (change if necessary). Save as a BAT file.
__________________
-At Ford, quality is job #1, job #2 is making them explode. ~Norm MacDonald, SNL News -Switching to Glide..Balancing in my head..inside of me... taking the glide path instead. |
|
|
|
|
|
#3 |
|
Member (7 bit)
Join Date: Jan 2002
Location: Bristol, UK
Posts: 104
|
Hmm... I did try that - but it copies 0 files. THe Favorites in question are organised into folders (Directories if you will...) Does this matter? Do I need to use a different command to copy directories and the files contained within them?
Just moved a shortcut into the 'top' directory to try this out and it did indeed copy the file... but it's no longer a 'recognised' file format - ie it's not an internet shortcut anymore and wants to know what program should be used to open it... weird
|
|
|
|
|
|
#4 |
|
Red-eyed Moderator
Staff
Premium Member
Join Date: Dec 1999
Location: Regina, Saskatchewan, Canada
Posts: 17,576
|
Instead of copy then, use XCOPY. You can then put /S behind it to copy subdirectories.
|
|
|
|
|
|
#5 |
|
Member (7 bit)
Join Date: Jan 2002
Location: Bristol, UK
Posts: 104
|
Kewl... that indeed did the trick!
Don't know where I was going wrong! I'm sure I had found a reference to XCOPY somewhere... Cheers.... |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|