GIDForums  

Go Back   GIDForums > Computer Forums > Computer Software Forum - Windows
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 29-Dec-2003, 13:05
freak freak is offline
New Member
 
Join Date: Dec 2003
Posts: 2
freak is on a distinguished road
Question

How to give the "local directory"?


i work with a program called "Instant.EXE 2.0" [from downloads.com] and i want to make an exe file that copies a file from the local directory to some specified directory. BUT my problem is that i don't know how to tell him to copy that file from the "LOCAL DIRECTORY" ? [like all these shortcuts, for example "%SystemRoot%\system32\calc.exe"]
  #2  
Old 29-Dec-2003, 13:33
freak freak is offline
New Member
 
Join Date: Dec 2003
Posts: 2
freak is on a distinguished road

and also, how to access a directory without knowing....


how to access a directory without knowing on what partision it is ?
For example, how to access "SturtUp" ["Documents and Settings\Administrator\Start Menu\Programs\Startup"] without knowing on what partision windows is ?
  #3  
Old 29-Dec-2003, 16:07
pcxgamer's Avatar
pcxgamer pcxgamer is offline
Senior Member
 
Join Date: Sep 2002
Location: USA
Posts: 1,171
pcxgamer is a jewel in the roughpcxgamer is a jewel in the roughpcxgamer is a jewel in the rough
Are you working with C++?
__________________
If builders built buildings the way programmers wrote programs, then the first woodpecker that came along would destroy civilization.
  #4  
Old 23-Jan-2004, 11:44
dsmith's Avatar
dsmith dsmith is offline
Senior Member
 
Join Date: Jan 2004
Location: Utah, USA
Posts: 1,351
dsmith is a glorious beacon of lightdsmith is a glorious beacon of lightdsmith is a glorious beacon of lightdsmith is a glorious beacon of lightdsmith is a glorious beacon of light
Quote:
Originally Posted by freak
i work with a program called "Instant.EXE 2.0" [from downloads.com] and i want to make an exe file that copies a file from the local directory to some specified directory. BUT my problem is that i don't know how to tell him to copy that file from the "LOCAL DIRECTORY" ? [like all these shortcuts, for example "%SystemRoot%\system32\calc.exe"]


If you are working with a batch file, the variable %CD% contains the local directory at all times.


Quote:
Originally Posted by freak
how to access a directory without knowing on what partision it is ?
For example, how to access "SturtUp" ["Documents and Settings\Administrator\Start Menu\Programs\Startup"] without knowing on what partision windows is ?

There is an environemental variable called %systemdrive% that stores the install partition of windows.

So to get to the directory you stated you could use:
Code:
%systemdrive% cd %HOMEPATH%\Start Menu\Programs\Startup
 
 

Recent GIDBlogGID Spam Detector 1.1.0 by gidnetwork

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Give Your WEBSITE's Spirits a Lift ¢À 000 Advertising & Affiliates Forum 1 08-Nov-2003 13:43

Network Sites: GIDNetwork · GIDApp · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 20:01.


vBulletin, Copyright © 2000 - 2013, Jelsoft Enterprises Ltd.