NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Add-ons (3rd party plugins, utilities and skins) Old Stuff (Legacy) GB-PVR Support (legacy) v
« Previous 1 … 835 836 837 838 839 … 1231 Next »
help with postprocessing.bat

 
  • 0 Vote(s) - 0 Average
help with postprocessing.bat
zaprat
Offline

Member

Posts: 59
Threads: 33
Joined: Dec 2005
#1
2006-03-17, 12:22 PM
guys I trying to build a postprocessing.bat and I have come accross the following description of file being "%~dpn1.mpg". What does this mean/do?
djtaylor
Offline

Senior Member

Posts: 505
Threads: 48
Joined: Jan 2006
#2
2006-03-17, 01:12 PM
%1 is the first parameter in the batch file

%~dpn1 takes the first parameter as drive/path/name
zaprat
Offline

Member

Posts: 59
Threads: 33
Joined: Dec 2005
#3
2006-03-21, 10:19 AM
Guys, I found this in windows xp help. For your info!

You can also use modifiers with batch parameters. Modifiers use current drive and directory information to expand the batch parameter as a partial or complete file or directory name. To use a modifier, type the percent (%) character followed by a tilde (~) character, and then type the appropriate modifier (that is, %~modifier).

The following table lists the modifiers you can use in expansion.

Modifier Description
%~1 Expands %1 and removes any surrounding quotation marks ("").
%~f1 Expands %1 to a fully qualified path name.
%~d1 Expands %1 to a drive letter.
%~p1 Expands %1 to a path.
%~n1 Expands %1 to a file name.
%~x1 Expands %1 to a file extension.
%~s1 Expanded path contains short names only.
%~a1 Expands %1 to file attributes.
%~t1 Expands %1 to date and time of file.
%~z1 Expands %1 to size of file.
%~$PATH:1 Searches the directories listed in the PATH environment variable and expands %1 to the fully qualified name of the first one found. If the environment variable name is not defined or the file is not found, this modifier expands to the empty string.
The following table lists possible combinations of modifiers and qualifiers that you can use to get compound results.

Modifier Description
%~dp1 Expands %1 to a drive letter and path.
%~nx1 Expands %1 to a file name and extension.
%~dp$PATH:1 Searches the directories listed in the PATH environment variable for %1 and expands to the drive letter and path of the first one found.
%~ftza1 Expands %1 to a dir-like output line.
Picture (Metafile)Note

In the previous examples, you can replace %1 and PATH with other batch parameter values.

The %* modifier is a unique modifier that represents all arguments passed in a batch file. You cannot use this modifier in combination with the %~ modifier. The %~ syntax must be terminated by a valid argument value.

You cannot manipulate batch parameters in the same manner that you can manipulate environment variables. You cannot search and replace values or examine substrings. However, you can assign the parameter to an environment variable, and then manipulate the environment variable.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Postprocessing and the recordings database shsw 1 1,480 2010-08-29, 04:46 PM
Last Post: sub
  ffdshow postprocessing on .ts file playback alibert 2 1,664 2010-04-05, 05:33 AM
Last Post: alibert
  quick postprocessing Q drbenjamin 2 1,803 2010-01-25, 08:50 PM
Last Post: drbenjamin
  postprocessing.bat question philly_phenom 2 1,426 2009-06-05, 01:45 AM
Last Post: philly_phenom
  PostProcessing.bat does not respond keith_leitch 3 1,698 2009-05-31, 02:04 AM
Last Post: sub
  Postprocessing.bat not running on all recordings khaver 11 3,712 2009-04-29, 10:51 PM
Last Post: khaver
  Postprocessing with que issue Reddwarf 0 1,057 2009-02-15, 11:15 AM
Last Post: Reddwarf
  PostProcessing & recording not showing. Jaggy 2 1,226 2009-02-12, 12:32 AM
Last Post: Jaggy
  postprocessing.bat, comskip & videoredo ApexHack 24 9,973 2009-02-09, 05:45 AM
Last Post: ApexHack
  Running UI apps from postprocessing.bat keith_leitch 18 4,264 2009-02-07, 09:03 PM
Last Post: keith_leitch

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode