Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsOtherProgramming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old August 4th, 2005, 10:32 AM
bubbablaze's Avatar
bubbablaze bubbablaze is offline
gears always turning....
ASP Free Novice (500 - 999 posts)
 
Join Date: Dec 2004
Location: St. Louis, MO, USA
Posts: 708 bubbablaze User rank is First Lieutenant (10000 - 20000 Reputation Level)bubbablaze User rank is First Lieutenant (10000 - 20000 Reputation Level)bubbablaze User rank is First Lieutenant (10000 - 20000 Reputation Level)bubbablaze User rank is First Lieutenant (10000 - 20000 Reputation Level)bubbablaze User rank is First Lieutenant (10000 - 20000 Reputation Level)bubbablaze User rank is First Lieutenant (10000 - 20000 Reputation Level)bubbablaze User rank is First Lieutenant (10000 - 20000 Reputation Level)bubbablaze User rank is First Lieutenant (10000 - 20000 Reputation Level)  Folding Points: 106571 Folding Title: Super Ultimate Folder - Level 1Folding Points: 106571 Folding Title: Super Ultimate Folder - Level 1Folding Points: 106571 Folding Title: Super Ultimate Folder - Level 1Folding Points: 106571 Folding Title: Super Ultimate Folder - Level 1Folding Points: 106571 Folding Title: Super Ultimate Folder - Level 1Folding Points: 106571 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 3 Weeks 7 h 41 m 33 sec
Reputation Power: 115
Send a message via Yahoo to bubbablaze
Question BAT file - DOS commands help needed

i use .bat files to distribute access apps i develop across several departments in my company. one thing i have wanted to do in this process, but haven't been successful at, is to copy a shortcut to the desktop. my 6.22 dos reference manual makes no reference to the desktop. does anyone know how to reference the desktop from dos commands to make this possible?

an example of my current code, copying to directories:
Code:
set SRVRDIR="\\server\dir1\dir2\etc"
set LOCDIR="C:\locdirname"
set PRGM="programname.mdb"

if not exist %LOCDIR% mkdir %LOCDIR%
if not exist %LOCDIR%\%PRGM% copy %SRVRDIR%\%PRGM% %LOCDIR%\%PRGM%


i would like to use something similar to copy a file name assigned to a variable SHRTCT from the SRVRDIR to the desktop.

thanks in advance for any help!

john
__________________
Was I able to help you? Please show your appreciation by clicking on the 'scales' icon in the upper right corner of the post...
"I know a lot of things, but I don't know a lot of other things..."
"If my answers frighten you then you should cease asking scary questions"



Reply With Quote
  #2  
Old August 16th, 2005, 09:38 AM
Shadow Wizard's Avatar
Shadow Wizard Shadow Wizard is offline
Moderator From Beyond
Click here for more information.
 
Join Date: Sep 2004
Location: Israel
Posts: 26,969 Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)  Folding Points: 342040 Folding Title: Super Ultimate Folder - Level 1Folding Points: 342040 Folding Title: Super Ultimate Folder - Level 1Folding Points: 342040 Folding Title: Super Ultimate Folder - Level 1Folding Points: 342040 Folding Title: Super Ultimate Folder - Level 1Folding Points: 342040 Folding Title: Super Ultimate Folder - Level 1Folding Points: 342040 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 3 Months 1 Week 5 Days 15 h 9 m 16 sec
Reputation Power: 1556
--moved to the Programming Help forum.

Reply With Quote
  #3  
Old August 21st, 2005, 07:51 AM
guymclaren's Avatar
guymclaren guymclaren is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Location: Nelspruit South Africa
Posts: 179 guymclaren User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 9 h 1 m 21 sec
Reputation Power: 4
Dos does not have a desktop, its command line only,

The Desktop to my knowledge is inaccessible from DOS as it is part of the Windows shell and not in the base folders/directories. I may be wrong...

Guy

Reply With Quote
Reply

Viewing: ASP Free ForumsOtherProgramming Help > BAT file - DOS commands help needed


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway