Thanks,
I will give this a try.
Jeff
a Seattleite
Search found 7 matches
- 23 Feb 2010 14:23
- Forum: DOS Batch Forum
- Topic: Determine Windows Version a batch file is running within?
- Replies: 2
- Views: 5120
- 23 Feb 2010 11:35
- Forum: DOS Batch Forum
- Topic: Determine Windows Version a batch file is running within?
- Replies: 2
- Views: 5120
Determine Windows Version a batch file is running within?
Is there a way to determine what version a user's Windows version they are running a batch file without have to discover (I am assuming) through RegEdit?
I want to create a validation that a batch file can only be run in Vista or Windows 7.
Thanks
Jeff in Seattle
I want to create a validation that a batch file can only be run in Vista or Windows 7.
Thanks
Jeff in Seattle
- 16 Feb 2010 18:42
- Forum: DOS Batch Forum
- Topic: Given Specific Path: Determine Short or Long path equivalent
- Replies: 1
- Views: 4227
Given Specific Path: Determine Short or Long path equivalent
Is there a way to determine if given a specific (file or directory) path, what its long or short path equivalent? I am writing some PHP code, and I need a way to execute a command (within Windows environment) whereby when given a (file or directory) path it will always return its equivalent long pat...
- 08 Nov 2008 12:54
- Forum: DOS Batch Forum
- Topic: Current line number being executed
- Replies: 2
- Views: 7489
Current line number being executed
In PHP and C, there is predefined constate __LINE__ which tell whats line number is currently being executed.
Is there an equivalent in DOS commands that can be used within a BATCH command file?
Thanks
Jeff in Seattle
Is there an equivalent in DOS commands that can be used within a BATCH command file?
Thanks
Jeff in Seattle
- 08 Nov 2008 12:38
- Forum: DOS Batch Forum
- Topic: Passing Variable Length Arguments into Batch File
- Replies: 1
- Views: 7985
ANSWER: BATCH files with Variable Length Parameters
If calling FOO v1 v2 v3 ..., and wish to gather all the parameters: SET PARAMS= :SHIFT_LOOP IF "%1"=="" GOTO SHIFT_OUT SET PARAMS=%PARAMS% %1 SHIFT GOTO SHIFT_LOOP :SHIFT_OUT If calling FOO v1 v2 v3 ..., and wish to gather all the parameters after the second parameter: SHIFT SHIF...
- 07 Nov 2008 02:29
- Forum: DOS Batch Forum
- Topic: Acquire file version of DLL or EXE?
- Replies: 0
- Views: 7312
Acquire file version of DLL or EXE?
Is there a way within the DOS command-line to determine the file property version number of a DLL or EXE ? I want to use it to determine if I have version soup over a group of DLLs in C:\Windows\system32. This gives me only the DLL names: C:\WINDOWS\system32>dir /B wm*.dll Now next to the DLL names,...
- 06 Nov 2008 20:05
- Forum: DOS Batch Forum
- Topic: Passing Variable Length Arguments into Batch File
- Replies: 1
- Views: 7985
Passing Variable Length Arguments into Batch File
Within a batch file, I am using the function sqlcmd that can take variable number of argments. For example: sqlcmd %database% %file% -v value1 -v value2 -v value3 ... I want to pass into this batch file the values (value1, value2, value3, ...) that would be applied to sqlcmd function. In other words...