Search found 3737 matches

by aGerman
04 Jul 2010 08:01
Forum: DOS Batch Forum
Topic: Safemode with networking
Replies: 7
Views: 2525

Re: Safemode with networking

No, sorry.
by aGerman
04 Jul 2010 06:58
Forum: DOS Batch Forum
Topic: Moving Files to seperate folder using a .BAT
Replies: 13
Views: 4174

Re: Moving Files to seperate folder using a .BAT

OK, you could try something like that @echo off &setlocal set "files=D:\files" set "folders=D:\folders" pushd "%files%" REM ***find all files ending with -form.msg and call :proc for each found file for %%a in (*-form.msg) do ( set "file=%%~na" call :proc ...
by aGerman
03 Jul 2010 16:21
Forum: DOS Batch Forum
Topic: Safemode with networking
Replies: 7
Views: 2525

Re: Safemode with networking

Not without reboot AND it depends on your OS (but nobody knows your OS!).
The SHUTDOWN command has no option to restart into save mode. Read my previous post. Changing boot.ini is doable using batch. But on Vista/Win7 exists no boot.ini!

Regards
aGerman
by aGerman
03 Jul 2010 10:30
Forum: DOS Batch Forum
Topic: Safemode with networking
Replies: 7
Views: 2525

Re: Safemode with networking

If you're on NT/2000/XP there's probably a way to append/delete the line
/safeboot:network
to section [operating systems] in C:\boot.ini.
But I don't have any idea if you would work on Vista/Win7.

Regards
aGerman
by aGerman
03 Jul 2010 08:08
Forum: DOS Batch Forum
Topic: Safemode with networking
Replies: 7
Views: 2525

Re: Safemode with networking

:?: using batch???
Read this and tell us how you would do this by hand.

Regards
aGerman
by aGerman
02 Jul 2010 16:39
Forum: DOS Batch Forum
Topic: New to batch files, need to automate ftp download.
Replies: 7
Views: 3531

Re: New to batch files, need to automate ftp download.

I'm not that familar with FTP, but this is doable.
First have a look at these examples.

To assemble the date to the right format I need to know what an
echo %date%
would display on your computer.

Regards
aGerman
by aGerman
02 Jul 2010 16:26
Forum: DOS Batch Forum
Topic: How to find cause of error from "CD /D %yourPath%"
Replies: 10
Views: 4112

Re: How to find cause of error from "CD /D %yourPath%"

I did not want to know of this codepage aggravation, but thanks for the "Heads Up" Don't be shy to read into the registry and to change the codepage. I did it so many times and it worked fine always. You could call a subroutine to read the values that you need. @echo off &setlocal cal...
by aGerman
02 Jul 2010 12:46
Forum: DOS Batch Forum
Topic: Basic compound variable problem
Replies: 5
Views: 2516

Re: Basic compound variable problem

Of course you're right. The reason for my hint is that I have to do with American settings at work and German settings at home. Thats why I try to avoid "language sensitive" scripts.
But indeed, I cannot guarantee that it even works for Russians, Chinese, Japanese...

Regards
aGerman
by aGerman
02 Jul 2010 11:41
Forum: DOS Batch Forum
Topic: Basic compound variable problem
Replies: 5
Views: 2516

Re: Basic compound variable problem

@avery_larry

Do you know where Mark One comes from? Is there a "bytes free" in his DIR output?

Regards
aGerman
by aGerman
02 Jul 2010 11:35
Forum: DOS Batch Forum
Topic: Variable and installation
Replies: 5
Views: 2167

Re: Variable and installation

This way?

ABC.txt

Code: Select all

set file1=c:\file2.exe
set file2=c:\file1.exe




Batch file:

Code: Select all

@echo off &setlocal
for /f "delims=" %%a in (ABC.txt) do %%a

echo %file1%
echo %file2%
pause


[Edit: SET removed /]

Regards
aGerman
by aGerman
02 Jul 2010 11:27
Forum: DOS Batch Forum
Topic: How to find cause of error from "CD /D %yourPath%"
Replies: 10
Views: 4112

Re: How to find cause of error from "CD /D %yourPath%"

Then I will try to incorporate your registry information in version 2. Beware of ANSI/ASCII !! In HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Nls\CodePage you will find OEMCP for the default ASCII codepage (the cmd works with) and ACP for the default ANSI codepage (used for data into the re...
by aGerman
02 Jul 2010 11:02
Forum: DOS Batch Forum
Topic: Moving Files to seperate folder using a .BAT
Replies: 13
Views: 4174

Re: Moving Files to seperate folder using a .BAT

When I read your post I saw that I added a line in the former code that is probably unintendet. If you don't want the batch file creates new folders you could change it this way: @echo off &setlocal pushd "D:\Files" for %%a in (*.pdf) do ( for /f "tokens=1*" %%b in ("%%~...
by aGerman
01 Jul 2010 15:57
Forum: DOS Batch Forum
Topic: How to find cause of error from "CD /D %yourPath%"
Replies: 10
Views: 4112

Re: How to find cause of error from "CD /D %yourPath%"

Please advise me, is there a Registry Key with a fixed name that will contain as a value the variable word "Application Data" on "English" Windows, and "Anwendungsdaten" on "German" Windows, or is there some other way you can advise which will tell me the &qu...
by aGerman
01 Jul 2010 15:17
Forum: DOS Batch Forum
Topic: Using variables with spaces crashes batches
Replies: 2
Views: 1550

Re: Using variables with spaces crashes batches

Laraso wrote:These are two lines from my batch file, and whenever it gets to the %command% part, if there is a space in the variable the whole batch closes.


Hmm, not for me. I tried net help and it worked fine.

Would you give an example command, please.

Regards
aGerman
by aGerman
01 Jul 2010 15:10
Forum: DOS Batch Forum
Topic: How to find cause of error from "CD /D %yourPath%"
Replies: 10
Views: 4112

Re: How to find cause of error from "CD /D %yourPath%"

Alan Unfortunately I'm not that familar with permissions. But using CACLS sounds good in case you would work on a local computer. Sorry that I can't help more. It must run on foreign language systems so cannot search error messages for "access is denied". Indeed this is more complicated. %...