Go Back   PCMech Forums > Help & Discussion > Internet, Web Applications, & The Cloud

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 01-09-2002, 08:04 AM   #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?
BlindFish is offline   Reply With Quote
Old 01-09-2002, 10:14 AM   #2
Red-eyed Moderator
Staff
Premium Member
 
HAL9000's Avatar
 
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.
HAL9000 is offline   Reply With Quote
Old 01-09-2002, 11:03 AM   #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
BlindFish is offline   Reply With Quote
Old 01-09-2002, 11:37 AM   #4
Red-eyed Moderator
Staff
Premium Member
 
HAL9000's Avatar
 
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.
HAL9000 is offline   Reply With Quote
Old 01-10-2002, 03:49 AM   #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....
BlindFish is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 06:01 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2