Search found 6 matches

by milos78
04 Sep 2011 06:37
Forum: DOS Batch Forum
Topic: Reading values from Windows registry
Replies: 2
Views: 3527

Re: Reading values from Windows registry

Thank you very much!

Works perfectly.

Tested on Win XP, English and French.
Win 7 English 32-bit and 64-bit.
by milos78
01 Sep 2011 07:35
Forum: DOS Batch Forum
Topic: Reading values from Windows registry
Replies: 2
Views: 3527

Reading values from Windows registry

Hi, I want to read a Environment Variables values from registry. Example, a path to desktop in English Windows is: %USERPROFILE%\Desktop but in French windows it is: %USERPROFILE%\Bureau That is why I need to use the path in the batch command. %USERPROFILE%\"what i read from registry value"...
by milos78
29 Jan 2011 03:51
Forum: DOS Batch Forum
Topic: String Manipulation on environment variables
Replies: 7
Views: 7818

Re: String Manipulation on environment variables

Thank you very much!
In Win7 and in Vista yes, but the problem is Win XP, that is why I must to this.
by milos78
28 Jan 2011 16:40
Forum: DOS Batch Forum
Topic: String Manipulation on environment variables
Replies: 7
Views: 7818

Re: String Manipulation on environment variables

Of course. This was made for a batch file. For the command prompt use for /f "delims=" %a in ("%appdata%") do @echo %~nxa Regards aGerman Thank you very very much !!! Can you please make me a batch command for this. I will assign a new variable to your command -let's call it %NE...
by milos78
28 Jan 2011 14:39
Forum: DOS Batch Forum
Topic: String Manipulation on environment variables
Replies: 7
Views: 7818

Re: String Manipulation on environment variables

aGerman wrote:Try

Code: Select all

for /f "delims=" %%a in ("%appdata%") do echo %%~nxa

Regards
aGerman


thank you, I just typed this in cmd and I have an error:

%%a was unexpected at this time
by milos78
28 Jan 2011 14:15
Forum: DOS Batch Forum
Topic: String Manipulation on environment variables
Replies: 7
Views: 7818

String Manipulation on environment variables

Hi to all. I want to extract a string from C:\Documents and Settings\Administrator\Application Data I need only the Application Data environment variable %APPDATA% = C:\Documents and Settings\Administrator\Application Data so I want to extract from it, since it is not the same on different windows l...