Search found 233 matches

by Dos_Probie
21 Sep 2013 07:50
Forum: DOS Batch Forum
Topic: Move all .mp3 to another drive and folder?
Replies: 4
Views: 1407

Re: Move all .mp3 to another drive and folder?

Thanks again, works good!..I read about using pushd for multiple file types and you confirmed it..Also works good
for all my video formats and pictures as well..DP :lol:
by Dos_Probie
20 Sep 2013 11:19
Forum: DOS Batch Forum
Topic: Move all .mp3 to another drive and folder?
Replies: 4
Views: 1407

Re: Move all .mp3 to another drive and folder?

Thanks Foxi!..Works perfect :D , hey if I also have some formats like .wma or .m4a how could I add them as well?
by Dos_Probie
20 Sep 2013 08:42
Forum: DOS Batch Forum
Topic: Move all .mp3 to another drive and folder?
Replies: 4
Views: 1407

Move all .mp3 to another drive and folder?

Got a bunch of .mp3 in E:\Music which are all together and been using the below batch which does the job, but now I have the mp3s scattered in subdirectories as well in E:\Music..Can someone take a look and revise this to get all of them from the different directories now..Thanks DP for /f "tok...
by Dos_Probie
19 Sep 2013 20:18
Forum: DOS Batch Forum
Topic: Uninstall and Install Application batch file
Replies: 4
Views: 1822

Re: Uninstall and Install Application batch file

Try this, I revised your path with a colon after your .exe and now get a RPC server Alias not found message now..DP 8)

Code: Select all

wmic /node:"\\MAT-Silver-l2m\FILES$ E:\internet\Brava Reader 7.2\BravaReader.exe":product where name="BravaReader.exe" call install 
by Dos_Probie
16 Sep 2013 16:24
Forum: DOS Batch Forum
Topic: How to replace windows 7 system files ?
Replies: 5
Views: 2259

Re: How to replace windows 7 system files ?

For Those of Us that DO know what we are doing, this is what I have been using successfully for Win7 and Win8.. @set @jscript=1/* @echo off&color 4f&set cd /d=%~dp0&mode con: cols=73 lines=4&&title[~ REPLACE SYSTEM FILES ~] :: ### ADMIN CHECK reg query "hku\S-1-5-19" >n...
by Dos_Probie
27 Jul 2013 20:08
Forum: DOS Batch Forum
Topic: How to create systeminfo file through batch file ?
Replies: 3
Views: 1581

Re: How to create systeminfo file through batch file ?

Here is another way..System info and also a list of all updates which can come in handy..DP @echo off&color e :: ### System Information.. for /f "tokens=2-4 delims=/ " %%a in ('date /t') do (set today=%date:~4,2%-%date:~7,2%-%date:~-2%) set sysinfo_Dt=%today% msinfo32.exe /nfo "%u...
by Dos_Probie
11 Jul 2013 14:31
Forum: DOS Batch Forum
Topic: [ SOLVED ] XCopy Question ??
Replies: 2
Views: 1063

Re: [ SOLVED ] XCopy Question ??

Thanks Squash!!...That works 8)
by Dos_Probie
11 Jul 2013 11:47
Forum: DOS Batch Forum
Topic: [ SOLVED ] XCopy Question ??
Replies: 2
Views: 1063

[ SOLVED ] XCopy Question ??

I have a script that does a XCopy of File.dll from my source of %~dp0files\File.dll to C:\Apps directory, sometimes File.dll is already present and other times it's not what is a simple way in the batch to check if File.dll is not present then XCopy over and if there just continue on with the rest o...
by Dos_Probie
19 Jun 2013 16:15
Forum: DOS Batch Forum
Topic: for /f question??
Replies: 6
Views: 2228

Re: for /f question??

Thanks aGerman and Aacini for the examples and explanation this helps a lot! DP :D
by Dos_Probie
19 Jun 2013 12:08
Forum: DOS Batch Forum
Topic: for /f question??
Replies: 6
Views: 2228

Re: for /f question??

Thanks but again they Both provide the same output (Install my .msu update/s) just trying to understand why or if I would even need the tokens,delims if the other command will Do the same and is more concise etc etc.
by Dos_Probie
19 Jun 2013 11:00
Forum: DOS Batch Forum
Topic: for /f question??
Replies: 6
Views: 2228

for /f question??

Got the following code snippet below with 2 "for /f" commands and both work which one should I use or does it even matter? I read where delims takes care of file spaces..Thanks DP @echo off&color a @setlocal enableextensions @cd /d "%~dp0" :: with tokens and delims for /f &qu...
by Dos_Probie
18 Jun 2013 07:22
Forum: DOS Batch Forum
Topic: [ SOLVED ] Delete Script and Script's root folder?
Replies: 7
Views: 3259

Re: Delete Script and Script's root folder?

taskkill explorer will not bluescreen pskill explorer set _pa=%~dp0 cd /d c:\ rd/s/q %_pa% start explorer.exe replace first line with taskkill i dont know why would you have the folder opened, but anyway it works it even works if i have the folder opened in totalcommander i used something like this...
by Dos_Probie
12 Jun 2013 09:11
Forum: DOS Batch Forum
Topic: contain windows serial key
Replies: 15
Views: 4448

Re: contain windows serial key

Squashman wrote:Works on Windows 7 64bit.

Also shows Windows 8 x64 Installation Key but not the Activation key..
by Dos_Probie
07 Jun 2013 16:01
Forum: DOS Batch Forum
Topic: Script to get displayname and homedirectory
Replies: 11
Views: 4906

Re: Script to get displayname and homedirectory

Frederixx wrote: from what i got so far: @echo off set /p uname= Net User %User% /Domain Net User %User% /Domain |find "Full name" Net User %User% /Domain |find "Home directory" etc.. Well for starters your first line is incorrect, If your going to use the Set command with the /p...
by Dos_Probie
07 Jun 2013 11:35
Forum: DOS Batch Forum
Topic: Script to get displayname and homedirectory
Replies: 11
Views: 4906

Re: Script to get displayname and homedirectory

This line at end of your batch with your command/s will output a dated txt file to your C: or system drive.. 8)

Code: Select all

Your Command Here >> %systemdrive%\%computername%_INFO_%date:~-4,4%-%date:~4,2%-%date:~-7,2%.txt