Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the commands that use system paths in batch processing

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

This article mainly introduces what are the commands that use the system path in batch processing. What is introduced in this article is very detailed and has a certain reference value. Interested friends must read it!

For example, if you want to enter the system32 folder under Windows, just type "% SystemRoot%\ system32" in the address bar of the IE browser or "run" dialog box, and enter, without indicating whether the system partition is disk C or disk D, because the system path will automatically locate and find the system partition. To put it bluntly, it actually acts as an absolute path: X:\ Windows (where X is the system partition letter).

Next, let's take the Windows XP system installed on disk C and using the default system folder with the current user name Administrator as an example to list the absolute paths corresponding to several commonly used system paths.

Current system drive letter% systemdrive% or% HOMEDRIVE%C:\

Current system directory% systemroot% or% Windir%C:\ WINDOWS

Current user folder% UserProfile% or% HOMEPATH%C:\ Documents and Settings\ Administrator

All user folders% AllUsersProfile%C:\ Documents and Settings\ AllUsers

Temporary folder 1%temp%C:\ Documents and Settings\ Administrator\ Local Settings\ Temp

Temporary folder 2% SystemRoot%\ TEMPC:\ WINDOWS\ Temp

Program folder% ProgramFiles%C:\ ProgramFiles

Example: copy the activeskin.ocx file from the current directory to the c:\ windows\ system32 directory

Create a batch: the content is

@ echo off

Copy activeskin.ocx% systemroot%\ system32

Exit

The above is all the contents of this article entitled "what are the commands for using system paths in batch processing?" Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report