hi everyone!
is it possible to set the CD (current directory) as permanent desktop?
for example,
@echo off
CD "c:\....\destop\"
copy *.txt "d:\destination\"
from the above, how do i set the current directory as always to the desktop
EVEN if i save this bat to others people pc?
thanks
set CD (current directory) to permanent as desktop
Moderator: DosItHelp
Re: set CD (current directory) to permanent as desktop
Code: Select all
@echo off
cd /d %USERPROFILE%\Desktop
copy *.txt "d:\destination"
Re: set CD (current directory) to permanent as desktop
it works very well..
it is way better than i manually search for my full path of every pc desktop!!
thanks
it is way better than i manually search for my full path of every pc desktop!!
thanks