Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 04-23-2007, 11:58 AM   #11 (permalink)
Yek
 
T.F's Resident Cool Guy...

Join Date: Aug 2006

Posts: 1,625

Yek is on a distinguished road

Send a message via AIM to Yek Send a message via MSN to Yek Send a message via Yahoo to Yek Send a message via Skype™ to Yek
Default Re: Batch

how can i copy D:/Folder1

to C:/Program Files/Folder1

??
Yek is offline  
Old 04-23-2007, 05:40 PM   #12 (permalink)
office politics's Avatar
 
It's all just 1s and 0s

Join Date: Jan 2004

Location: in the lab

Posts: 4,410

office politics will become famous soon enough

Default Re: Batch

xcopy d:\folder1 "c:\program files\folder1"

add
/E - copy all directories and subdirectories
/Y - suppress overwrite prompts
office politics is offline  
Old 04-24-2007, 01:44 PM   #13 (permalink)
Yek
 
T.F's Resident Cool Guy...

Join Date: Aug 2006

Posts: 1,625

Yek is on a distinguished road

Send a message via AIM to Yek Send a message via MSN to Yek Send a message via Yahoo to Yek Send a message via Skype™ to Yek
Default Re: Batch

Thanks all i need now is how to create a shortcut on the desktop ??
Yek is offline  
Old 04-24-2007, 06:47 PM   #14 (permalink)
 
Monster Techie

Join Date: May 2004

Location: Tucson, AZ, USA

Posts: 1,183

Vormund

Send a message via AIM to Vormund Send a message via MSN to Vormund Send a message via Yahoo to Vormund
Default Re: Batch

Right click the file -> Send To -> Desktop (create shortcut)
__________________
Vormund is offline  
Old 04-25-2007, 02:16 PM   #15 (permalink)
Yek
 
T.F's Resident Cool Guy...

Join Date: Aug 2006

Posts: 1,625

Yek is on a distinguished road

Send a message via AIM to Yek Send a message via MSN to Yek Send a message via Yahoo to Yek Send a message via Skype™ to Yek
Default Re: Batch

with batch
Yek is offline  
Old 04-25-2007, 02:23 PM   #16 (permalink)
 
Monster Techie

Join Date: May 2004

Location: Tucson, AZ, USA

Posts: 1,183

Vormund

Send a message via AIM to Vormund Send a message via MSN to Vormund Send a message via Yahoo to Vormund
Default Re: Batch

Quote:
Originally Posted by Tkey View Post
with batch
I'm pretty sure this can not be done with a batch file alone. So you either need a third party application (such as Creating a Shortcut from the command line (batch file)) or you could just use a vb script (think 'advanced batch file'), such as Create shortcut from a batch script [Archive] - PC World Forums.
__________________
Vormund is offline  
Old 04-26-2007, 01:10 PM   #17 (permalink)
Yek
 
T.F's Resident Cool Guy...

Join Date: Aug 2006

Posts: 1,625

Yek is on a distinguished road

Send a message via AIM to Yek Send a message via MSN to Yek Send a message via Yahoo to Yek Send a message via Skype™ to Yek
Default Re: Batch

how about
xcopy d:\folder1\shortcut.exe "c:\Userprofile\desktop\shortcut.exe"

would that work?
Yek is offline  
Old 04-26-2007, 05:41 PM   #18 (permalink)
CrazeD's Avatar
 
Wizard Techie

Join Date: Feb 2006

Location: Maine

Posts: 3,683

CrazeD will become famous soon enough

Send a message via AIM to CrazeD Send a message via MSN to CrazeD
Default Re: Batch

Quote:
Originally Posted by Tkey View Post
how about
xcopy d:\folder1\shortcut.exe "c:\Userprofile\desktop\shortcut.exe"

would that work?
No. That would just copy the whole file, not make a shortcut.
__________________

Need website help? PM me!
CrazeD is offline  
Old 05-07-2007, 08:16 AM   #19 (permalink)
Yek
 
T.F's Resident Cool Guy...

Join Date: Aug 2006

Posts: 1,625

Yek is on a distinguished road

Send a message via AIM to Yek Send a message via MSN to Yek Send a message via Yahoo to Yek Send a message via Skype™ to Yek
Default Re: Batch

You could create the inf file , copy that onto the disk then use the xcopy to move it to desktop
Yek is offline  
Old 05-13-2007, 09:17 PM   #20 (permalink)
 
Monster Techie

Join Date: May 2004

Location: /usr/root/mn/us

Posts: 1,121

bla!! is on a distinguished road

Default Re: Batch

The stuff that you're doing in here is much better handled through VBS scripting. Take a look at msdn's scripting site for examples of moving files/folders and creating shortcuts.
__________________
<br>
Its a frigging Laptop, not a Labtop!!!!
bla!! is offline  
 
Closed Thread

Thread Tools
Display Modes

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 Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Batch file steak1986 Windows Operating Systems and Software 6 04-11-2007 06:03 PM
Auto delete w/o prompt batch file Kratos Windows Operating Systems and Software 9 04-03-2007 03:18 PM