Computing.Net > Forums > Disk Operating System > Batch File Question

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Batch File Question

Reply to Message Icon

Name: Jen Cheng
Date: January 16, 2003 at 19:33:45 Pacific
OS: Win XP Pro SP1
CPU/Ram: P4 2.53 GHz / 512 MB DDR
Comment:

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 +H

Is 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



Sponsored Link
Ads by Google

Response Number 1
Name: The Judge1
Date: January 16, 2003 at 23:47:32 Pacific
Reply:

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.


0

Response Number 2
Name: Michael
Date: January 20, 2003 at 07:37:33 Pacific
Reply:

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 batch

replace 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


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


DOS Video Problem Where's Conflux of Wisdom...



Post Locked

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


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: Batch File Question

batch file question www.computing.net/answers/dos/batch-file-question/3271.html

Batch File question? www.computing.net/answers/dos/batch-file-question/5299.html

Another batch file question www.computing.net/answers/dos/another-batch-file-question/9863.html