

InterviewSolution
Saved Bookmarks
1. |
Solve : COPY A FILE TO DESKTOP (XP)? |
Answer» <html><body><p>hi everyone!<br/><br/>need help in <a href="https://interviewquestions.tuteehub.com/tag/copying-426077" style="font-weight:bold;" target="_blank" title="Click to know more about COPYING">COPYING</a> a <a href="https://interviewquestions.tuteehub.com/tag/file-11330" style="font-weight:bold;" target="_blank" title="Click to know more about FILE">FILE</a> so that it will be visible in the <a href="https://interviewquestions.tuteehub.com/tag/desktop-949558" style="font-weight:bold;" target="_blank" title="Click to know more about DESKTOP">DESKTOP</a>.<br/>just like shortcuts!<br/><br/>what will be the directory then?<br/>the problem is that the path is not fixed like...<br/>C:\Documents and Settings\comp1\Desktop<br/>C:\Documents and Settings\comp2\Desktop<br/>C:\Documents and Settings\comp3\Desktop<br/>C:\Documents and Settings\comp4\Desktop<br/>C:\Documents and Settings\comp5\DesktopTry:<br/><br/>"%userprofile%\Desktop"<br/>"%allusersprofile%\Desktop"<br/><br/>Those work for XP and <em>should</em> work with Vista/7. The second will work for all user accounts on that computer and the <a href="https://interviewquestions.tuteehub.com/tag/first-461760" style="font-weight:bold;" target="_blank" title="Click to know more about FIRST">FIRST</a> will work for the current user (the one who ran the batch file).<br/>C:\>cd \<br/><br/>C:\>dir /s desktop<br/> Volume in drive C has no label.<br/> Volume Serial Number is 0652-E41D<br/><br/> Directory of C:\Users\marylane<br/><br/>07/26/2010 10:13 AM Desktop<br/> 0 File(s) 0 bytes<br/><br/> Directory of C:\Users\Default<br/><br/>07/13/2009 09:04 PM Desktop<br/> 0 File(s) 0 bytes<br/><br/> Total Files Listed:<br/> 0 File(s) 0 bytes<br/> 2 Dir(s) 293,939,007,488 bytes free<br/><br/>C:\>COPY "P:\A\T\H\*.*" %USERPROFILE%\Desktop<br/><br/>Use quotes if there are spaces involved.THANKS to all! now I can complete my trial installer^^</p></body></html> | |