Search found 187 matches

by Fawers
02 May 2012 11:10
Forum: DOS Batch Forum
Topic: scheduling a Batch file with parameters using the AT command
Replies: 6
Views: 4843

Re: scheduling a Batch file with parameters using the AT com

You might want to try this:

Code: Select all

set "file=DRIVELETTER:\path\to\your\file\FILENAME.fileXtension"
AT 16:50 cmd /c "E:\Directory\Files\Rename_File.bat" "%file%"

foxidrive wrote:*never* use PATH for your variable name
by Fawers
02 May 2012 10:06
Forum: DOS Batch Forum
Topic: taskkill problem
Replies: 8
Views: 6340

Re: taskkill problem

u can use a GameBooster it is a programs that do kill all unnessacery process when u click the game mode and when done just click the normal mode to restart all the process i use it some times try it That's right. Sometimes I use the one that comes with Advanced System Care, and it pretty much does...
by Fawers
02 May 2012 10:03
Forum: DOS Batch Forum
Topic: scheduling a Batch file with parameters using the AT command
Replies: 6
Views: 4843

Re: scheduling a Batch file with parameters using the AT com

The PATH variable expands to 2+ locations on your computer. On mine, it expands to 8 different folders. That's why you're gettint such an error message.
Besides, if any part of your desired path contains spaces, then you need to enclose it all in "quotes".

What is your required (full) path?
by Fawers
02 May 2012 09:29
Forum: DOS Batch Forum
Topic: Help?
Replies: 11
Views: 7700

Re: Help?

At least we have more than 2 versions to rely on. But still,
Squashman wrote:Removed the spaces.
Added the correct quotes.
Removed the question mark.

Thank you very much.
by Fawers
01 May 2012 17:52
Forum: DOS Batch Forum
Topic: Help?
Replies: 11
Views: 7700

Re: Help?

dedlygaimer wrote:set /a compnumber=%random%

set /a modulo="%compnumber% %% 2"
if %modulo% == 0 (
rem echo EVEN
) else (
rem echo ODD
)
pause
by Fawers
01 May 2012 11:16
Forum: DOS Batch Forum
Topic: directory listing - optimize code
Replies: 26
Views: 18079

Re: directory listing - optimize code

This is the same code but it will include hidden files etc. @echo off set "file=%cd%\m.txt" for /f "delims=" %%a in ('dir "%~1" /b /s /a:d') do ( echo %%~ftzaa>> "%file%" pushd "%%a" for /f "delims=" %%b in ('dir /b /a') do ( echo %%~ftzab...
by Fawers
01 May 2012 11:12
Forum: DOS Batch Forum
Topic: taskkill problem
Replies: 8
Views: 6340

Re: taskkill problem

Makes sense.
by Fawers
01 May 2012 10:06
Forum: DOS Batch Forum
Topic: taskkill problem
Replies: 8
Views: 6340

Re: taskkill problem

I know it's none of my business, but why exactly do you want to kill explorer.exe?
by Fawers
27 Apr 2012 10:22
Forum: DOS Batch Forum
Topic: character conversion error......!
Replies: 13
Views: 10779

Re: character conversion error......!

Even though aGerman has already given you a complete, specific answer, I'll reply to this post of yours: hi Fawers i tried with that editor. i copied that code in new file of the PSpad and saved it as .bat file still it is not working. I forgot to say that you have to adjust the formatting. http://i...
by Fawers
27 Apr 2012 06:37
Forum: DOS Batch Forum
Topic: character conversion error......!
Replies: 13
Views: 10779

Re: character conversion error......!

Then you might want to try a plain text editor with OEM code page support.

I use and recommend PSPad.
by Fawers
27 Apr 2012 06:16
Forum: DOS Batch Forum
Topic: character conversion error......!
Replies: 13
Views: 10779

Re: character conversion error......!

As aGerman said, it depends on your system code page.

Anyway, try using this character and see what it outputs.

Code: Select all

õ
by Fawers
27 Apr 2012 06:08
Forum: DOS Batch Forum
Topic: script to separation of data according to picture number
Replies: 11
Views: 8150

Re: script to separation of data according to picture number

Hi Can you explain why or what is binary copy? A binary file is a computer file which may contain any type of data, encoded in binary form for computer storage and processing purposes; for example, computer document files containing formatted text. Many binary file formats contain parts that can be...
by Fawers
26 Apr 2012 16:20
Forum: DOS Batch Forum
Topic: Normalizing Folder / Directory Names
Replies: 8
Views: 5734

Re: Normalizing Folder / Directory Names

Foxidrive posted a code on this thread, and part of the code was about getting the date in a similar - if not the same - format. When I ECHO %date% on my command line, it outputs the date in the DD/MM/YYYY format. According to foxidrive's code, we could do something like this: for /f "tokens=2-...
by Fawers
26 Apr 2012 10:10
Forum: DOS Batch Forum
Topic: script to separation of data according to picture number
Replies: 11
Views: 8150

Re: script to separation of data according to picture number

mor.bas wrote:(...)
1. why you need dir /b /a-d?
(...)
2.why you need copy /b /y
(...)
/y - why exacly?


The /a-d switch will show you everything in the directory but the directories themselves.
And the /y switch stands for yes; it will suppress any "overwrite file?" prompt.
by Fawers
25 Apr 2012 13:37
Forum: DOS Batch Forum
Topic: Using a batch file to backup data to an external drive help
Replies: 4
Views: 4185

Re: Using a batch file to backup data to an external drive h

This is untested. :prompt fsutil fsinfo drives echo, set /p "driveletter=Drive letter: " set driveletter=%driveletter:~0,1%: dir %driveletter% >nul 2>&1^ ||echo Drive %driveletter% is not available.&&pause&&exit /b Another way: :prompt fsutil fsinfo drives echo, set /p ...