Search found 3623 matches

by aGerman
13 Mar 2010 11:19
Forum: DOS Batch Forum
Topic: Opening Webpages?
Replies: 3
Views: 2071

Re: Opening Webpages?

There is no way using native batch. If it would be possible to operate on your special web page only with the keyboard (without mouse) then the SendKeys method (VBScript) could be a possibility.
http://msdn.microsoft.com/en-us/library/8c6yea83%28VS.85%29.aspx

Regards
aGerman
by aGerman
13 Mar 2010 11:11
Forum: DOS Batch Forum
Topic: Unusual? Script.
Replies: 2
Views: 1886

Re: Unusual? Script.

There is no general answer.
1st Have a look to the FTP command.
2nd Find a picture viewer with a command line switch for full screen displaying.

Regards
aGerman
by aGerman
10 Mar 2010 12:38
Forum: DOS Batch Forum
Topic: [Help]Finding or Searching File in your own Computer.
Replies: 2
Views: 1881

Re: [Help]Finding or Searching File in your own Computer.

Maybe something like that: @echo off &setlocal set filename=example.txt pushd c:\ for /f "delims=" %%a in ('dir /a-d /b /s "%filename%"') do set "fullname=%%a" &set "filepath=%%~dpa" popd echo %fullname% echo %filepath% pause It's looking for "exa...
by aGerman
10 Mar 2010 12:20
Forum: DOS Batch Forum
Topic: String operations "inside" a FOR command
Replies: 4
Views: 3582

Re: String operations "inside" a FOR command

It's impossible with the dynamic variables of a FOR loop. You need a regular variable. To process this variable during the runtime of the loop you need "SetLocal EnableDelayedExpansion" or the CALL trick. e.g.: @echo off &setlocal set "myString=123 abcdefg" for /f "token...
by aGerman
09 Mar 2010 06:43
Forum: DOS Batch Forum
Topic: Make .M3U master playlist - output as relative path names
Replies: 28
Views: 19808

Re: Make .M3U master playlist - output as relative path name

OMG, I'm unable to rename a file as shown with my (german) settings. I'm sure that 1252 can't be the right code page but I've no idea which code page could be the right. Write the following short batch: <edit: the sign after delims= must be a tab, but it is shown like three blanks (no idea why) /> @...
by aGerman
08 Mar 2010 13:39
Forum: DOS Batch Forum
Topic: Make .M3U master playlist - output as relative path names
Replies: 28
Views: 19808

Re: Make .M3U master playlist - output as relative path name

It's allmost impossible to answer you, because of much too less informations. The only thing I can see is that all the question marks are signs out of the ANSI table.
Could you post an example? Are this chinese signs or cyrillic signs ...? Where do this file names come from, how are they generated?
by aGerman
07 Mar 2010 11:56
Forum: DOS Batch Forum
Topic: This doesn't work: CD folder & ECHO %CD%
Replies: 7
Views: 3278

Re: This doesn't work: CD folder & ECHO %CD%

You could try to use the delayed expansion of variables.

Code: Select all

cmd /v:on /c "cd Folder&echo !cd!"

Note that it doesn't work without the quotes.
Hope it will work. I have no idea of Delphi.
by aGerman
07 Mar 2010 10:50
Forum: DOS Batch Forum
Topic: This doesn't work: CD folder & ECHO %CD%
Replies: 7
Views: 3278

Re: This doesn't work: CD folder & ECHO %CD%

It doesn't work if you change the directory and show the new directory name in the same line. Why don't you use two lines?

If you work with a batch file there is a trick

Code: Select all

cd Folder &call echo %%CD%%
by aGerman
07 Mar 2010 10:32
Forum: DOS Batch Forum
Topic: when i run this it wont stay on screen why
Replies: 1
Views: 1768

Re: when i run this it wont stay on screen why

choice:/c1234567

Wrong place for a colon.

Code: Select all

choice /c:1234567
::otherwise
choice /c "1234567"
by aGerman
07 Mar 2010 08:44
Forum: DOS Batch Forum
Topic: "Destination is not a directory"-ERROR??
Replies: 5
Views: 4039

Re: "Destination is not a directory"-ERROR??

The reason is simple. If there is any space in the path or file name then you have to use quotes. Otherwise it doesn't matter if you use quotes.
by aGerman
07 Mar 2010 08:32
Forum: DOS Batch Forum
Topic: When m key pressed, goto
Replies: 3
Views: 2412

Re: When m key pressed, goto

Hmm, try something like that: @echo off &setlocal :menu set "password=" set /p "password=Enter your password: " cls if "%password%"=="password" ( set /a n=0 goto loop ) goto menu :loop echo. echo You logged in successfully. echo This is loop %n%. set /a n+...
by aGerman
06 Mar 2010 18:59
Forum: DOS Batch Forum
Topic: "Destination is not a directory"-ERROR??
Replies: 5
Views: 4039

Re: "Destination is not a directory"-ERROR??

I see. Why don't you use quotes in this line?

Code: Select all

expand "%windir%\system32\Cabs\software.cab" -f:* "%Homepath%\Desktop\Software"


Regards
aGerman
by aGerman
06 Mar 2010 13:53
Forum: DOS Batch Forum
Topic: When m key pressed, goto
Replies: 3
Views: 2412

Re: When m key pressed, goto

Could you explain what you wanna do?
BTW: Is choice.exe available for you?
by aGerman
06 Mar 2010 13:13
Forum: DOS Batch Forum
Topic: "Destination is not a directory"-ERROR??
Replies: 5
Views: 4039

Re: "Destination is not a directory"-ERROR??

Maybe I'm wrong, but try to remove the back slash behind "software" and place option -f before the destination.

Code: Select all

expand %windir%\system32\Cabs\software.cab -f:* %systemdrive%\software


Regards
aGerman
by aGerman
06 Mar 2010 06:09
Forum: DOS Batch Forum
Topic: Make .M3U master playlist - output as relative path names
Replies: 28
Views: 19808

Re: Make .M3U master playlist - output as relative path name

The code page is a table that assigns the character encoding. Means what hex value (byte) should be interpreted to which sign. I'm sure you've heard about ANSI and ASCII. 437 is the US ASCII (OEM) code page. I don't know where you come from, thats why I process your default code page to reset it lat...