Re: [p4] P4EXP submit and label on folder

p4rfong <[email protected]> Fri, 16 Feb 2018 17:50:01 -0800
Newsgroups gmane.comp.version-control.perforce
Message-ID <[email protected]>
Posted on behalf of forum user 'p4rfong'.

Another less beautiful way would be to create a batch file that runs cmd.exe
that can prompt for the information needed as seen in
https://stackoverflow.com/questions/1223721/in-windows-cmd-how-do-i-prompt-for-user-input-and-use-the-result-in-another-com

For example:

1. Create a file opencmd.bat
cmd.exe /c C:\Users\rfong\mycmd.bat

2. Create a file C:\Users\perforce\mycmd.bat

@echo off
set /p id="Enter ID: "
cls
echo You typed in %id%
pause

3. Place opencmd.bat on the Desktop.

4. Note that clicking on this brings up a command prompt where a user sees:
C:\Users\rfong\Desktop>cmd /c C:\Users\perforce\mycmd.bat
Enter ID:

Instead of an ID, the user can type in a directory name, and commands can be run
to change to the proper directory and open the files for edit.   A
different command can label the files, and submit.  The scripts can be
changed so the script accesses a network drive.  Hopefully this can
make it easy for users to perform Perforce functions.



--
Please click here to see the post in its original format:
  http://forums.perforce.com/index.php?/topic/5630-p4exp-submit-and-label-on-folder
_______________________________________________
perforce-user mailing list  -  [email protected]
http://maillist.perforce.com/mailman/listinfo/perforce-user