Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I guessed this would be the right forum to post this question to.
See I have this problem at work, I do not have access to an admins access. I have found a work around by moving around in command prompt to get to some stuff.
However my co-workers know nothing about dos and I was going to write a batch file to help them out.
1st: I need to navigate to a folder on C:\
2nd: I need to change the attrib of a file to -H
3rd: I need to copy that file to the desktop
4th: I need to change the attrib of the file back to +HIs it possible to set this up in a batch file. Another problem that I am having is I can't seem to navigate to the current desktop in dos (the suffix .000 is added to the user, but there doesn't seem to be a desktop folder).
Any help would be appreciated.
Frustrated with the Bosses,
JC

Wrong forum!
A little tricky, but solution is simple, I am tempted to write the batch file here. But there is a reason why not all users in a network don't have the administrative privilage. It is reserved for the system administrator. I doubt if anybody here will provide the solution.
The real solution really is to inform your administrator, and not to work around it. Your fed up with the bosses, I understand the feeling but,,, Sorry.

Anything that you can do in command prompt you can do in Batch.
I will be glad to provide the solution.
::start batch here
c:
cd foldername
attrib filename.ext -h
copy filename.ext %userprofile%\desktop
::end batchreplace foldername with the name of the folder you wish to browse to.
replace filename.ext with the name of the file you wish to unhide.That's it.
Write back if you have problems.
-Michael

![]() |
DOS Video Problem
|
Where's Conflux of Wisdom...
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |